Oracle 开启SQL跟踪执行SET AUTOTRACE ON命令时出错

错误提示:

SP2-0618: Cannot find the Session Identifier.  Check PLUSTRACE role is enabled

SP2-0611: Error enabling STATISTICS report解决:

--创建角色

sys@TESTDB11>@?/sqlplus/admin/plustrce.sql

--将角色授予给scott

sys@TESTDB11>grant plustrace to scott; 

请使用浏览器的分享功能分享到微信等