設定autotrace全過程

wmlm發表於2008-07-29

SQL> conn
Connected.
SQL> set autotrace on
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report


SQL> conn
Connected.
SQL> @D:oracleora92rdbmsadminutlxplan.sql
SQL> create public synonym plan_table for plan_table;
SQL> grant all on plan_table to public;
SQL> conn
as sysdba
Connected.
SQL> @D:oracleora92sqlplusadminplustrce.sql

SQL> grant plustrace to public;

Grant succeeded.

SQL>

SQL> conn
Connected.
SQL> set autotrace on statistics

[@more@]

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

相關文章