Re: Multi-threading using Oracle OCI API

From: Markus M. Mueller <markus-m.mueller_at_ubs.com>
Date: Tue, 17 Jul 2001 13:03:16 +0200
Message-ID: <3B541B74.1A3DE0B9_at_ubs.com>


first call to OCI is

OCIInitialize( (ub4) OCI_THREADED, NULL, NULL, NULL, NULL );

go ahead with one env handle

OCIEnvInit( &pEnv, OCI_DEFAULT, (size_t) 0, NULL );

that give you a good start.
good look
markus

Mike Lee wrote:
>
> Does anyone have experience in writing multi-threaded applications using the
> OCI API. I know OCI has its own thread control functions but I am in an
> environment which is using posix threads.
>
> According to the documentation, access to the environment handle should be
> serial, thus its thread-safe. However it does not seem to be the case when I
> use it. Is there anyone out there who has experience with multi-threading
> using OCI?
>
> Thanks in advance.
>
> Mike Lee
Received on Tue Jul 17 2001 - 13:03:16 CEST

Original text of this message