SQL> show user
USER is "HR"
SQL> set autot on stat
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
解决方案
SQL> show user
USER is "SYS"
SQL> grant plustrace to hr;
plustrace角色脚本路径(执行脚本创建角色):$ORACLE_HOME/sqlplus/admin/plustrce.sql
[@more@]
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28758644/viewspace-1060937/
,如需转载,请注明出处,否则将追究法律责任。