Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> VB & Oracle question
Hi!!! I create a package in Oracle. When I run the line:
Set adoRS = mCmd.Execute VB sent me the next error:
Run-time error '-214721700 (80040E14)': Ora-06550: line 1,
column 33: PLS-002001: Identifier 'P_IC' must be declare. Ora-06550: line1,
column 7: PLS/SQL: Statemnt ignored. What I am doing
wrong????????
This is the code<FONT face="Courier New" color=#0000ff
POINT-SIZE="9">CREATE<FONT face="Courier New" color=#000000 POINT-SIZE="9"> <FONT face="Courier New" color=#0000ff POINT-SIZE="9">OR
face="Courier New" color=#000000 POINT-SIZE="9"> <FONT face="Courier New" color=#0000ff POINT-SIZE="9">PACKAGE<FONT face="Courier New" color=#000000 POINT-SIZE="9"> LAWSON1.PACK_ICTRANS <FONT face="Courier New" color=#0000ff POINT-SIZE="9">AS<FONT face="Courier New" color=#000000 POINT-SIZE="9">
face="Courier New" color=#0000ff POINT-SIZE="9">CURSOR<FONT face="Courier New" color=#000000 POINT-SIZE="9"> c1 <FONT face="Courier New" color=#0000ff POINT-SIZE="9">IS<FONT face="Courier New" color=#000000 POINT-SIZE="9">
face="Courier New" color=#0000ff POINT-SIZE="9">TYPE<FONT face="Courier New" color=#000000 POINT-SIZE="9"> t_row <FONT face="Courier New" color=#0000ff POINT-SIZE="9">IS<FONT face="Courier New" color=#000000 POINT-SIZE="9"> <FONT face="Courier New"color=#0000ff POINT-SIZE="9">REF<FONT face="Courier New" color=#000000
POINT-SIZE="9"> <FONT face="Courier New" color=#0000ff POINT-SIZE="9">CURSOR<FONT face="Courier New" color=#000000 POINT-SIZE="9"> <FONT face="Courier New" color=#0000ff POINT-SIZE="9">RETURN<FONT face="Courier New" color=#000000 POINT-SIZE="9"> c1%<FONT face="Courier New" color=#0000ff POINT-SIZE="9">ROWTYPE<FONT face="Courier New" color=#000000 POINT-SIZE="9">;
face="Courier New" color=#0000ff POINT-SIZE="9">PROCEDURE<FONT face="Courier New" color=#000000 POINT-SIZE="9"> CL_CURSOR(p_item <FONT face="Courier New" color=#0000ff POINT-SIZE="9">in<FONT face="Courier New" color=#000000 POINT-SIZE="9"> <FONT face="Courier New" color=#0000ff POINT-SIZE="9">varchar2<FONT face="Courier New"color=#000000 POINT-SIZE="9">, P_IC <FONT face="Courier New" color=#0000ff POINT-SIZE="9">OUT<FONT face="Courier New" color=#000000 POINT-SIZE="9"> t_row);
POINT-SIZE="9">CREATE<FONT face="Courier New" color=#000000 POINT-SIZE="9"> <FONT face="Courier New" color=#0000ff POINT-SIZE="9">OR
face="Courier New" color=#000000 POINT-SIZE="9"> <FONT face="Courier New" color=#0000ff POINT-SIZE="9">PACKAGE<FONT face="Courier New" color=#000000 POINT-SIZE="9"> <FONT face="Courier New" color=#0000ffPOINT-SIZE="9">BODY
face="Courier New" color=#0000ff POINT-SIZE="9">PROCEDURE<FONT face="Courier New" color=#000000 POINT-SIZE="9"> CL_CURSOR(p_item <FONT face="Courier New" color=#0000ff POINT-SIZE="9">in<FONT face="Courier New" color=#000000 POINT-SIZE="9"> <FONT face="Courier New" color=#0000ff POINT-SIZE="9">varchar2<FONT face="Courier New"color=#000000 POINT-SIZE="9">, P_IC <FONT face="Courier New" color=#0000ff POINT-SIZE="9">OUT<FONT face="Courier New" color=#000000 POINT-SIZE="9"> t_row)
POINT-SIZE="9"> P_IC <FONT face="Courier New" color=#0000ff POINT-SIZE="9">FOR<FONT face="Courier New" color=#000000 POINT-SIZE="9">
POINT-SIZE="9"> ICTRANS <FONT face="Courier New" color=#0000ff POINT-SIZE="9">WHERE<FONT face="Courier New" color=#000000 POINT-SIZE="9"> ITEM=p_item;
mCmd .CommandText = sSQL .CommandType = adCmdText .ActiveConnection = gcnOracle