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: olog() -> OCILogon()

Re: olog() -> OCILogon()

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 5 Jul 2005 02:23:43 -0700
Message-ID: <1120555423.464266.23890@g47g2000cwa.googlegroups.com>

dima_at_inotech.ru wrote:
> I have applicalion, that use OCI v7.
> It work very good with Oracle 8.1.7.4.
> I install Oracle 10g and rebuild (re-link) my application with
> new oracle librarys.
> Build was completed successfully (I suppose if applicalion builded OK,
> then Oracle10 OCI support OCI v7 compatibility).
>
>
> But I confronted with trouble!!!
> olog() function return error!
> Then I read Oracle OCI guide for release 10g (upgrade section).
> http://www.cis.unisa.edu.au/oracle/appdev.101/b10779/oci01int.htm#421861
>
> OCI v10 hasn't compatibility with OCI v7 (regarding olog
> function)? Or I wrong?
>
>
> I DONT WANT rewrite my application (change OCI v7 to OCI v10).
> Can I only change olog() prototype (parameters list) to use this
> in OCILogon() function???
> How can I do this???

You have two options.

  1. Completely rewrite your application with only post release 7.x calls (Recommended). OR
  2. Use post release 7.x calls while still using release 7.x calls for some operations. e.g. initialize the service context handle via OCILogon() then convert this to release 7.x lda_def by using OCISvcCtxToLda() then pass that lda_def to 7.x calls. OCILdaToSvcCtx() reverses the lda_def to service context.
Received on Tue Jul 05 2005 - 04:23:43 CDT

Original text of this message

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