2

在 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:
4

1 回答 1

3

您没有该软件包的execute特权。dbms_monitor

让您的 DBA 运行

GRANT execute ON dbms_monitor TO your_username;
于 2012-05-24T13:13:55.070 回答