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 03:47:09 -0700
Message-ID: <1128509229.502508.254630@o13g2000cwo.googlegroups.com>

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 - 05:47:09 CDT

Original text of this message

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