AWR导入分析数据之后,就要对数据库进行分析,我之前导入的AWR数据是RAC环境,利用awrrpt.sql只能对本地的数据库生成AWR报告,要生成导入的数据库的AWR报告,就需要使用awrrpti.sql这个脚本。
QL> @?/rdbms/admin/awrrpti
Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report, or a plain text report?
Enter 'html' for an HTML report, or 'text' for plain text
Defaults to 'html'
输入 report_type 的值: html
Type Specified: html
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ -------- ------------ ------------ ------------
* 1520519778 1 STREAM stream STREAM
2400249746 1 CNDERPDB cnderpdb1 p5a1
2400249746 2 CNDERPDB cnderpdb2 p5b1
输入 dbid 的值: 2400249746 ----可以看到2400249746为要分析的数据库的DBID,为RAC环境
Using 2400249746 for database Id
输入 inst_num 的值: 2 ----生成cnderpdb2实例的awr报告
Using 2 for instance number
Specify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed. Pressing <return> without
specifying a number lists all completed snapshots.
输入 num_days 的值: 5
Listing the last 5 days of Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
cnderpdb2 CNDERPDB 50104 18 6月 2011 00:59 1
50105 18 6月 2011 01:59 1
50106 18 6月 2011 03:00 1
......
50208 22 6月 2011 09:00 1
50209 22 6月 2011 09:59 1
Specify the Begin and End Snapshot Ids
输入 begin_snap 的值: 50104
Begin Snapshot Id specified: 50104
输入 end_snap 的值: 50209
End Snapshot Id specified: 50209
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_2_50104_50209.html. To use this name,
press <return> to continue, otherwise enter an alternative.
输入 report_name 的值: d:\awr50104_50209
Using the report name d:\awr50104_50209
由于是RAC环境,cnderpdb1 节点的AWR也要生成,和cnderpdb2节点的AWR报告对比分析。
分享到:
相关推荐
数据库AWR分析
性能测试过程中,我们会监控数据库资源,发现性能测试瓶颈在数据库后,需要打印oracle awr报告来定位问题,那我们如何打印awr报告呢?以下为生成awr步骤。1. 首先第一步查看实例:echo $ORACLE_SID 2. 赋值实例:...
最近想要通过awr观察下某个oracle实例的性能情况,碰到了在sqlplus执行awrrpt.sql到选择snapshot区间的时候无任何区间供选导致无法进一步生 成awr的情况,而且手动使用execute DBMS_WORKLOAD_REPOSITORY.CREATE_...
Oracle AWR报告详细分析,详细地说明了AWR报告里个统计量含义。
AWR报告生成详解,详细介绍了ORACLE的AWR分析
对oracle数据库进行性能分析,详细描述了AWR报告的使用方法以及分析的过程
使用非常详尽的步骤,一步一步的指引我们在oracle 中如何生成一份awr报告
oracle awr报告具体分析
AWR报告生成和分析详解,对于报告中相关参数解析,分析数据库异常
awr报告awr报告awr报告awr报告
对oracle的AWR报表生成和各项关键指标分析进行具体分析论述。
awr往往是分析数据库性能得重要参照,这个是oracle的awr的分析总结,教你如何看awr分析数据库性能问题。
数据库出现性能问题,一般都在三个地方,io,内存,cpu,这三个又是息息相关的(ps:我们先假设这个三个地方都没有物理上的故障),当io负载增大时,肯定需要更多的内存来存放,同时也需要cpu花费更多的时间来过滤...
OracleAWR报告详细分析.pdf
window下直接调用生成弹出html格式的awr报告,不用去linux下了,但是妖之道数据库密码的啊,不然没法调用,修改里bat里的连接串即可 样例: sqlplus sys/oracle@zhengshiku_2 as sysdba @addmrpt.sql
如何使用使用AWR报告来诊断数据库性能问题,本篇从oracle support上下载的,对性能诊断有一定的帮助.
自动化分析Oracle数据库的AWR报告,分析其中问题并给出具体建议。 详细信息可查看博文: https://blog.csdn.net/qianglei6077/article/details/94397591
Oracle 数据库 AWR 报告详解