AWR-比较两个阶段性能
实际环境中,需要比较两个不同时间点的性能,故生产两个时间点的ARW并做些比较!
示例:产生整个数据库的AWR报告。本例中,Oracle的主目录是
S:\app\Administrator\product\11.2.0\dbhome_1
运行脚本awrrpt.sql。
SQL> @?/rdbms/admin/awrddrpt.sql
Current Instance
~~~~~~~~~~~~~~~~
DB Id DB Id DB Name Inst Num Inst Num Instance
----------- ----------- ------------ -------- -------- ------------
1337234614 1337234614 ORCL 1 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'
输入 report_type 的值: html
Type Specified: html
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ -------- ------------ ------------ ------------
* 1337234614 1 ORCL orcl JINRI185
Database Id and Instance Number for the First Pair of Snapshots
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using 1337234614 for Database Id for the first pair of snapshots
Using 1 for Instance Number for the first pair of snapshots
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.
输入 num_days 的值: 2
Listing the last 2 days of Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
orcl ORCL 1136 24 4月 2013 00:00 1
1137 24 4月 2013 01:00 1
1138 24 4月 2013 02:00 1
1139 24 4月 2013 03:00 1
1140 24 4月 2013 04:00 1
1141 24 4月 2013 05:00 1
1142 24 4月 2013 06:00 1
1143 24 4月 2013 07:00 1
1144 24 4月 2013 08:00 1
1145 24 4月 2013 09:00 1
1146 24 4月 2013 10:00 1
1147 24 4月 2013 11:00 1
1148 24 4月 2013 12:00 1
1149 24 4月 2013 13:00 1
1150 24 4月 2013 14:00 1
1151 24 4月 2013 15:00 1
1152 24 4月 2013 16:00 1
1153 24 4月 2013 17:00 1
1154 24 4月 2013 18:00 1
1155 24 4月 2013 19:00 1
1156 24 4月 2013 20:00 1
1157 24 4月 2013 21:00 1
1158 24 4月 2013 22:00 1
1159 24 4月 2013 23:00 1
1160 25 4月 2013 00:00 1
1161 25 4月 2013 01:00 1
1162 25 4月 2013 02:00 1
1163 25 4月 2013 03:00 1
1164 25 4月 2013 04:00 1
1165 25 4月 2013 05:00 1
1166 25 4月 2013 06:00 1
1167 25 4月 2013 07:00 1
1168 25 4月 2013 08:00 1
1169 25 4月 2013 09:00 1
1170 25 4月 2013 10:00 1
1171 25 4月 2013 11:00 1
1172 25 4月 2013 12:00 1
1173 25 4月 2013 13:00 1
1174 25 4月 2013 14:00 1
1175 25 4月 2013 15:00 1
Specify the First Pair of Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
输入 begin_snap 的值: 1144
First Begin Snapshot Id specified: 1144
输入 end_snap 的值: 1145
First End Snapshot Id specified: 1145
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ -------- ------------ ------------ ------------
* 1337234614 1 ORCL orcl JINRI185
Database Id and Instance Number for the Second Pair of Snapshots
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using 1337234614 for Database Id for the second pair of snapshots
Using 1 for Instance Number for the second pair of snapshots
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.
输入 num_days2 的值: 2
Listing the last 2 days of Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
orcl ORCL 1136 24 4月 2013 00:00 1
1137 24 4月 2013 01:00 1
1138 24 4月 2013 02:00 1
1139 24 4月 2013 03:00 1
1140 24 4月 2013 04:00 1
1141 24 4月 2013 05:00 1
1142 24 4月 2013 06:00 1
1143 24 4月 2013 07:00 1
1144 24 4月 2013 08:00 1
1145 24 4月 2013 09:00 1
1146 24 4月 2013 10:00 1
1147 24 4月 2013 11:00 1
1148 24 4月 2013 12:00 1
1149 24 4月 2013 13:00 1
1150 24 4月 2013 14:00 1
1151 24 4月 2013 15:00 1
1152 24 4月 2013 16:00 1
1153 24 4月 2013 17:00 1
1154 24 4月 2013 18:00 1
1155 24 4月 2013 19:00 1
1156 24 4月 2013 20:00 1
1157 24 4月 2013 21:00 1
1158 24 4月 2013 22:00 1
1159 24 4月 2013 23:00 1
1160 25 4月 2013 00:00 1
1161 25 4月 2013 01:00 1
1162 25 4月 2013 02:00 1
1163 25 4月 2013 03:00 1
1164 25 4月 2013 04:00 1
1165 25 4月 2013 05:00 1
1166 25 4月 2013 06:00 1
1167 25 4月 2013 07:00 1
1168 25 4月 2013 08:00 1
1169 25 4月 2013 09:00 1
1170 25 4月 2013 10:00 1
1171 25 4月 2013 11:00 1
1172 25 4月 2013 12:00 1
1173 25 4月 2013 13:00 1
1174 25 4月 2013 14:00 1
1175 25 4月 2013 15:00 1
Specify the Second Pair of Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
输入 begin_snap2 的值: 1168
Second Begin Snapshot Id specified: 1168
输入 end_snap2 的值: 1169
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrdiff_1_1144_1_1168.html To use this name,
press <return> to continue, otherwise enter an alternative.
输入 report_name 的值: s:\testocp.html
Using the report name s:\testocp.html
去路径s:\testocp.html查看报表即可.
指定报告的名字。
输入 report_name 的值: s:/ocpyang.html
//******** 常见错误
注意:输入报告名后回车出现 ORA-00904:: invalid identified value
解决办法:用sys用户来执行或者对用户进行授权 grant all on dbms_workload_repository to perfstat;
**********//
@?/rdbms/admin/
转载于:https://blog.51cto.com/ocpyang/1194458
AWR-比较两个阶段性能相关推荐
- 关于添加SATA驱动的回复(XP安装时分两个阶段)
这篇旧文是当初无忧启动论坛还在全盛时期,为回答一位网友的疑问而写的回复. 因为只是回复所以当初也就没定标题,没想到后来被许多人转载,可能是第一个转载的人,取了文章的名字叫做"XP安装时分两个 ...
- XP安装时分两个阶段
添加驱动需要的是细心,稍有疏忽,所有心血都白费. 你已经明白了XP安装时分两个阶段:Text Mode Setup和GUI Mode Setup Text Mode Setup前,由引导程序$ldr$ ...
- oracle数据库性能awr,常见问题:如何使用AWR报告来诊断数据库性能问题
常见问题:如何使用AWR报告来诊断数据库性能问题 (Doc ID 1523048.1) Last updated on FEBRUARY 03, 2019 适用于: Oracle Database - ...
- PIX的精彩 --- IKE的两个阶段
转:PIX的精彩 --- IKE的两个阶段 2008-05-05 14:24 ESP.AH用来对IP报文进行加/解密.验证以达到保护IP报文的目的,而IKE则是通信双方用来协商加/解密算法及其密钥.密 ...
- 院士:人一生有两个阶段最能逼出成果,一是拿博士学位,二是评正教授
点击上方,选择星标或置顶,不定期资源大放送! 阅读大概需要15分钟 Follow小博主,每天更新前沿干货 来源:算法与数学之美 虽然这是一位大学校长在全校研究生教育工作会上的"内部讲话&qu ...
- 网络传输中的两个阶段、阻塞IO、非阻塞IO和多路复用
今天学习了网络传输中的两个阶段.阻塞IO.非阻塞IO和多路复用 一.网络传输中的两个阶段 分别是 waitdata 和 copydata send就是copydata recv是waitdata和co ...
- ML之SVM:利用SVM算法对手写数字图片识别数据集(PCA降维处理)进行预测并评估模型(两种算法)性能
ML之SVM:利用SVM算法对手写数字图片识别数据集(PCA降维处理)进行预测并评估模型(两种算法)性能 目录 输出结果 设计思路 核心代码 输出结果 设计思路 核心代码 estimator = PC ...
- 动态修改dom node的两种方法性能比较
Created by Jerry Wang, last modified on Sep 25, 2014 测试代码: <html> <script src="C:\User ...
- IPSEC ***两个阶段的协商过程
IPSEC ×××两个阶段的协商过程 第一阶段 有主模式和积极模式2种 注意!!!只有remote ***和Easy ***是积极模式的,其他都是用主模式来协商的 让IKE对等体彼此验证对方并确定会话 ...
- 【PyTorch】eval() ==>主要是针对某些在train和predict两个阶段会有不同参数的层,比如Dropout层和BN层
model的eval方法主要是针对某些在train和predict两个阶段会有不同参数的层.比如Dropout层和BN层 torch为了方便大家,设计这个eval方法就是让我们可以不用手动去针对这些层 ...
最新文章
- vm虚拟机下linux安装python_VM中安装linux系统,安装VS Code,搭建Python环境
- 记录安装oracle的那些事(二)之双系统安装
- Redis缓存 ava-Jedis操作Redis,基本操作以及 实现对象保存
- JS 之 数据类型转换
- python 依据某几列累加求和_Python爬虫笔记:爬取单个页面
- javascript --- [读书笔记] 回流与重绘 前端优化小结
- 异步生成器_使用生成器实现异步并等待
- 基于 C++ POCO 库封装的异步多线程的 CHttpClient 类
- 隔离见证_云见证–一种使我们的生活更轻松的新功能
- Android SEAndroid
- JAVA语言基础——类型转换
- SCVMM2012 SP1 之添加非受信任Hyper-V
- Matlab-CSMA_CA,pure ALOHA,时隙ALOHA协议性能对比分析仿真
- 库克说他在上大学时学会了编程,你呢?
- 从期刊层面看科研!计算机顶级期刊大盘点(上)
- 再来学习一下“八荣八耻”
- UE4(虚幻4)中蓝图的使用
- 5、唯一约束(UNIQUE KEY)
- win10系统保存文件到桌面需要刷新才显示解决办法
- ltspice语言中文_ltspice中文教程