Page 1 of 1

Issue initializing environment with Oracle 10 client

Posted: Fri 11 Jan 2019 13:54
by MarkF
This is specific to using the Oracle 10 client with UnicodeEnvironment set to True.

With the newer ODAC releases (see note below) I receive:
exception class EOCIInitError with message 'Can't initialize OCI. Error -1'.

This occurs on the call:
Res := Home.OCI8.OCIEnvCreate(FhOCIEnv, InitMode, nil, nil, nil, nil, 0, nil);

The error occurs only when UnicodeEnvironment is true. The value of InitMode when I get the error is 4210691.

Note:
I believe this is an issue with the newer versions of ODAC as a compiled version of my software from early 2018 does not show the issue and initializes the Oracle 10 client in Unicode mode with no problems.

I am using Oracle Instant Client 10.1 (10.1.0.4.0) for this test.

Any help is appreciated. Thanks.

-Mark Ford

Re: Issue initializing environment with Oracle 10 client

Posted: Fri 18 Jan 2019 17:56
by MaximG
Thank you for the information. We will investigate the described issue and let you know the results shortly.

Re: Issue initializing environment with Oracle 10 client

Posted: Mon 21 Jan 2019 11:20
by MaximG
When working with the last Oracle version and using the UnicodeEnvironment option, try setting the False value to the OCINCharLiteralReplace variable before establishing a connection. Alternatively, try using an older version of Oracle Instant Client.