Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: VB & Oracle question
I declare the t_row here:
CREATE OR REPLACE PACKAGE LAWSON1.PACK_ICTRANS
ASCURSOR c1 ISSELECT ITEM,DOC_TYPE,DOCUMENT FROM
ICTRANS;TYPE t_row IS REF CURSOR RETURN
c1%ROWTYPE; --Declaration
PROCEDURE CL_CURSOR(p_item in varchar2,
P_IC OUT t_row);END
PACK_ICTRANS;Where and how can I declare de P_IC
variable?
I don't know a lot of Oracle I was following a book
trying to have sucessfull with this code.
>>> [EMAIL PROTECTED] 06/18/03 06:54PM
>>>Ms. Castro:In the procedure declarationPROCEDURE
CL_CURSOR(p_item in varchar2, P_IC OUT t_row)the P_IC is
referenced as an OUT variable of type t_row. But to use it, itmust be
declared somewhere else, usually in the calling program. So, avariable
definition should exist in the package specification or bodydeclaring
the P_IC
variable.RWB============================================================================================================ReginaldW. BaileyIBM Global Services - ETS SW GDSD - Database ManagementYour Friendly Neighborhood DBA713-216-7703 (Office) 281-798-5474 (Mobile) 713-415-5410
(Pager)============================================================================================================
[EMAIL PROTECTED]
[EMAIL PROTECTED]
by: cc:
Subject: VB & Oracle questionHi!!!I create a package in Oracle.When I run the line:Set adoRS = mCmd.ExecuteVB sent me the next error:Run-time error '-214721700 (80040E14)':Ora-06550: line 1, column 33: PLS-002001: Identifier 'P_IC' must bedeclare.Ora-06550: line1, column 7: PLS/SQL: Statemnt ignored.What I am doing wrong????????This is the codeCREATE OR REPLACE PACKAGE LAWSON1.PACK_ICTRANS ASCURSOR c1 ISSELECT ITEM,DOC_TYPE,DOCUMENT FROM ICTRANS;TYPE t_row IS REF CURSOR RETURN c1%ROWTYPE;PROCEDURE CL_CURSOR(p_item in varchar2, P_IC OUT t_row);END PACK_ICTRANS;CREATE OR REPLACE PACKAGE BODY LAWSON1.PACK_ICTRANS ASPROCEDURE CL_CURSOR(p_item in varchar2, P_IC OUT t_row) IS BEGIN OPEN
com
06/18/2003 07:05
PM
Please respond to
ORACLE-L
mCmd .CommandText = sSQL .CommandType = adCmdText .ActiveConnection
services---------------------------------------------------------------------ToREMOVE yourself from this mailing list, send an E-Mail messageto: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing). Received on Wed Jun 18 2003 - 20:19:00 CDT