|
|
|
|
|
|
|
|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|---|---|---|---|---|
|
|
|
|
|
这个时候我们可以尝试使用DBMS_XPLAN.DISPLAY_AWR存储过程来将 Oracle Automatic Workload Repository自动负载仓库中记录的SQL语句相关信息抽取出来,如:
@ /rdbms/admin/awrsqrpt.sql下面是上诉语句生成的AWRSQL:
WORKLOAD REPOSITORY SQL Report
Snapshot Period Summary
SQL Summary
Back to TopSQL ID: 1rrtf60fmhxkj
1st Capture and Last Capture Snap IDs refer to Snapshot IDs witin the snapshot range
SELECT COUNT(*) FROM T1,T2 WHERE T1.OBJECT_ID=T2.OBJECT_ID
Plan Statistics
Execution Plan Back to Top
% Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database Time multiplied by 100
dynamic sampling used for this statement (level=2)