Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: EXEC SQL CONNECT :userpass; and OCI8
I was very stupid answer was SQLGetSvctx()
Thanks,
Iain William Wiseman wrote:
> Hi all,
>
> I want to use the existing connection to create a service Context Handle
> from a PL/SQL connection
>
> E.g
>
> EXEC SQL CONNECT:userpass
>
> Then go and do some OCI calls.
>
> I have programmed array fetches/updates in OCI so I am very familiar
> with the OCI APIs.
>
> I normally connect with either
>
> OCILogon
> or
> OCIServerAttach
> OCISessionBegin
>
> Basically I am guessing I need to somehow convert an Lda_Def to a
> OCISvcCtx*. I have seen OCISvcCtxToLda and OCILdaToSvcCtx but I do not
> understand what to do.
>
> Help appreciated.
>
> Regards,
> Iain
Received on Wed Nov 30 2005 - 09:39:51 CST
![]() |
![]() |