Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Solved: OCI demos: SegFault on Linux

Solved: OCI demos: SegFault on Linux

From: Lothar Armbüster <lothar.armbruester_at_rheingau.netsurf.de>
Date: 6 Feb 2000 11:41:56 +0100
Message-ID: <1161.71T2807T7015170lothar.armbruester@rheingau.netsurf.de>


Lothar Armbüster wrote at 03-Feb-00 14:37:48 on the subject OCI demos: SegFault on Linux :

>Hello out there,

Here I have to reply to my own posting. :-)

>I tried to run the OCI demo programs from Oracle 8.1.5 on Linux but they
>all end up in segmentation faults when linked with shared libs.
>When I link the programs statically, the run without problems but then the
>executables are >4MB in size.

I rewrote one of the demos (cdemo6.cc) to use the newer OCI calls (e.g. OCIStmtPrepare instead of oparse) and now it works.

But the use of of the new calls leads me to another problem:

How do I call OCILogon when my user is identified externally? With the old call olog I just gave NULL for username and password. Unfortunately this does not work with OCILogon. The documentation does not mention anything about this case.

Any ideas?

Lothar

>--
>Lothar Armbrüster | lothar.armbruester_at_rheingau.netsurf.de
>Hauptstr. 26 | lothar.armbruester_at_t-online.de
>D-65346 Eltville |

--

Lothar Armbrüster       | lothar.armbruester_at_rheingau.netsurf.de
Hauptstr. 26            | lothar.armbruester_at_t-online.de
D-65346 Eltville        |

Received on Sun Feb 06 2000 - 04:41:56 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US