Re: Error in compiling package
Never mind, REF_CURSOR should be REF CURSOR. It's early Rick Cale To: [EMAIL PROTECTED], [EMAIL PROTECTED] 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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
RE: Compiling package
Did he try the SQL*Plus on your machine or his? Perhaps try SQL*Plus on the same machine if you have not already. Do not criticize someone until you walked a mile in their shoes, that way when you criticize them, you are a mile a way and have their shoes. Christopher R. Spence Oracle DBA Phone: (978) 322-5744 Fax:(707) 885-2275 Fuelspot 73 Princeton Street North, Chelmsford 01863 -Original Message- Sent: Tuesday, September 18, 2001 11:00 PM To: Multiple recipients of list ORACLE-L Hello guru I need help on this , I got 2 database reside in 2 server , 1 is a AIX -server , another is a winnt server , everything go smooth when I compile my package( which consist of 10 procedure , 10 function inside)in the winnt server , but when I move my package to another testing server , once I open the package my TOAD slow for a while ,and further when I compile the whole package ..it look stop for 5-10 minute and refresh back to normal status. When I ask my DBA , he compile it straight from sqlplus and under Enterprise manage console , directly w/o any delay . I ask him to try on my user name also the same...fast... He said it might be my TOAD problem , I try to install again my TOAD..it still work back the same ? Any idea how can I troubleshoot it ? Best Regard Raymond Lee ' If you are given an open-book exam, you will forget your book.' -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Raymond Lee Meng Hong INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Christopher Spence INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
Re: Compiling package
Hello guru I need help on this , I got 2 database reside in 2 server , 1 is a AIX -server , another is a winnt server , everything go smooth when I compile my package( which consist of 10 procedure , 10 function inside)in the winnt server , but when I move my package to another testing server , once I open the package my TOAD slow for a while ,and further when I compile the whole package ..it look stop for 5-10 minute and refresh back to normal status. When I ask my DBA , he compile it straight from sqlplus and under Enterprise manage console , directly w/o any delay . I ask him to try on my user name also the same...fast... He said it might be my TOAD problem , I try to install again my TOAD..it still work back the same ? Any idea how can I troubleshoot it ? Best Regard Raymond Lee ' If you are given an open-book exam, you will forget your book.' -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Raymond Lee Meng Hong INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).