Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: OCCI Connection Pool on Oracle RAC
It is possible but you don't have to, if you are using 10.2 OCCI. TAF
support has been added in 10.2 OCCI.
http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14294/whatsnew.htm#sthref11
-KM
jose_luis_fdez_diaz_news_at_yahoo.es wrote:
> Is it possible from OCCI program to use OCI's library failover callback
> as show in the code below:
>
> . . .
> conn = env->createConnection (user, passwd, db);
> . . .
>
> OCIFocbkStruct failover; /* failover callback
> structure */
> /* allocate memory for context */
> failover.fo_ctx = (dvoid *)malloc(strlen("my context."));
>
> /* initialize the context. */
> failover.callback_function = &callback_fn;
>
> /* do the registration */
> OCIAttrSet(conn->getOCIServer(), (ub4) OCI_HTYPE_SERVER,
> (dvoid *) &failover, (ub4) 0,
> (ub4) OCI_ATTR_FOCBK, errhp)
> . . .
>
>
> Thanks,
> Jose Luis
>
Received on Wed Oct 05 2005 - 06:53:57 CDT
![]() |
![]() |