SQL> set autotrace on
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
Cause:
这是因为所使用的用户没有plustrce角色导致的
1)以sysdba角色进入数据库。
2)@$ORACLE_HOME/sqlplus/admin/plustrce.sql
3)grant plustrace to scott; 这里是有a的啊!