【练习】手工生成awr报告

①首先进入$ORACLE_HOME/rdbms/admin目录

[[email protected] ~]$ cd $ORACLE_HOME/rdbms/admin

该目录下

[[email protected] admin]$ ls -l awrrpt.sql
-rw-r--r-- 1 oracle oinstall 1999 Oct 24  2003 awrrpt.sql

以SYSDBA身份登录运行@awrrpt

SQL>  @awrrpt

Current Instance
~~~~~~~~~~~~~~~~

   DB Id    DB Name      Inst Num Instance
----------- ------------ -------- ------------
  241462155 ORA11GR2            1 ORA11GR2

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: 

Type Specified:  html

Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   DB Id     Inst Num DB Name      Instance     Host
------------ -------- ------------ ------------ ------------
* 241462155         1 ORA11GR2     ORA11GR2     host02

Using  241462155 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

Listing the last day‘s Completed Snapshots

                                                        Snap
Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
ORA11GR2     ORA11GR2            19 15 Oct 2016 18:37      1
                                 20 15 Oct 2016 19:00      1

Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 19
Begin Snapshot Id specified: 19

Enter value for end_snap: 20
End   Snapshot Id specified: 20

Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_19_20.html.  To use this name,
press <return> to continue, otherwise enter an alternative.

Enter value for report_name: 

Using the report name awrrpt_1_19_20.html
时间: 2024-07-30 03:25:47

【练习】手工生成awr报告的相关文章

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

AWR(Automatic Workload Repository)报告是我们进行日常数据库性能评定.问题SQL发现的重要手段.熟练掌握AWR报告,是做好开发.运维DBA工作的重要基本功. AWR报告的原理是基于Oracle数据库的定时镜像功能.默认情况下,Oracle数据库后台进程会以一定间隔(一小时)收集系统当前状态镜像,并且保存在数据库中.生成AWR报告时,只需要指定进行分析的时间段(开始镜像编号和结束镜像编号),就可以生成该时间段的性能分析情况.AWR镜像保存在数据库中的时间为一个月左右

手动生成AWR报告

有时候数据库中为安装EM,无法图形化生成AWR报告,此时需要手工生成AWR报告,ORACLE提供了以个sql,可以手工生成AWR报告,首先创建生成报告的目录,这里为/home/oracle/AWR $ mkdir AWR $ cd AWR $ pwd /home/oracle/AWR 进入sqlplus [[email protected] ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 30 

oracle生成AWR报告

原创作品,出自 "深蓝的blog" 博客,欢迎转载,转载时请务必注明以下出处,否则追究版权法律责任. 深蓝的blog:http://blog.csdn.net/huangyanlong/article/details/43971547 实验环境: 操作系统:win7 旗舰版 64bit 数据库:oracle 11G R2 64bit 第1步:登陆sqlplus C:\Users\Administrator>sqlplus / as sysdba 第2步:跑脚本 SQL> @

通过案例学调优之--AWR baseline对比生成AWR报告

通过案例学调优之--AWR Baseline对比生成AWR报告 一.建立Baseline 查看snapshot: 16:46:08 [email protected] prod >select SNAP_ID,BEGIN_INTERVAL_TIME from dba_hist_snapshot;    SNAP_ID BEGIN_INTERVAL_TIME ---------- -----------------------------------------------------------

ORACLE AWR概述及生成AWR报告

1.Overview of the Automatic Workload Repository The Automatic Workload Repository (AWR) collects, processes, and maintains performance statistics for problem detection and self-tuning purposes. This data is both in memory and stored in the database.

Oracle 每天自动生成AWR报告

经验丰富的老员工希望能够每天为数据库生成1个AWR报告,以便于后期分析数据库的性能变化,手动生成太麻烦,查了一下资料,发现可以自动生成,过程如下. 数据库环境:11gR2 RAC(双节点) AWR报告:由于是RAC数据库,希望生成每个节点的报告及全局报告,时间段为:第一天的0点~第二天的0点. (1)在oracle服务器上创建路径 server2$[/home/oracle]mkdir awrreport (2)创建directory并授权(使用sys账户执行) create or replac

Linux平台生成awr报告

1.使用oracle用户登录应用服务器所使用的数据库所在的服务器 # su –oracle 2.输入env命令,查询出ORACLE_HOME 目录 3.然后进入$ORACLE_HOME/rdbms/admin目录,查询awr语句(此步骤可以忽略) 此处可以直接省略2,3步骤,直接执行如下命令: cd $ORACLE_HOME/rdbms/admin 4.用SYSDBA身份登录sqlplus  /  as sysdba 5.在sqlplus中输入@awrrpt 6.开始按照提示操作,首先是选择要生

oracle11g生成awr报告

Oracle 11g RAC生成 AWR 报告方法  1.生成单实例 AWR 报告:@$ORACLE_HOME/rdbms/admin/awrrpt.sql 2.生成 Oracle RAC AWR 报告:@$ORACLE_HOME/rdbms/admin/awrgrpt.sql 3.生成 RAC 环境中特定数据库实例的 AWR 报告:@$ORACLE_HOME/rdbms/admin/awrrpti.sql 4.生成 Oracle RAC 环境中多个数据库实例的 AWR 报告的方法:@$ORAC

Oracle无法生成awr报告 ORA-20200错误

生成awr报告的过程中,发生awr报告没有快照,并返回ORA-20200错误. 查看dba_hist_active_session_history发现有数据,判断mmon和mmnl后台进程的问题,故需要重新启动mmon和mmnl后台进程 方法一: 重启数据库 方法二: 启用restricted模式,再立马禁用: alter system enable restricted session; alter system disable restricted session; alter日志 Stop