Appln failure with OCIEnvCreate( &m_env, mode, 0, 0, 0, 0, 0, 0 );

L

LFelix

Our 32-bit application fails with an error
===============================================================================
Error invoking Remote Procedure Call: The error specified is not a valid
Windows RPC error code.
(Invoked by Online_Rollback_Segment())
=====================================================
to complete the database SID creation through our application while trying
to execute OCIEnvCreate. We are using 64-bit Oracle
11g on 64-bit Windows 2003/2008 machine.
We are testing this piece of code with 64-bit Oracle 11g for which it fails.
The same piece of code works fine for
32-bit oracle11g on 64-bit windows 2003/2008 application

Below is the piece of code snippet for which there is a problem
=====================================================
bool COracleConnection::Connect( TCHAR const *sid, TCHAR const *username,
TCHAR
const *password, bool asSysdba /*= false */ ) { if( !m_initialized || sid ==
NULL ) return false; short status; ub4 mode = OCI_DEFAULT; #ifdef _UNICODE
mode
|= OCI_UTF16; #endif // create the oracle environment OCIEnvCreate( &m_env,
mode, 0, 0, 0, 0, 0, 0 );
=====================================================
Please let us know the cause and the probable solution to resolve this
problem
so that our application works fine
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top