I get error ORA-20002 when executing a stored procedure in a remote Oracle
7.3 database (through a datalink). I know this is caused by the
odessp()function of the Oracle Call Interface (OCI) API which is called by
the Powerbuilder Oracle driver (PBO73050.DLL) to describe the parameters of
a PL/SQL procedure or function stored in an Oracle database. The error is
explained in the Oracle documentation:
-20002: A database link was specified in objnam, either explicitly or by
means of a synonym.
My code is as follows:
String sMyParam
...
lValue = SQLCA.MY_REMOTE_PROCEDURE(sMyParam);
My question is if there is a way to execute a stored procedure avoiding
the describe phase of the statement, being the programmer who define the
number and type of the parameters of the procedure.
Best regards and thanks in advance,
Santiago Orozco
NB: ORA-20002 is a user-defined error number
--
Terry Dykstra (TeamSybase)
Please state PB / OS / DB versions in your post.
MySybase http://my.sybase.com/mysybase
Search Deja: http://www.pfcguide.com/_newsgroups/search.asp
<Santiago_Orozco> wrote in message
news:20CBB72FB00929120038421685256B41.0038422B85256B41@webforums...
I had ran with staticbind = 1 but it follows giving the same error.
Do you know another solution for this problem?
The version of PowerBuilder is 5.0.03
Oracle7 Server Release 7.3.4.2.0
driver to access Oracle7 PBO73050.DLL
Oracle client is 2.3.4.0.0
in the client is Windows NT Workstation
--
Terry Dykstra (TeamSybase)
Please state PB / OS / DB versions in your post.
MySybase http://my.sybase.com/mysybase
Search Deja: http://www.pfcguide.com/_newsgroups/search.asp
<Santiago_Orozco> wrote in message
news:B363B471399E3E02003B746585256B42.003BF69885256B41@webforums...