Precompilers and OCI (MOSC)

MOSC Banner

Subject: OCIEnvNlsCreate failed with OCI_ERROR (-1)

edited May 11, 2011 2:11AM in Precompilers and OCI (MOSC) 18 commentsAnswered ✓
 Hi, I need help.. OCIEnvNlsCreate() failed and returned sw = -1.
How to resolve the problem or to debug it:

               sw = OCIEnvNlsCreate( &(henv->envp),
                                     OCI_THREADED,
                                     NULL,
                                     NULL,
                                     NULL,
                                     NULL,
                                     0,
                                     NULL,
                                     OCI_UTF16ID,
                                     OCI_UTF16ID
                                   );


Oracle version:  Version 11.2.0.1.0 Enterprise
Platform: Linux x86-64 RedHat (version 2.6.18-194.11.4.el5)
Notes: Our application is compiled with static library, which is Oracle v10g :
[root@:/opt/my_app/bin]>ldd exits/arsorcle
        libdl.so.2 => /lib64/libdl.so.2 (0x00002ab50beb9000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002ab50c0bd000)
        libm.so.6 => /lib64/libm.so.6 (0x00002ab50c3bd000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002ab50c641000)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center