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!

how to call DBMS_ERRLOG.CREATE_ERROR_LOG(dml_table_name=>'dummy') in a procedure

ReemaPuriJan 16 2019 — edited Jan 17 2019

When a make a procedure

CREATE OR REPLACE PROCEDURE ERROR_LOG_TABLES
AS
BEGIN
DBMS_ERRLOG.CREATE_ERROR_LOG('dummy');
END ;

EXECUTE ERROR_LOG_TABLES();

its giving error :-

Error report -

ORA-01031: insufficient privileges

ORA-06512: at "SYS.DBMS_ERRLOG", line 113

ORA-06512: at "SYS.DBMS_ERRLOG", line 107

ORA-06512: at "SYS.DBMS_ERRLOG", line 422

ORA-06512: at "SINGBOSS.ERROR_LOG_TABLES", line 4

ORA-06512: at line 1

01031. 00000 -  "insufficient privileges"

*Cause:    An attempt was made to perform a database operation without

           the necessary privileges.

*Action:   Ask your database administrator or designated security

           administrator to grant you the necessary privileges

but when I call

EXECUTE DBMS_ERRLOG.CREATE_ERROR_LOG('dummy');

it is getting called successfully .

PL/SQL procedure successfully completed.

This post has been answered by Saubhik Banerjee on Jan 16 2019
Jump to Answer
Comments
Post Details
Added on Jan 16 2019
5 comments
1,068 views