AWR生成步骤
来源:互联网 发布:php 输出时间格式 编辑:程序博客网 时间:2024/05/22 16:42
操作过Statspack的朋友都还记的,生成报告使用$ORACLE_HOME/rdbms/admin/spreport.sql脚本,到了AWR这片,操作步骤基本上相同,不过生成报告的脚本多了很多选择,包括:
- awrrpt.sql :生成指定快照区间的统计报表;
- awrrpti.sql :生成指定数据库实例,并且指定快照区间的统计报表;
- awrsqlrpt.sql :生成指定快照区间,指定SQL语句(实际指定的是该语句的SQLID)的统计报表;
- awrsqrpi.sql :生成指定数据库实例,指定快照区间的指定SQL语句的统计报表;
- awrddrpt.sql :指定两个不同的时间周期,生成这两个周期的统计对比报表;
- awrddrpi.sql :指定数据库实例,并指定两个的不同时间周期,生成这两个周期的统计对比报表;
报表的生成流程如下:
(1)进入命令行,切换到自己的工作目录:
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>d:
D:\>
说明:此处切换目录是为了设定生成报表文件的存放位置。
(2)使用sqlplus命令行工具登录连接数据库
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
D:\>sqlplus /nolog
SQL*Plus: Release 10.1.0.2.0 - Production on 星期四 5月 20 16:48:19 2010
Copyright (c) 1982, 2004, Oracle.
SQL> conn studydb/studydb@studydb
Connected.
SQL>
(3)运行生成报表SQL文件:@D:\oracle\product\10.1.0\Db_1\RDBMS\ADMIN\awrrpt.sql
SQL> @D:\oracle\product\10.1.0\Db_1\RDBMS\ADMIN\awrrpt.sql
Current Instance
~~~~~~~~~~~~~~~~
----------- ------------ -------- ------------
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:
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------ -------- ------------ ------------ ------------
* 2514848645
Using 2514848645 for database Id
Using
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.
specifying a number lists all completed snapshots.
Listing the last 3 days of Completed Snapshots
Instance
------------ ------------ --------- ------------------ -----
studydb
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 279
Begin Snapshot Id specified: 279
Enter value for end_snap: 281
End
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_279_281.html.
press <return> to continue, otherwise enter an alternative.
Enter value for report_name:
.........................//生成过程省略
End of Report
</BODY></HTML>
Report written to awrrpt_1_279_281.html
SQL>
(4)报表生成完成
- AWR生成步骤
- 手动生成AWR报告步骤
- AWR报告生成步骤详解
- awr使用——生成awr报告步骤
- Oracle 10G AWR报告生成步骤
- Oracle10g下生成AWR性能报告步骤
- linux下oracle生成awr报告步骤
- oracle的awr生成报告步骤
- oracle数据库 生成awr报告、ash报告详细步骤
- oracle 10g awr报告生成步骤及awr报告分析
- 生成AWR性能报告!
- 批量生成awr报告
- 如何生成awr报告
- 手工生成awr报告
- 快速生成AWR报告
- Oracle AWR报告生成
- awr 报告生成方法
- AWR报告的生成
- 今天天气好晴朗
- 15.5 匿名内部类
- JAVA调用vbScript脚本取得计算机信息小例子
- json后台向前台传数据
- etc文件夹下面有什么
- AWR生成步骤
- VS2013 ultimate 系统中不到指定文件
- API hook
- PHP在linux上执行外部命令(整理)
- 另外:BAPI的操作都要用BAPI_TRANSACTION_COMMIT来提交
- “ora-12541:TNS:无监听程序”问题的解决
- 几款常用物理引擎比较
- Java访问磁盘文件
- 关系数据库知识点