gpt4 book ai didi

为其他 session 启动跟踪时出现 Oracle 11g 错误

转载 作者:行者123 更新时间:2023-12-04 05:45:25 29 4
gpt4 key购买 nike

在 Oracle 11g 中,我尝试跟踪 session ,但失败了。该工具是 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:

最佳答案

您没有 execute dbms_monitor 的特权包裹。

请您的 DBA 运行

GRANT execute ON dbms_monitor TO your_username;

关于为其他 session 启动跟踪时出现 Oracle 11g 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10738166/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com