script:查看redo产生的历史信息

SQL> alter session set nls_date_format='dd-mon-yy';
SQL>  set lines 160 pages 1000 echo off feedback off
SQL>  col stat_name for a25
SQL>  col date_time for a40
SQL>  col BEGIN_INTERVAL_TIME for a20
SQL>  col END_INTERVAL_TIME for a20
SQL>  prompt "Enter the date in DD-Mon-YY Format and Stats you want to trend like 'redo size','physical reads','physical writes','session logical reads' etc."
"Enter the date in DD-Mon-YY Format and Stats you want to trend like 'redo size','physical reads','physical writes','session logical reads' etc."
SQL>
SQL>  WITH sysstat AS
  2   (select sn.begin_interval_time begin_interval_time,
  3            sn.end_interval_time end_interval_time,
  4            ss.stat_name stat_name,
  5            ss.value e_value,
  6            lag(ss.value, 1) over(order by ss.snap_id) b_value
  7       from dba_hist_sysstat ss, dba_hist_snapshot sn
  8      where trunc(sn.begin_interval_time) > sysdate-10
  9        and ss.snap_id = sn.snap_id
 10        and ss.dbid = sn.dbid
 11        and ss.instance_number = sn.instance_number
 12        and ss.dbid = (select dbid from v$database)
 13        and ss.instance_number = 1
 14        and ss.stat_name = 'redo size')
 15   select to_char(BEGIN_INTERVAL_TIME, 'mm/dd/yy_hh24_mi') || to_char(END_INTERVAL_TIME, '_hh24_mi') date_time,
 16   stat_name,
 17   round((e_value - nvl(b_value,0)) / (extract(day from(end_interval_time - begin_interval_time)) * 24 * 60 * 60
 18   + extract(hour from(end_interval_time - begin_interval_time)) * 60 * 60
 19   + extract(minute from(end_interval_time - begin_interval_time)) * 60 + extract(second from(end_interval_time - begin_interval_time))),0) per_sec
 20   from sysstat where(e_value - nvl(b_value,0)) > 0 and nvl(b_value,0) > 0
 21  /

