Axel,

Thanks for your advice and the files. I followed your instruction(installed 
unixODBC-2.0.7-3, config /etc/odbc.ini, and add sapdb odbc lib to 
/etc/ld.so.conf. But I still got segmentation fault. I got -709 error if the
database is not started, but after I started database, I got the segmentation
fault. I tried to debug it, it happened when it tried to call eval.c.

Did you change anything in the sample program? If you do not mind,
can you send me your program which works? Also, do you have any
good links about ODBC?

Thanks a lot for your help.
Jenny
On Tuesday 29 January 2002 12:09 pm, you wrote:
> Hi Jenny,
>
> I'm also an beginner, but lets see.
>
> 1) I do not know. I also installed unixODBC-2.0.5-1.i386.rpm, and now its
> working. I also configured the file /etc/odbc.ini (attached) according to
> the unixODBC docu . Maybe all this is not necessary?
>    I will see when I install it on the next machine ;)
>    And don't forget to add an entry in /etc/ld.so.conf (attached)
>
> 2) try the attached makefile.
>    I had lots of problems with the demo progs. looks like the examples are
>    not that good. Currently I'm working myself through the MSDN ODBC
> Documentation, but oh man, what a mess.
>    But your Problem has propably something to do with nr. 1)
>
> 3) ??
>
> Greetings, Axel
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jenny Zhang
> Sent: Dienstag, 29. Januar 2002 20:39
> To: [EMAIL PROTECTED]
> Subject: ODBC starter's question
>
>
> I've never used ODBC/JDBC before, please forgive me for asking some basic
> quetions:
>
> I am using SAPDB 7.3 on Redhat 7.2.
>
> Questions:
> 1. For ODBC, I downloaded sapdb-odbc-linux-i386-7.3.0.21.tgz from
> ftp.sapdb.com, Is this all I need?
> 2. After extracting the files, I can compile the sample code at
> ~sapdb/indep_prog/demo/FirstSteps/ODBC
> I changed the Makefile to link with libsqlod.a libsqlod.so only (no
> libsqlrte.a libpcr.a). I remember somebody in the mailing list said only
> libsqlod.* lib is required.
> But when I execute, I got a coredume when it calls SQLConnect().
> 3. JDBC is based on ODBC, so I assume ODBC is more efficient that JDBC,
> is this correct?
>
> Any answer is highly appreciated!
>
> Regards,
> Jenny
> _______________________________________________
> sapdb.general mailing list
> [EMAIL PROTECTED]
> http://listserv.sap.com/mailman/listinfo/sapdb.general
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to