HighTechTalks DotNet Forums  

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

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss Appln failure with OCIEnvCreate( &m_env, mode, 0, 0, 0, 0, 0, 0 ); in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
LFelix
 
Posts: n/a

Default Appln failure with OCIEnvCreate( &m_env, mode, 0, 0, 0, 0, 0, 0 ); - 07-27-2009 , 12:39 AM






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
Quote:
= 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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.