에러 메세지
SQL> set autot on
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
autotrace 명령을 사용하기 위해 해당 User는 autotrace 권한이 있어야 하며
autotrace 명령을 사용하기 전에 PLAN_TABLE이 생성되어 있어야 한다.
해결책
SQL> conn / as sysdbaSQL> @$ORACLE_HOME/sqlplus/admin/plustrce.sql -- autotrace 기능 활성화
SQL> @$ORACLE_HOME/rdbms/admin/utlxplan -- XPLAN_TABLE 생성
SQL> grant plustrace to user; -- plustrace 권한을 user에게 부여
'오라클 > Tip' 카테고리의 다른 글
Oracle 10g Kernel Parameter 환경변수 설정 (0) | 2010.09.07 |
---|---|
Buffer cache hit ratio (0) | 2010.09.07 |
Linux에서 Raw Device 사용 (0) | 2010.08.30 |
UNIX에서 Raw Device 사용 (0) | 2010.08.30 |
물리모델링시 Width가 없는 Number형을 쓰지 말아야 할 이유 (0) | 2010.05.18 |