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

Home -> Community -> Mailing Lists -> Oracle-L -> SQLEnvGet and SCLSrvCtxGet

SQLEnvGet and SCLSrvCtxGet

From: Ellece <ellece_at_gradkell.com>
Date: Tue, 23 Jan 2001 09:01:51 -0600
Message-Id: <10750.127274@fatcity.com>


This is a multi-part message in MIME format.

------=_NextPart_000_0142_01C0851B.1FED4AF0 Content-Type: text/plain;

        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

We are trying to write some generic OCI that we can call from a user exit. In Forms 5.0, we use ORA FFI to call a library that contains OCI code using

the SAME database connection that the Form is using. In Forms 6.0, this is

not a supported feature. (We would love to know WHY it is no longer

supported!) Oracle documentation states that a User Exit, rather than

OraFFI, must be used (to use the Forms' database connection).

In order to use OCI from a user exit in Forms 6.0, we are calling two

functions:

SQLEnvGet and SQLSrvCtxGet.

It fails on getting the context handle -- returns a -1 or -2. Sometimes it

returns a success but still returns a NULL handle.

Any suggestions?

------=_NextPart_000_0142_01C0851B.1FED4AF0 Content-Type: text/html;

        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D#0000ff><FONT color=3D#800080><FONT face=3DArial =
size=3D2>We are=20
trying to write some generic OCI that we can call from a user = exit.</FONT></DIV>
<DIV>
<P><FONT face=3DArial size=3D2>In Forms 5.0, we use ORA FFI to call a =
library that=20
contain<SPAN class=3D110053720-12012001>s</SPAN> OCI code = using</FONT></P>
<P><FONT face=3DArial size=3D2>the SAME database connection that the =
Form is using.=20
In Forms 6.0, this is</FONT></P>
<P><FONT face=3DArial size=3D2>not a supported feature. (We would love =
to know=20
WHY&nbsp;<SPAN class=3D110053720-12012001>it </SPAN>is no = longer</FONT></P>
<P><FONT face=3DArial size=3D2>supported!) Oracle documentation states =
that a User=20
Exit, rather than</FONT></P>
<P><FONT face=3DArial size=3D2>OraFFI, must be used (to use the Forms' =
database=20
connection).</FONT></P>
<P><FONT face=3DArial size=3D2>In order to use OCI from a user exit in =
Forms 6.0, we=20
are calling two</FONT></P>
<P><FONT face=3DArial size=3D2>functions:</FONT></P>
<P><FONT face=3DArial size=3D2>SQLEnvGet and SQLSrvCtxGet.</FONT></P>
<P><FONT face=3DArial size=3D2>It fails on getting the context handle -- =
returns a=20
-1 or -2. Sometimes it</FONT></P>
<P><FONT face=3DArial size=3D2>returns a success but still returns a =
NULL=20
handle.</FONT></P>
<P><FONT face=3DArial size=3D2>Any suggestions?</FONT></P>
<P><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</P>
<P><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</P>
<P><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</P>
<P><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT>&nbsp;</P></FONT></FONT></DIV></BODY></HTML> Received on Tue Jan 23 2001 - 09:01:51 CST

Original text of this message

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