Issue initializing environment with Oracle 10 client

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
MarkF
Posts: 211
Joined: Thu 02 Mar 2006 14:55

Issue initializing environment with Oracle 10 client

Post by MarkF » Fri 11 Jan 2019 13:54

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

MaximG
Devart Team
Posts: 1259
Joined: Mon 06 Jul 2015 11:34

Re: Issue initializing environment with Oracle 10 client

Post by MaximG » Fri 18 Jan 2019 17:56

Thank you for the information. We will investigate the described issue and let you know the results shortly.

MaximG
Devart Team
Posts: 1259
Joined: Mon 06 Jul 2015 11:34

Re: Issue initializing environment with Oracle 10 client

Post by MaximG » Mon 21 Jan 2019 11:20

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.

Post Reply