oracle 9i 開啟autotrace on

wangzhensheng發表於2010-05-13

@?/rdbms/admin/utlxplan
create public synonym plan_table for plan_table;
grant all on plan_table to public;
@?/sqlplus/admin/plustrce.sql
grant plustrace to public;

#測試過程
connect /as sysdba;
select username,created from dba_users order by 2;
connect USERNAME/PASSWORD
set autotrace traceonly;

如果出現
SQL> set autotrace traceonly;
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
的提示,執行:
connect /as sysdba;
grant select any dictionary to public;

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8806316/viewspace-1033579/,如需轉載,請註明出處,否則將追究法律責任。

相關文章