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