Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

error ora-06512

681359Aug 11 2009 — edited Aug 11 2009
hi all,

when i am executing following procedure it gives me erro :ORA-06512, Please anyone can guide how am i getting this error:
CREATE OR REPLACE PROCEDURE PR_EXEC 
AUTHID CURRENT_USER
IS 

SQLST VARCHAR2(250);

BEGIN

SQLST:='EXEC schema.nothing(''emp'');';


DBMS_OUTPUT.PUT_LINE(SQLST);
EXECUTE IMMEDIATE SQLST;

COMMIT;

END;
/


SET SERVEROUTPUT ON;

EXEC PR_EXEC;
ERROR at line 1:
ORA-00900: invalid SQL statement
ORA-06512: at "AIQBAL.PR_EXEC", line 13
ORA-06512: at line 1
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2009
Added on Aug 11 2009
5 comments
642 views