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 -> Re: Solved: OCI demos: SegFault on Linux

Re: Solved: OCI demos: SegFault on Linux

From: Lothar Armbüster <lothar.armbruester_at_rheingau.netsurf.de>
Date: 7 Feb 2000 21:00:36 +0100
Message-ID: <1521.72T1814T12604593lothar.armbruester@rheingau.netsurf.de>


Rick Wessman wrote at 07-Feb-00 14:28:45 on the subject Re: Solved: OCI demos: SegFault on Linux:

>Make sure the lengths of the username and password are zero. That might be
>causing the problem.

Hello Rick,
unfortunately it does not solve the problem. I tried NULL, "" and even "\0" for username and password but always get an ORA-01017. I can conney with "sqlplus /" so there is no fundamental problem usin externally identified users.
The length parameters for OCILogon are set through strlen() since I adapted the cdemo6.cc which uses a C++ wrapper arount the OCI calls.

I can connect using some dieferent user which is not identified externally by issuing the password. So I'm sure that I call OCILogon correctly.

Maybe there is some "magic username and password" that I have to use for externally identified users?

Lothar

>"Lothar Armbüster" <lothar.armbruester_at_rheingau.netsurf.de> writes:

[...]

>> 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.
>>

--

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

Received on Mon Feb 07 2000 - 14:00:36 CST

Original text of this message

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