ashutosh_kumar
asked on
Oracle: create procedure??
Hi,
I am new to Oracle...so facing some issue...any help would be appreciated.
whats wrong in the way I am creating the procedure below???
I am new to Oracle...so facing some issue...any help would be appreciated.
whats wrong in the way I am creating the procedure below???
SQL> create procedure test1 IS
2 begin
3 dbms_output.put_line('Hi Ashutosh');
4 end;
5 .
SQL> exec test1;
BEGIN test1; END;
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'TEST1' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> create or replace procedure test1 IS
2 begin
3 dbms_output.put_line('Hi Ashutosh');
4 end;
5 .
SQL> exec test1;
BEGIN test1; END;
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'TEST1' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> call test1;
call test1
*
ERROR at line 1:
ORA-06576: not a valid function or procedure name
SQL>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You missed a semi-colon after the EXIT statement - exit when m_c%notfound;
Glad to be of help :)
ASKER
thanks for your help...
ok now I can create the SPs...just one more small problem for you....
can you please tell me why this is not compiling???
Open in new window