其他会话启动跟踪时出现Oracle 11g错误

时间:2012-05-24 13:10:54

标签: oracle

在Oracle 11g中,我尝试跟踪会话,但失败了。该工具是SQL Developer。我没有权限?但我可以查询v $ session。

由于

BEGIN
  DBMS_MONITOR.SESSION_TRACE_ENABLE(session_id=>72, 
                                         serial_num=>36449, 
                                         waits=>TRUE, 
                                         binds=>TRUE);
END;
Error report:
ORA-06550: line 2, column 3:
PLS-00201: identifier 'DBMS_MONITOR' must be declared
ORA-06550: line 2, column 3:
PL/SQL: Statement ignored
06550. 00000 -  "line %s, column %s:\n%s"
*Cause:    Usually a PL/SQL compilation error.
*Action:

1 个答案:

答案 0 :(得分:2)

您对execute软件包没有dbms_monitor权限。

请你的DBA运行

GRANT execute ON dbms_monitor TO your_username;
相关问题