方法一:
SQL> set autot trace
SQL> set autot on
SQL> set autot off
方法二:
SQL> select operation,options,object_name,id,parent_id,cost from v$sql_plan where object_name='TEST';
方法三:
SQL> EXPLAIN PLAN FOR CREATE INDEX IND_T_NAME ON T(OBJECT_NAME);
SQL> SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);
本文转自 vfast_chenxy 51CTO博客,原文链接:http://blog.51cto.com/chenxy/743098,如需转载请自行联系原作者