OCI MultiThreading...

From: Mohan V <v.mohan_at_blr.spcnl.co.in>
Date: 18 Jul 2001 03:36:29 -0700
Message-ID: <ea5471d2.0107180236.64064b7b_at_posting.google.com>


hello all,

        I am writing a multithreaded OCI application and I have a few doubts..
I would really appreciate if someone could please clarify these points...

My application scenario is this...

  1. OCI libraries are initialized with call to OCIInintialize(OCI_THREADED...);
  2. Database session is started with OCILogon()..
  3. A single database session is shared across multiple threads by having the environment and service context handles as global variables.

With this scenario, my doubts are these....

Oracle Documentation ( http://oradoc.photo.net ) says that Oracle will manage the mutexing of all data structures not exposed to the user when application is
initialized in OCI_THREADED mode.

Does this mean that the environment and service context handles are protected from concurrent access by the OCI library when i initialize in OCI_THREADED mode ?

any help/suggestions would be greatly appreciated...

Thanks in advance!

-mohan Received on Wed Jul 18 2001 - 12:36:29 CEST

Original text of this message