Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Error in compiling package

Re: Error in compiling package

From: <Rick_Cale_at_teamhealth.com>
Date: Tue, 26 Mar 2002 05:23:30 -0800
Message-ID: <F001.00432FE6.20020326052330@fatcity.com>

Never mind, REF_CURSOR should be REF CURSOR. It's early

                                                                                                                   
                    Rick Cale                                                                                      
                                         To:     ORACLE-L_at_fatcity.com, oracledba_at_lazydba.com                       
                    03/26/2002           cc:                                                                       
                    08:18 AM             Subject:     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;
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:23:30 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US