Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using Oracle's OCI in Tuxedo

97 views
Skip to first unread message

Serge Van de Wyer

unread,
Aug 1, 1999, 3:00:00 AM8/1/99
to

OCIEnv* envhp; // OCI Environment handle
OCISvcCtx* svchp; // OCI Service context handle
OCIError* errhp; // OCI Error handle


-> inside tpsvrinit, when my servers are booted, I call:

// dbname is the name you give your database inside the ubbconfig file
envhp = xaoEnv((text*)dbname);
svchp = xaoSvcCtx((text*)dbname);
OCIHandleAlloc((dvoid*)envhp, (dvoid**)&errhp, OCI_HTYPE_ERROR, 0, 0);


-> and when shutting down, I simply release the error handle inside tpsrvdone:

OCIHandleFree((dvoid*)errhp, OCI_HTYPE_SERVER);


On Wed, 28 Jul 1999 21:04:35 GMT, Jeremy R Van Haren <vanh...@cycletime.com>
wrote:

>
> I am having problems with programming through Oracle's OCI.
>
> The best I can do is get a service context handle with the call:
> xaoSvcCtx() which is returning a non-NULL handle back to me.
>
> However, any subsequent call to OCIAttrGet returns an OCI_INVALID_HANDLE error.
>
> Does anyone have any example of using Oracle's OCI in Tuxedo Servers? Thanks.
> Jeremy Van Haren
> vanh...@cycletime.com

0 new messages