Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Error execution
Hi guys when i try to compile the following package
its compiled without errors.
but when i executed the procedure by
exec <procedure_name>
i get the following error message
SQL> exec sp_ai_gettablename();
BEGIN sp_ai_gettablename(); END;
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'SP_AI_GETTABLENAME' must be
declared
ORA-06550: line 1, column 7:
the package header & body are
CREATE OR REPLACE PACKAGE TABLES_NAME_PACK AS
TYPE TBLRECID IS TABLE OF NUMBER(10) INDEX BY
BINARY_INTEGER;
TYPE TBLNAME IS TABLE OF VARCHAR2(16) INDEX BY
BINARY_INTEGER;
PROCEDURE sp_ai_GetTableNames(
O_tblrecid OUT TBLRECID,
O_tablename OUT TBLNAME);
END TABLES_NAME_PACK; CREATE OR REPLACE PACKAGE BODY TABLES_NAME_PACK AS
PROCEDURE sp_ai_GetTableNames(
o_tblrecid out tblrecid,
o_tablename out tblname)
is
cursor c2 is
select recid,table_name from tc_tang_tables;
reccount_2 number default 0;
BEGIN
FOR tnamrec IN c2 LOOP
reccount_2:= reccount_2 + 1;
o_tblrecid(reccount_2):= tnamrec.recid;
o_tablename(reccount_2):= tnamrec.table_name;
END LOOP;
END sp_ai_gettablenames;
END tables_name_pack;
Can anyone tell me why is this happening?
Varma Poosapati.