Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: OCCI Connection Pool on Oracle RAC

Re: OCCI Connection Pool on Oracle RAC

From: <jose_luis_fdez_diaz_news_at_yahoo.es>
Date: 5 Oct 2005 05:58:25 -0700
Message-ID: <1128517105.211762.82420@g44g2000cwa.googlegroups.com>

I am using Oracle 9.2.0, so I guess that I am forced to do it.

Regards,
Jose Luis.

KM wrote:
> 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 - 07:58:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US