11g的提取过程:

提取AWR报告的脚本在此目录 /oracle/app/oracle/product/11.2.0.4/db_1/rdbms/admin 。提取完成后,可以MV/CP/SCP到其他目录,或使用FTP工具,传到本地,在浏览器中打开查看。

#su - oracle
/home/oracle > cd $ORACLE_HOME/rdbms/admin
/oracle/app/oracle/product/11.2.0.4/db_1/rdbms/admin > sqlplus / as sysdba
sql > @awrrpt.sql

Enter value for report_type:【回车默认 html】
Type Specified: html

Enter value for num_days: 2 【输入要提取的天数】

Enter value for begin_snap: 28876 【输入开始时间的 Snap Id】
Begin Snapshot Id specified: 28876

Enter value for end_snap: 28878 【输入结束时间的 Snap Id】
End Snapshot Id specified: 28878

Specify the Report Name
-----------------------
The default report file name is awrrpt_2_28876_28878.html. To use this name,press <return> to continue, otherwise enter an alternative.

Enter value for report_name: 【此处回车默认】【输入要生成的awr文件名称】
Using the report name awrrpt_2_28876_28878.html

<html lang="en">
... ...
生成过程
... ...
... ...
End of Report
</body></html>
Report written to awrrpt_1_28876_28878.html
SQL > exit
/oracle/app/oracle/product/11.2.0.4/db_1/rdbms/admin > ls -lrt
... ...
-rw-r--r-- 1 oracle dba 1098530 Aug 30 18:30 awrrpt_1_28876_28878.html
##生成完成

>>>如果文章对你有所帮助,欢迎关注点赞收藏、评论,谢谢!<<<