Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Error in compiling package
Hi DBAs,
I have I think is a very simple package but I cannot get it to compile because of the following error. Can anyone see what the problem is? The message suggest an error in the specification. Wow only 2 lines of code in the spec.
PLS-00905: object PKG_ARGS is invalid
PLS-00304: cannot compile body of pkg_args without its specification.
Thanks
Rick
CREATE OR REPLACE PACKAGE pkg_args AS
TYPE ref_args IS REF_CURSOR;
PROCEDURE get_args (i_proc_name IN VARCHAR2,i_pkg_name IN VARCHAR2,refargs
OUT ref_args);
END;
/
CREATE OR REPLACE PACKAGE BODY pkg_args AS
PROCEDURE get_args (i_proc_name IN VARCHAR2,i_pkg_name IN
VARCHAR2,refargs OUT ref_args) AS
BEGIN
OPEN refargs FOR 'select argument_name || '','' || data_length || '',''
||
data_precision || '','' || data_scale || '', '' || data_type || '', '' || in_out
from all_arguments where object_name = ' || i_proc_name || 'and package_name = '|| i_pkg_name;END;
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Rick_Cale_at_teamhealth.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Mar 26 2002 - 07:18:26 CST