https://www.youkuaiyun.com/gather_2f/MtTaMg4sNzYzMS1ibG9n.html
1.PLSQL
快捷键F5(对指令的封装)
2.SQLPLUS
- explain plan for SQL;
- select * from table(dbms_xplan.display);
请输入用户名: orcl/orcl
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> explain plan for select * from GAMS_ASSETCARD;
已解释。
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 655859704
--------------------------------------------------------------------------------
----
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
|
--------------------------------------------------------------------------------
----
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 5076 | 4386K| 211 (1)| 00:00:
03 |
| 1 | TABLE ACCESS FULL| GAMS_ASSETCARD | 5076 | 4386K| 211 (1)| 00:00:
03 |
--------------------------------------------------------------------------------
----