Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PLS-00487: Invalid reference to variable 'RC_PARAMSGET'

320880Apr 13 2003
Oracle 9.2 client ORA 8.1.7 Server:

Trying to run an SP in SQL navigator ( or PL/SQL)

I get the following error(s)
ORA-06550: line 6, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 6, column 3:
++++++++++++++++++++++++++++++++++++++++++++

Here's the Package and Proc Code with the errors at the end.

It seems not to like a Ref Cursor, but I'm not experienced enough to know the reason.

ANy Help would be very appreciated: AJACODE
++++++++++++++++++++++++++++++++++++++++++++

--Package Spec

Package RPT_NB_GUI_Param_Get_PKG
IS

TYPE rc_Params_gettbl IS RECORD (

o_QueryID Number,
o_ParameterID Number,
o_Param VARCHAR2 (20),
o_Param_Type VARCHAR2 (50),
o_Param_QueryID Number
);


TYPE rc_params IS REF CURSOR RETURN rc_Params_gettbl;

END; -- Package Specification RPT_NB_GUI_Param_Get_PKG


--+++++++++++++++++++++++++++++++++++++++++
-- Proc

Procedure RPT_NB_GUI_Param_Get_PROC

(
p_QueryID in Number ,

rc_ParamsGet IN OUT RPT_NB_GUI_Param_Get_PKG.rc_Params)

IS

/*-*******************************************************************************************

--
-- Purpose: To generate Parameters for GUI
-- MODIFICATION HISTORY
-- Person Date Comments
-- --------- ------ -------------------------------------------
-- AJ Grasso 04/11/2003 Created
--

**********************************************************************************************/

BEGIN

OPEN rc_ParamsGet For

SELECT
QP.QueryID
,P.ParameterID
,P.Parameter
,PT.Parameter_Type
,PQ.Parameter_QueryID

FROM

rpt_Query_Parameter QP, rpt_Parameter P, rpt_Parameter_Type PT, rpt_parameter_query PQ


WHERE --inner join rpt_Parameter P ON
(QP.ParameterID = P.ParameterID)
AND --inner join rpt_Parameter_Type PT ON
(QP.Parameter_TypeID = PT.Parameter_TypeID)
AND --left outer join rpt_parameter_query PQ ON
(QP.Parameter_queryID = PQ.parameter_queryID)

AND (QP.QueryID = p_QueryID) ;






END; -- RPT_NB_GUI_Param_Get_PROC


-- ERRORS
-- +++++++++++++++++

ORA-06550: line 6, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 6, column 3:
PL/SQL: Statement ignored
ORA-06550: line 7, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 7, column 3:
PL/SQL: Statement ignored
ORA-06550: line 8, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 8, column 3:
PL/SQL: Statement ignored
ORA-06550: line 9, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 9, column 3:
PL/SQL: Statement ignored
ORA-06550: line 10, column 16:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 10, column 3:
PL/SQL: Statement ignored
ORA-06550: line 16, column 74:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 16, column 3:
PL/SQL: Statement ignored
ORA-06550: line 17, column 78:
PLS-00487: Invalid reference to variable 'RC_PARAMSGET'
ORA-06550: line 17, column 3:
PL/SQL: Statement ignored
ORA-06550: line 18, column 71:
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2003
Added on Apr 13 2003
0 comments
740 views