- 1、本文档共6页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
取arw报告取arw报告
4.15.7、生成数据库的ARW的报告
AWR ASH报告收集也是比较简单的
一下为实例:
1、AWR 报告的收集
$ sqlplus / as sysdba(首先在操作上以ORACLE用户登录,并且以SYS登录数据库)
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Dec 24 14:57:53 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL @?/rdbms/admin/awrrpt.sql;(执行这个SQL就可以开始AWR报告收集)
Current Instance
~~~~~~~~~~~~~~~~
DB Id DB Name Inst Num Instance
----------- ------------ -------- ------------
3704746844 HS08 1 HS081
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,所以回车就OK)
Type Specified: html
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ -------- ------------ ------------ ------------
3704746844 2 HS08 HS082 hp102
* 3704746844 1 HS08 HS081 hp101
Using 3704746844 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: 1 (输入快照查看的间隔,一般一天的就OK,实际根据HS DBA的要求来做)
Listing the last days Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
HS081 HS08 158 24 Dec 2008 00:00 1
159 24 Dec 2008 01:00 1
文档评论(0)