oracle,11,awr报告,时间
oracle,11,awr报告,时间
oracle抓取指定时间段AWR报告
oracle抓取指定时间段AWR报告实例说明
1、 使用具有oracle应用程序执行权限的用户(如:oracle用户)登录到oracle应用服务器
2、 进入到awrrpt.sql脚本所在目录:
如:cd /oracle/product/db10g/rdbms/admin
3、 使用sqlplus登录到数据库,如:
/oracle/product/db10g/rdbms/admin$ sqlplussys/sys as sysdba
SQL*Plus: Release .0 - Production on Wed Aug 19 10:58:11 2015
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release .0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL
4、 执行awrrpt.sql
5、 在输入提示出输入希望生产的AWR报告格式
6、 在输入提出处输入需生产报告的最近天数
7、 输入抓取AWR报告的时间段对应的
Snap Id
8、 输入存储AWR报告数据的文件名(包含绝对路径)
9、 进入到目前/home/oracle下,获取文件“awrrpt08_09.html”到本地
10、 使用本地浏览器打开文件“awrrpt08_09.html”即可查看
篇二:oracle11G AWR使用及分析
1.先看一张图片,描述awr和ash的一些基础信息
1 SQL conn /as sysdba 2Connected. 3SQL @?/rdbms/admin/awrrpt.sql 4 5Current Instance 6~~~~~~~~~~~~~~~~ 7 8DB Id DB Name Inst Num Instance 9----------- ------------ -------- ------------103918594034 ORCL 1 orcl111213Specify the Report Type14~~~~~~~~~~~~~~~~~~~~~~~15Would you like an HTML report, or a plain text report?16Enter 'html' for an HTML report, or 'text' for plain text17Defaults to 'html'18Enter value for report_type: html1920Type Specified: html212223Instances in this Workload Repository schema24~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~2526DB Id Inst Num DB Name Instance Host27------------ -------- ------------ ------------ ------------28* 3918594034 1 ORCL orcl DCMSBDM2930Using 3918594034 for database Id31Using 1 for instance number323334Specify the number of days of snapshots to choose from35~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~36Entering the number of days (n) will result in the most recent37(n) days of snapshots being listed. Pressing return without38specifying a number lists all completed snapshots.394041Enter value for num_days: 24243
Listing the last 2 days of Completed Snapshots4445Sna