sqlplus / as sysdba
SQL> exec DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (flush_level=>'ALL');
SQL> @$ORACLE_HOME/rdbms/admin/awrrpt.sql
Current Instance
~~~~~~~~~~~~~~~~
DB Id DB Name Inst Num Instance
----------- ------------ -------- ------------
3555754106 P0CGF 1 P0CGF1
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'
Enter value for report_type: html
Type Specified: html
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ -------- ------------ ------------ ------------
3555754106 2 P0CGF P0CGF2 p0cgfdb002
* 3555754106 1 P0CGF P0CGF1 p0cgfdb001
Using 3555754106 for database Id
Using 1 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.
Enter value for num_days: 3
Listing the last 3 days of Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
P0CGF1 P0CGF 2025 10 Apr 2014 00:00 1
2026 10 Apr 2014 01:00 1
2027 10 Apr 2014 02:00 1
2028 10 Apr 2014 03:00 1
2029 10 Apr 2014 04:00 1
2030 10 Apr 2014 05:00 1
2031 10 Apr 2014 06:00 1
2032 10 Apr 2014 07:00 1
2033 10 Apr 2014 08:00 1
2034 10 Apr 2014 09:00 1
2035 10 Apr 2014 10:00 1
2036 10 Apr 2014 11:00 1
2037 10 Apr 2014 12:00 1
2038 10 Apr 2014 13:00 1
2039 10 Apr 2014 14:00 1
2040 10 Apr 2014 15:00 1
2041 10 Apr 2014 16:00 1
2042 10 Apr 2014 17:00 1
2043 10 Apr 2014 18:00 1
2044 10 Apr 2014 19:00 1
2045 10 Apr 2014 20:00 1
2046 10 Apr 2014 21:00 1
2047 10 Apr 2014 22:00 1
2048 10 Apr 2014 23:00 1
2049 11 Apr 2014 00:00 1
2050 11 Apr 2014 01:00 1
2051 11 Apr 2014 02:00 1
2052 11 Apr 2014 03:00 1
2053 11 Apr 2014 04:00 1
2054 11 Apr 2014 05:00 1
2055 11 Apr 2014 06:00 1
2056 11 Apr 2014 07:00 1
2057 11 Apr 2014 08:00 1
2058 11 Apr 2014 09:00 1
2059 11 Apr 2014 10:00 1
2060 11 Apr 2014 11:00 1
2061 11 Apr 2014 12:00 1
2062 11 Apr 2014 13:00 1
2063 11 Apr 2014 14:00 1
2064 11 Apr 2014 15:00 1
2065 11 Apr 2014 16:00 1
2066 11 Apr 2014 17:00 1
2067 11 Apr 2014 18:00 1
2068 11 Apr 2014 19:00 1
2069 11 Apr 2014 20:00 1
2070 11 Apr 2014 21:00 1
2071 11 Apr 2014 22:00 1
2072 11 Apr 2014 23:00 1
2073 12 Apr 2014 00:00 1
2074 12 Apr 2014 01:00 1
2075 12 Apr 2014 02:00 1
2076 12 Apr 2014 03:00 1
2077 12 Apr 2014 04:00 1
2078 12 Apr 2014 05:00 1
2079 12 Apr 2014 06:00 1
2080 12 Apr 2014 07:00 1
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
P0CGF1 P0CGF 2081 12 Apr 2014 08:00 1
2082 12 Apr 2014 09:00 1
2083 12 Apr 2014 10:00 1
2084 12 Apr 2014 11:00 1
2085 12 Apr 2014 11:33 1
2086 12 Apr 2014 12:07 2
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 2083
Begin Snapshot Id specified: 2083
Enter value for end_snap: 2086
End Snapshot Id specified: 2086
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_2083_2086.html. To use this name,
press <return> to continue, otherwise enter an alternative.
Enter value for report_name: /home/oracle/mosi_report.html
相关推荐
AWR报告生成手动配置,调整AWR配置,dbms_workload_repository包
最近想要通过awr观察下某个oracle实例的性能情况,碰到了在sqlplus执行awrrpt.sql到选择snapshot区间的时候无任何...成awr的情况,而且手动使用execute DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT ();一直执行无果。
AWR报告生成详解,详细介绍了ORACLE的AWR分析
使用非常详尽的步骤,一步一步的指引我们在oracle 中如何生成一份awr报告
ORACLE AWR报告生成
awr报告awr报告awr报告awr报告
window下直接调用生成弹出html格式的awr报告,不用去linux下了,但是妖之道数据库密码的啊,不然没法调用,修改里bat里的连接串即可 样例: sqlplus sys/oracle@zhengshiku_2 as sysdba @addmrpt.sql
本文介绍Windows和Linux平台生成oracle awr报告方法,适合新手查阅。欢迎大家下载,如有建议和疑问可联系作者
AWR报告生成和分析详解,对于报告中相关参数解析,分析数据库异常
Oracle AWR报告详细分析,详细地说明了AWR报告里个统计量含义。
对oracle的AWR报表生成和各项关键指标分析进行具体分析论述。
脚本生成AWR报告步骤
oracle查看awr的详细介绍 AWR 是 Oracle 10g 版本 推出的新特性, 全称叫Automatic Workload Repository-自动负载信息库, AWR 是通过对比两次快,照(snapshot)收集到的统计信息,来生成报表数据,生成的报表包括多个...
oracle awr报告具体分析
本文档对oracle awr报告的解读进行讲解,让读者方便地进行awr报告分析。
AWR报告的生成、管理和分析,是一份不错的入门文档
如何分析AWR报告
AWR报告详细解读及常见等待事件的详细介绍,让你快速学会AWR报告核心内容及主要参数含义,详细等待事件介绍帮助你快速分析数据库瓶颈
OracleAWR报告详细分析.pdf
性能测试过程中,我们会监控数据库资源,发现性能测试瓶颈在数据库后,需要打印oracle awr报告来定位问题,那我们如何打印awr报告呢?以下为生成awr步骤。1. 首先第一步查看实例:echo $ORACLE_SID 2. 赋值实例:...