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 -> Exception Invalid handle using OCI function olog

Exception Invalid handle using OCI function olog

From: Charles Clavadetscher <clavadetschc_at_post.ch>
Date: 1998/01/27
Message-ID: <01bd2af5$99947780$0d21bf8a@wczo0109>#1/1

Hello:

I am using the OCI-function olog to connect to an Oracle 7.3.3.0.0 server. The parameters
szUserId, szPW and szDB are initialized correctly with valid values. If szDB is an empty
string I can connect to the local database without problems, but as soon as I try to connect
to a remote database the system raises an exception 0xc0000008.

If any of the parameters would be invalid I would expect an oracle error message and not an
exception. lda and hda are also allocated correctly, following Oracle instructions.

Has anybody got an idea what's going wrong?

Here the code I'm using:

Lda_Def lda;
Cda_Def cda;

ub1 hda[512];

[...]

__try
{

	iRet=olog(&lda,           // declared static, use &
		    hda,            // declared as array -> name is address

(text *)szUserId,
(sword) -1, // String is null terminated -> must be -1
(text *)szPW,
(sword) -1, // String is null terminated -> must be -1
(text *)szDB,
(sword) -1, // String is null terminated -> must be -1
OCI_LM_DEF); // Blocking mode

}

__except (ee = GetExceptionInformation())

{

        iRet = GetExceptionCode(); // iRet results in 0xc0000008 = EXCEPTION_INVALID_HANDLE
}

TIA,
Charles (clavadetschc_at_post.ch) Received on Tue Jan 27 1998 - 00:00:00 CST

Original text of this message

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