运行awrrpt脚本
SQL> @?/rdbms/admin/awrrpt
 
Current Instance
~~~~~~~~~~~~~~~~
 
   DB Id    DB Name      Inst Num Instance
----------- ------------ -------- ------------
 1309338602 ORCL                1 orcl
 
 
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'
#输入报告的文件格式,如果不输入,直接回车,则为默认的html格式
输入 report_type 的值:
 
Type Specified:  html
 
 
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
   DB Id     Inst Num DB Name      Instance     Host
------------ -------- ------------ ------------ ------------
  1309338602        1 ORCL         orcl         GPS-DBSVR
* 1309338602        1 ORCL         orcl         CQJTYJAPPSEV
                                                ER2
 
Using 1309338602 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 without
specifying a number lists all completed snapshots.
#输入需要快照的天数
 
 
输入 num_days 的值:  2
 
Listing the last 2 days of Completed Snapshots
 
                                                        Snap
Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
orcl         ORCL             27291 28 6月  2015 00:00     1
                              27292 28 6月  2015 01:00     1
                              27293 28 6月  2015 02:00     1
                              27294 28 6月  2015 03:00     1
                              27295 28 6月  2015 04:00     1
                              27296 28 6月  2015 05:00     1
                              27297 28 6月  2015 06:00     1
                              27298 28 6月  2015 07:00     1
                              27299 28 6月  2015 08:00     1
                              27300 28 6月  2015 09:00     1
                              27301 28 6月  2015 10:00     1
                              27302 28 6月  2015 11:00     1
                              27303 28 6月  2015 12:00     1
                              27304 28 6月  2015 13:00     1
                              27305 28 6月  2015 14:00     1
                              27306 28 6月  2015 15:00     1
                              27307 28 6月  2015 16:00     1
                              27308 28 6月  2015 17:00     1
                              27309 28 6月  2015 18:00     1
                              27310 28 6月  2015 19:00     1
                              27311 28 6月  2015 20:00     1
                              27312 28 6月  2015 21:00     1
                              27313 28 6月  2015 22:00     1
                              27314 28 6月  2015 23:00     1
                              27315 29 6月  2015 00:00     1
                              27316 29 6月  2015 01:00     1
                              27317 29 6月  2015 02:00     1
                              27318 29 6月  2015 03:00     1
                              27319 29 6月  2015 04:00     1
                              27320 29 6月  2015 05:00     1
                              27321 29 6月  2015 06:00     1
                              27322 29 6月  2015 07:00     1
                              27323 29 6月  2015 08:00     1
                              27324 29 6月  2015 09:00     1
                              27325 29 6月  2015 10:00     1
                              27326 29 6月  2015 11:00     1
                              27327 29 6月  2015 12:00     1
                              27328 29 6月  2015 13:00     1
                              27329 29 6月  2015 14:00     1
                              27330 29 6月  2015 15:00     1
                              27331 29 6月  2015 16:00     1
                              27332 29 6月  2015 17:00     1
                              27333 29 6月  2015 18:00     1
 
 
 
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#输入起始快照编号
输入 begin_snap 的值:  27309
Begin Snapshot Id specified: 27309
#输入结束快照编号
 
输入 end_snap 的值:  27333
End   Snapshot Id specified: 27333
 
 
 
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_27309_27333.html.  To use this name,
press to continue, otherwise enter an alternative.
#输入报告名称,不输入,直接回车,则使用默认的名称
 
输入 report_name 的值:
 
Using the report name awrrpt_1_27309_27333.html