DATE_TIME                                STAT_NAME                    PER_SEC
---------------------------------------- ------------------------- ----------
08/28/13_09_00_10_00                     redo size                        473
08/28/13_10_00_11_00                     redo size                        422
08/28/13_11_00_12_00                     redo size                        426
08/28/13_12_00_13_00                     redo size                        474
08/28/13_13_00_14_00                     redo size                        513
08/28/13_14_00_15_00                     redo size                        529
08/28/13_15_00_16_00                     redo size                        544
08/28/13_16_00_17_00                     redo size                        416
08/28/13_17_00_18_00                     redo size                        408
08/28/13_18_00_19_00                     redo size                        423
08/28/13_19_00_20_00                     redo size                        428
08/28/13_20_00_21_00                     redo size                        448
08/28/13_21_00_22_00                     redo size                        501
08/28/13_22_00_23_00                     redo size                        456
08/28/13_23_00_00_00                     redo size                        478
08/29/13_00_00_01_00                     redo size                        454
08/29/13_01_00_02_00                     redo size                        480
08/29/13_02_00_03_00                     redo size                        538
08/29/13_03_00_04_00                     redo size                        489
08/29/13_04_00_05_00                     redo size                        512
08/29/13_05_00_06_00                     redo size                        541
08/29/13_06_00_07_00                     redo size                        526
08/29/13_07_00_08_00                     redo size                        559
08/29/13_08_00_09_00                     redo size                      15168
08/29/13_09_00_10_00                     redo size                        573
08/29/13_10_00_11_00                     redo size                        434
08/29/13_11_00_12_00                     redo size                        441
08/29/13_12_00_13_00                     redo size                        435
08/29/13_13_00_14_00                     redo size                        443
08/29/13_14_00_15_00                     redo size                        430
08/29/13_15_00_16_00                     redo size                        448
08/29/13_16_00_17_00                     redo size                        431
08/29/13_17_00_18_00                     redo size                        413
08/29/13_18_00_19_00                     redo size                        428
08/29/13_19_00_20_00                     redo size                        506
08/29/13_20_00_21_00                     redo size                        460
08/29/13_21_00_22_00                     redo size                        506
08/29/13_22_00_23_00                     redo size                      10098
08/29/13_23_00_00_00                     redo size                        588
08/30/13_00_00_01_00                     redo size                        453
08/30/13_01_00_02_00                     redo size                        562
08/30/13_02_00_03_00                     redo size                        549
08/30/13_03_00_04_00                     redo size                        476
08/30/13_04_00_05_00                     redo size                        471
08/30/13_05_00_06_00                     redo size                        512
08/30/13_06_00_07_00                     redo size                        548
08/30/13_07_00_08_00                     redo size                        585
08/30/13_08_00_09_00                     redo size                      15752
08/30/13_09_00_10_00                     redo size                        541
08/30/13_10_00_11_00                     redo size                        457
08/30/13_11_00_12_00                     redo size                        443
08/30/13_12_00_13_00                     redo size                        456
08/30/13_13_00_14_00                     redo size                        473
08/30/13_14_00_15_00                     redo size                        503
08/30/13_15_00_16_00                     redo size                        460
08/30/13_16_00_17_00                     redo size                        491
08/30/13_17_00_18_00                     redo size                        592
08/30/13_18_00_19_00                     redo size                        536
08/30/13_19_00_20_00                     redo size                        533
08/30/13_20_00_21_00                     redo size                        551
08/30/13_21_00_22_00                     redo size                        869
08/30/13_22_00_23_00                     redo size                       9895
08/30/13_23_00_00_00                     redo size                        543
08/31/13_00_00_01_00                     redo size                        432
08/31/13_01_00_02_00                     redo size                        460
08/31/13_02_00_03_00                     redo size                        445
08/31/13_03_00_04_00                     redo size                        444
08/31/13_04_00_05_00                     redo size                        509
08/31/13_05_00_06_00                     redo size                        520
08/31/13_06_00_07_00                     redo size                        566
08/31/13_07_00_08_00                     redo size                        508
08/31/13_08_00_09_00                     redo size                      14947
08/31/13_09_00_10_00                     redo size                        449
08/31/13_10_00_11_00                     redo size                       6322
08/31/13_11_00_12_00                     redo size                        444
08/31/13_12_00_13_00                     redo size                        463
08/31/13_13_00_14_00                     redo size                        478
08/31/13_14_00_15_00                     redo size                       1019
08/31/13_15_00_16_00                     redo size                        461
08/31/13_16_00_17_00                     redo size                        481
08/31/13_17_00_18_00                     redo size                        440
08/31/13_18_00_19_00                     redo size                       1851
08/31/13_19_00_20_00                     redo size                        562
08/31/13_20_00_21_00                     redo size                        442
08/31/13_21_00_22_00                     redo size                        423
08/31/13_22_00_23_00                     redo size                       3649
08/31/13_23_00_00_00                     redo size                        573
09/01/13_00_00_01_00                     redo size                        500
09/01/13_01_00_02_00                     redo size                        462
09/01/13_02_00_03_00                     redo size                        447
09/01/13_03_00_04_00                     redo size                        464
09/01/13_04_00_05_00                     redo size                        473
09/01/13_05_00_06_00                     redo size                       1058
09/01/13_06_00_07_00                     redo size                       1929
09/01/13_07_00_08_00                     redo size                        470
09/01/13_08_00_09_00                     redo size                      15616
09/01/13_09_00_10_00                     redo size                        496
09/01/13_10_00_11_00                     redo size                        524
09/01/13_11_00_12_00                     redo size                        576
09/01/13_12_00_13_00                     redo size                        517
09/01/13_13_00_14_00                     redo size                        533
09/01/13_14_00_15_00                     redo size                        516
09/01/13_15_00_16_00                     redo size                        436
09/01/13_16_00_17_00                     redo size                        518
09/01/13_17_00_18_00                     redo size                        450
09/01/13_18_00_19_00                     redo size                        476
09/01/13_19_00_20_00                     redo size                        473
09/01/13_20_00_21_00                     redo size                        510
09/01/13_21_00_22_00                     redo size                        469
09/01/13_22_00_23_00                     redo size                        465
09/01/13_23_00_00_00                     redo size                        548
09/02/13_00_00_01_00                     redo size                        531
09/02/13_01_00_02_00                     redo size                        564
09/02/13_02_00_03_00                     redo size                        538
09/02/13_03_00_04_00                     redo size                        398
09/02/13_04_00_05_00                     redo size                        532
09/02/13_05_00_06_00                     redo size                        564
09/02/13_06_00_07_00                     redo size                        458
09/02/13_07_00_08_00                     redo size                        457
09/02/13_08_00_09_00                     redo size                      15899
09/02/13_09_00_10_00                     redo size                        507
09/02/13_10_00_11_00                     redo size                        427
09/02/13_11_00_12_00                     redo size                        428
09/02/13_12_00_13_00                     redo size                        541
09/02/13_13_00_14_00                     redo size                        540
09/02/13_14_00_15_00                     redo size                        515
09/02/13_15_00_16_00                     redo size                        499
09/02/13_16_00_17_00                     redo size                        526
09/02/13_17_00_18_00                     redo size                        571
09/02/13_18_00_19_00                     redo size                        542
09/02/13_19_00_20_00                     redo size                        492
09/02/13_20_00_21_00                     redo size                        449
09/02/13_21_00_22_00                     redo size                        678
09/02/13_22_00_23_00                     redo size                       9696
09/02/13_23_00_00_00                     redo size                        476
09/03/13_00_00_01_00                     redo size                        464
09/03/13_01_00_02_00                     redo size                        493
09/03/13_02_00_03_00                     redo size                        565
09/03/13_03_00_04_00                     redo size                        595
09/03/13_04_00_05_00                     redo size                        510
09/03/13_05_00_06_00                     redo size                        581
09/03/13_06_00_07_00                     redo size                        550
09/03/13_07_00_08_00                     redo size                        559
09/03/13_08_00_09_00                     redo size                      16381
09/03/13_09_00_10_00                     redo size                        487
09/03/13_10_00_11_00                     redo size                        425
09/03/13_11_00_12_00                     redo size                        443
09/03/13_12_00_13_00                     redo size                        458
09/03/13_13_00_14_00                     redo size                        530
09/03/13_14_00_15_00                     redo size                        574
09/03/13_15_00_16_00                     redo size                        478
09/03/13_16_00_17_00                     redo size                        550
09/03/13_17_00_18_00                     redo size                        588
09/03/13_18_00_19_00                     redo size                        593
09/03/13_19_00_20_00                     redo size                        567
09/03/13_20_00_21_00                     redo size                        473
09/03/13_21_00_22_00                     redo size                        457
09/03/13_22_00_23_00                     redo size                        520
09/03/13_23_00_00_00                     redo size                        516
09/04/13_00_00_01_00                     redo size                        493
09/04/13_01_00_02_00                     redo size                        484
09/04/13_02_00_03_00                     redo size                        581
09/04/13_03_00_04_00                     redo size                        570
09/04/13_04_00_05_00                     redo size                        529
09/04/13_05_00_06_00                     redo size                        562
09/04/13_06_00_07_00                     redo size                        566
09/04/13_07_00_08_00                     redo size                        529
09/04/13_08_00_09_00                     redo size                      15998
09/04/13_09_00_10_00                     redo size                        549
09/04/13_10_00_11_00                     redo size                        548
09/04/13_11_00_12_00                     redo size                        497
09/04/13_12_00_13_00                     redo size                        587
09/04/13_13_00_14_00                     redo size                        436
09/04/13_15_00_16_00                     redo size                        584
09/04/13_16_00_17_00                     redo size                        461
09/04/13_17_00_18_00                     redo size                        512
09/04/13_18_00_19_00                     redo size                        406
09/04/13_19_00_20_00                     redo size                        383
09/04/13_20_00_21_00                     redo size                        396
09/04/13_21_00_22_00                     redo size                       1057
09/04/13_22_00_23_00                     redo size                       9559
09/04/13_23_00_00_00                     redo size                        485
09/05/13_00_00_01_00                     redo size                        434
09/05/13_01_00_02_00                     redo size                        419
09/05/13_02_00_03_00                     redo size                        429
09/05/13_03_00_04_00                     redo size                        392
09/05/13_04_00_05_00                     redo size                        442
09/05/13_05_00_06_00                     redo size                        498
09/05/13_06_00_07_00                     redo size                        501
09/05/13_07_00_08_00                     redo size                        439
09/05/13_08_00_09_00                     redo size                      16155
09/05/13_09_00_10_00                     redo size                        593
09/05/13_10_00_11_00                     redo size                        494
09/05/13_12_00_13_00                     redo size                        562
09/05/13_13_00_14_00                     redo size                        512
09/05/13_15_00_16_00                     redo size                        443
09/05/13_16_00_17_00                     redo size                        408
09/05/13_17_00_18_00                     redo size                        405
09/05/13_18_00_19_00                     redo size                        383
09/05/13_19_00_20_00                     redo size                        404
09/05/13_20_00_21_00                     redo size                        412
09/05/13_21_00_22_00                     redo size                        581
09/05/13_22_00_23_00                     redo size                      10250
09/05/13_23_00_00_00                     redo size                        537
09/06/13_00_00_01_00                     redo size                        414
09/06/13_01_00_02_00                     redo size                        419
09/06/13_02_00_03_00                     redo size                        409
09/06/13_03_00_04_00                     redo size                        409
09/06/13_04_00_05_00                     redo size                        417
09/06/13_05_00_06_00                     redo size                        473
09/06/13_06_00_07_00                     redo size                        499
09/06/13_07_00_08_00                     redo size                        451
09/06/13_08_00_09_00                     redo size                        392
09/06/13_09_00_10_00                     redo size                        434
09/06/13_10_00_11_00                     redo size                        432
09/06/13_11_00_12_00                     redo size                        483
09/06/13_12_00_13_00                     redo size                        389
09/06/13_13_00_14_00                     redo size                        445
09/06/13_14_00_15_00                     redo size                        481

