Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Problem running PL/SQL Procedure
Hi all,
I am a newbie, trying to run this procedure and get Invalid Procedure error.
The procedure compiles without errors and returns the number of records as required. When attempting to execute - I get errors. Any ideas?
Thanks,
Sanna
(Running 8i - pl/sql 8.1.7.0.0)
here's the script:
create or replace proc testSB
is
declare
vcount number;
begin
SELECT count(*) into vcount from testdba.test;
dbms_output.put_line('count records:'||vcount);
end;
/
SQL>@ C:\_work\sql\test_proc.sql
count records:185119
PL/SQL procedure successfully completed.
SQL> exec testSB
BEGIN testSB; END;
*
ERROR at line 1:
ORA-06550: line 1, column 7: PLS-00201: identifier 'TESTSB' must be declared ORA-06550: line 1, column 7:
![]() |
![]() |