how to debug package in sql developer?
799598Sep 22 2010 — edited Sep 22 2010Hi,
I need to debug one of procedures in my package in sql developer version 1.5.5. In Debugging log, I got the following:
Connecting to the database <databasename>.
Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '127.0.0.1', '2754' )
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
ORA-06512: at line 1
This session requires DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE user privileges.
Process exited.
Disconnecting from the database <databasename>.
I have granted both DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE user privileges from SYS as the following:
GRANT DEBUG ANY PROCEDURE TO ESM_OWNER;
grant DEBUG CONNECT SESSION to ESM_OWNER;
However, I still get the same error. What did I do wrong? I really appreciate any help to solve my problem.
Thanks in advance!!!
Cindy