script:查看redo产生的历史信息的更多相关文章

  1. 查看Oracle的redo日志切换频率

    1.Oracle log 每次切换会记录到告警日志中 设想写个方案来查看log切换频率来判断Oracle log是否应该更改大小. 2.sql a.查看redo日志信息 select * from v ...

  2. bbed的使用--查看数据文件信息 & sid信息

    1.得到文件的块大小和数据块个数 在Linux和Unix上,oracle提供了一个小工具dbfsize用于查看文件块大小 (可以参看[ID:360032.1]How to detect and fix ...

  3. Oracle 11g的Redo Log和Archive Log的分析方法

    自Oracle 11g起,无需设置UTL_FILE_DIR就可以使用LOGMNR对本地数据库的日志进行分析,以下是使用LOGMNR的DICT_FROM_ONLINE_CATALOG分析REDO和归档日 ...

  4. 查看某个html标签有哪些属性和事件

    <html><head><script> //查看input标签有哪些属性和事件 function a() { var str = new String(" ...

  5. redo buffer大小

    转载自http://blog.csdn.net/robinson1988/article/details/4729858 log buffer 是SGA中一块循环使用的内存区域,它一般很小,因为有4个 ...

  6. 添加redo日志组和添加日志组多元化

    查看redo日志组的状态和日志的位置. SQL> 没有被使用,所以切几次日志,组合4已生效. SQL> select * from v$log; GROUP#   THREAD#  SEQ ...

  7. 【恢复】 Redo文件丢失的恢复

    第一章 Redo文件丢失的恢复 1.1  online redolog file 丢失 联机Redo日志是Oracle数据库中比较核心的文件,当Redo日志文件异常之后,数据库就无法正常启动,而且有丢 ...

  8. 第13章 学习shell script

    由于博客园中dollar符号有别的意义,所以文中的dollar符号使用¥表示 第一个script [root@localhost script]# cat -n sh01.sh #!/bin/bash ...

  9. dataguard 下主备 online redo 与 standby redo log resize 重建

    环境说明: 本实验环境是一个节点的rac + 单节点 asm dg     database 与 grid 版本是 11.2.0.4 .提别提醒 如果是多节点集群,操作时需要特别注意 thread . ...

随机推荐

  1. Coursera Machine Learning 学习笔记(十二)

    - Normal equation 到眼下为止,线性回归问题中都在使用梯度下降算法,但对于某些线性回归问题,正规方程方法是更好的解决方式. 正规方程就是通过求解例如以下方程来解析的找出使得代价函数最小 ...

  2. Android中文API(129) —— AudioManager

    前言 本章内容是android.media.AudioManager,版本为Android 3.2 r1,翻译来自"文炜",欢迎访问他的博客:"http://www.cn ...

  3. C++常变量

    在定义变量时,如果加上关键字const,则变量的值在程序运行期间不能改变,这种变量称为常变量(constant variable).例如:    const int a=3;  //用const来声明 ...

  4. C++变量(C++变量定义、变量赋值、命名规则)

    其实在前面的例子中已经多次用到了变量.在程序运行期间其值可以改变的量称为变量.一个变量应该有一个名字,并在内存中占据一定的存储单元,在该存储单元中存放变量的值.请注意区分变量名和变量值这两个不同的概念 ...

  5. DP之花店橱窗布置

    题目:https://www.smartoj.com/p/1286 分析:花瓶是有序的,花也是有序的,这就保证了有序性,从而满足子解的全局最优,和无后效性.假设dp[i][j]表示前i 朵花,放在前j ...

  6. 我的Python成长之路---第二天---Python基础(8)---2016年1月9日(晴)

    数据类型之字典 一.字典简介 字典dict(dictionary),在其他语言中也成为map,使用键-值(key-value)的形式存储和展现,具有极快的查找速度. 字典的定义 d = {'key': ...

  7. AlphaMobileControls介绍

    大家在开发wince程序或者windows mobile程序时还在为丑陋的界面着急吗?AlphaMobileControls可以帮你解决这些方案.当然如果你是高手可以自己去实现一些特殊的功能,自己定义 ...

  8. Spring MVC视图层:thymeleaf vs. JSP

    本文对比了同一Spring MVC工程中相同页面(一个订阅表单)分别采用Thymeleaf和JSP(包括JSP.JSTL.Spring tag lib)两种方式的实现. 本文的所有代码来自一个可运行的 ...

  9. 修改VISUAL STUDIO EXPRESS 2012新建C++文件编码

    本站文章除注明转载外,均为本站原创或者翻译. 本站文章欢迎各种形式的转载,但请18岁以上的转载者注明文章出处,尊重我的劳动,也尊重你的智商: 本站部分原创和翻译文章提供markdown格式源码,欢迎使 ...

  10. java web从零单排第二十一期《Hibernate》主键的生成方式,用户增加与显示用户列表

    1.新建register.jsp <%@ page language="java" import="java.util.*" pageEncoding=& ...