set autotrace on explain异常:SP2-0613: Unable to verify PLAN_TABLE format or existence
2013-04-26 10:03
435 查看
SQL> set autotrace on explain SP2-0613: Unable to verify PLAN_TABLE format or existence SP2-0611: Error enabling EXPLAIN report SQL> connect / as sysdba Connected. SQL> @%ORACLE_HOME%/rdbms/admin/utlxplan Table created. SQL> create public synonym plan_table for plan_table; Synonym created. SQL> grant all on plan_table to public; Grant succeeded. SQL> @%ORACLE_HOME%/SQLPLUS/ADMIN/PLUSTRCE SQL> SQL> drop role plustrace; drop role plustrace * ERROR at line 1: ORA-01919: role 'PLUSTRACE' does not exist SQL> create role plustrace; Role created. SQL> SQL> grant select on v_$sesstat to plustrace; Grant succeeded. SQL> grant select on v_$statname to plustrace; Grant succeeded. SQL> grant select on v_$session to plustrace; Grant succeeded. SQL> grant plustrace to dba with admin option; Grant succeeded.
执行以上操作之后,基本就行了。
SQL> set autotrace on exp SQL> set timing on SQL> select count(*) from tab; COUNT(*) ---------- 2470 Elapsed: 00:00:02.00 Execution Plan ---------------------------------------------------------- 0 SELECT STATEMENT Optimizer=CHOOSE 1 0 SORT (AGGREGATE) 2 1 NESTED LOOPS (OUTER) 3 2 TABLE ACCESS (BY INDEX ROWID) OF 'OBJ$' 4 3 INDEX (RANGE SCAN) OF 'I_OBJ2' (UNIQUE) 5 2 TABLE ACCESS (CLUSTER) OF 'TAB$' 6 5 INDEX (UNIQUE SCAN) OF 'I_OBJ#' (NON-UNIQUE)
相关文章推荐
- 在sqlplus中set autotrace on 出错的解决办法( Unable to verify PLAN_TABLE)
- 在sqlplus中set autotrace on 出错的解决办法:SP2-0613,SP2-0611
- [Sql*Plus] Set up Explain Plan and Autotrace
- set autotrace on(SP2-0618,SP2-0611,ORA-01919)
- SET AUTOT ON无法使用解决方法,以及PLAN_TABLE的使用
- java异常:Could not create and/or set value back on to object 总结
- hive 异常 (Attempt to do update or delete on table terminal that does not use an )
- Oracle 使用scott用户 set autotrace on报错 SP2-0618,SP2-0611
- Unable to connect to data source (DSN: shangjihuiclient; Network Address: ; Port Number: 53397). Cannot connect to TimesTen Server. Verify that the TimesTen Server is running or verify that your TCP PORT is set correctly.
- 异常-----freemarker.template.TemplateException: Expected collection or sequence. datas evaluated instead to freemarker.core.HashLiteral$SequenceHash on line 7, column 18 in inc/select.ftl.
- Hibernate异常:Unable to locate appropriate constructor on class
- set autotrace on 报cannot set autotrace错误
- Hibernate异常:Unable to locate appropriate constructor on class
- Unable to Start Debugging on the Web Server 异常的处理方法
- 使用POI插件对EXCEL 进行操作RecordFormatException:unable to construct record instance异常
- Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.
- Hibernate异常:Unable to locate appropriate constructor on class
- Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.