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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Sharing Connection in Pro*C and OCI

Re: Sharing Connection in Pro*C and OCI

From: Kenneth C Stahl <kstahl_at_lucent.com>
Date: Fri, 25 Jun 1999 14:51:11 -0400
Message-ID: <3773CF9F.FDFD3E80@lucent.com>


Actually, there is nothing to it.

  1. Define an OCI LDA globally: Lda_Def lda;
  2. Make your connection to Oracle with Pro-C EXEC SQL CONNECT :uid IDENTIFIED BY :pwd;
  3. Make the following call: sqllda(&lda)

Then just pass the lda to your API.

Ken

interld808_at_aol.com wrote:

> Does anyone have experience sharing a connection created in a program
> that uses Pro*C with an API that uses OCI?
>
> I have a client that needs to maintain transactional integrity across
> these two areas. The manual says you can do it. I am looking for real
> world experiences, maybe some sample code.
>
> -- Ron Olcott, ASC Corporation.
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Received on Fri Jun 25 1999 - 13:51:11 CDT

Original text of this message

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