Oracle-手工生成AWR的更多相关文章

  1. oracle手工生成AWR报告方法记录

    AWR(Automatic Workload Repository)报告是我们进行日常数据库性能评定.问题SQL发现的重要手段.熟练掌握AWR报告,是做好开发.运维DBA工作的重要基本功. AWR报告 ...

  2. oracle手工生成AWR报告方法

    AWR(Automatic Workload Repository)报告是我们进行日常数据库性能评定.问题SQL发现的重要手段.熟练掌握AWR报告,是做好开发.运维DBA工作的重要基本功. AWR报告 ...

  3. 手工生成AWR报告方法记录

    AWR(Automatic Workload Repository)报告是我们进行日常数据库性能评定.问题SQL发现的重要手段.熟练掌握AWR报告,是做好开发.运维DBA工作的重要基本功. AWR报告 ...

  4. Oracle 手工创建awr快照,获取报告

    Oracle 的自动化工具都是通过后台的进程调用相关的函数实现,而Oracle也允许用户通过包来手工调用这些函数,显然这样增加了工具的安全性,也提高了可操作性,使得DBA可以更灵活的使用这些函数来满足 ...

  5. oracle命令生成AWR报告

    --命令生成AWR报告oracle@linux:~> sqlplus / as sysdba SQL*Plus: Release 11.1.0.7.0 - Production on Fri A ...

  6. 【oracle】生成AWR报告

    [第一步]找到awrrpt.sql文件 [ora11g@vm-kvm11820-app ~]$ locate awrrpt.sql /DATA/opt/app/ora11g/product//rdbm ...

  7. Oracle手工生成段建议(Segment Advisor)

    一.描写叙述 从oracle 10g開始,oracle引入了段顾问(Segment Advisor),用于检查数据库中是否有与存储空间相关的建议,而且从10gR2開始,oracle自己主动调度并执行一 ...

  8. 【练习】手工生成awr报告

    ①首先进入$ORACLE_HOME/rdbms/admin目录 [oracle@host02 ~]$ cd $ORACLE_HOME/rdbms/admin 该目录下 [oracle@host02 a ...

  9. oracle rac自动生成awr

    cat awr.sql ######EXEC P_AWR_REPORT('201604251000', '201604251100', 'D_OUTPUT', '', FALSE); FALSE为ra ...

  10. ORACLE AWR概述及生成AWR报告

    1.Overview of the Automatic Workload Repository The Automatic Workload Repository (AWR) collects, pr ...

随机推荐

  1. P1550打井

    这是USACO2008年的一道最小生成树题,感谢dzj老师那天教的图论. 要引渠让每一个村庄都可以接到水,然后从某一个村庄到另一个村庄修剪水道要花费w元,并且还要打井(至少一个)(而输入数据也包括了在 ...

  2. Android尺寸适配问题

    1, 布局与组件大小用dp,文字大小用sp 2,

  3. Centos7 用gogs搭建git仓库

    0.安装步骤 先安装依赖,然后创建数据库,创建git用户,安装Gogs软件,设置启动,访问web界面进行配置 一.Gogs依赖环境 安装Gogs之前需要配置相应的依赖环境,官网介绍的依赖环境如下: 数 ...

  4. mysql元数据以及一些常用命令

    所谓mysql元数据就是一些初始的东西,例如数据库的列表,数据表列表,查询影响的行数等等,还有就是mysql的服务器的一些信息,例如版本信息等. select version(): 获取mysql服务 ...

  5. CentOS 设置 yum源

    什么是 yum Yum(全称 Yellow Dog Updater)是一个在 Fedora 和 RedHat 以及 CentOS 中的 Shell 前端软件包管理器.基于 RPM 包管理,能够从指定的 ...

  6. 传输层协议之TCP/UDP

    1.UDP UDP协议是面向无连接的,即不需要在正式传递数据前先链接双方,UDP协议只是数据报文的搬运工,不保证有序且不丢失的传递到对端,且UDP协议无任何控制流量的算法,UDP相对于TCP更加轻便. ...

  7. iOS蓝牙4.0开发

    文/starfox寒流(简书作者)原文链接:http://www.jianshu.com/p/974d165f78b5著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”. iOS 蓝牙4.0 ...

  8. 移动端布局基础viewport

    划重点 手机屏幕相对着桌面浏览器小,传统网页的设计在手机上体验糟糕 Apple 在移动版 Safari 中定义了 viewport meta 标签(如果没记错最早提出的话),用于创建一个虚拟窗口(la ...

  9. springboot与spring比较区别

    一.从一道面试题说起 面试的时候经常会被问到,spring和springboot的区别.或者SpringMVC和Springboot的区别.其实这样的问法就不是特别合适.因为spring.spring ...

  10. big.js常用方法

    官网api:http://mikemcl.github.io/big.js/ +:minus.minus(n) ⇒ Big  %:mod.mod(n) ⇒ Big -:plus.plus(n) ⇒ B ...