SP2-0618: Cannot find the Session
Identifier.
以前一直用
SQL> set autotrace on
SP2-0618: Cannot find the Session
Identifier.
SP2-0611: Error enabling STATISTICS repor
第一反应是授予用用户
SQL> conn / as sysdba
Connected.
SQL>
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist
报角色不存在错误
plustrace
这个角色可通过运行下面的
$ORACLE_HOME/sqlplus/admin/plustrce.sql
授予用户
SQL> grant plustrace to oak;
Grant succeeded.
启用
SQL> set autotrace on