Oracle 9i中查看plan_table:
|
sys@DG1> select * from v$version; BANNER sys@DG1> set autotrace on explain; no rows selected
|
Oracle 10g中查看plan_table:
|
SQL> select * from v$version; BANNER SQL> set autotrace on explain no rows selected
---------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time ---------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | 11081 | 2 (0)| 00:00:01 | 1 | TABLE ACCESS FULL| PLAN_TABLE$ | 1 | 11081 | 2 (0)| 00:00:01 -----------------------------------------------------------
|
结论:
Oracle 10g中不再需要创建plan_table表,因为它会自动创建一个数据字典表PLAN_TABLE$.
