Skip to content
Home » Oracle Database » User and Role » How to Enable an User to Debug All Stored Procedures

How to Enable an User to Debug All Stored Procedures

To enable a developer to have the right to debug any stored procedure in the database, we need to grant the following system privileges to it.

  1. DEBUG CONNECT SESSION
  2. DEBUG ANY PROCEDURE

DEBUG CONNECT SESSION

DEBUG CONNECT SESSION is used to make the user connect the current session to a debugger.

SQL> grant DEBUG CONNECT SESSION to hr;

Grant succeeded.

DEBUG ANY PROCEDURE

DEBUG ANY PROCEDURE is used to enable the user to debug all PL/SQL and Java code in any database object.

SQL> grant DEBUG ANY PROCEDURE to hr;

Grant succeeded.

Then we can notify the user to test it.

Chances are, it may run into another ACL problem when connecting to a debugger.

Leave a Reply

Your email address will not be published. Required fields are marked *