1. 当前连接实例的AWR报告提取
注意:中间没有任何空格,需要在数据库服务器上Oracle用户登陆
@?/rdbms/admin/awrrpt2. 输入格式
Enter valueforreport_type: html Type Specified: html注意:这里直接回车即可,默认就是html格式的
3. 输入提取天数
specifying a number lists all completed snapshots. Enter valuefornum_days:1注意:这里根据实际需要选择几天的AWR报告,一般取最近的AWR报告选择1天即可
4. 选择开始和结束时间
Specify the Begin and End Snapshot Ids ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Enter valueforbegin_snap:2Begin Snapshot Id specified:2Enter valueforend_snap:3End Snapshot Id specified:3注意:这里输入的begin_snap 和 end_snap都是根据上面具体时间点对应的实际Snap Id那一列决定的.
5. 保存文件
Specify the Report Name ~~~~~~~~~~~~~~~~~~~~~~~ The default reportfilename is awrrpt_2_2_3.html. To use this name, press<return>to continue, otherwise enter an alternative. Enter valueforreport_name: /home/oracle/awrrpt_2_3.html Using the report name /home/oracle/awrrpt_2_3.html