column h0 format 999
column h1 format 999
column h2 format 999
column h3 format 999
column h4 format 999
column h5 format 999
column h6 format 999
column h7 format 999
column h8 format 999
column h9 format 999
column h10 format 999
column h11 format 999
column h12 format 999
column h13 format 999
column h14 format 999
column h15 format 999
column h16 format 999
column h17 format 999
column h18 format 999
column h19 format 999
column h20 format 999
column h21 format 999
column h22 format 999
column h23 format 999
column avg format 999.99
column day format a6 SELECT TRUNC (first_time) "Date", TO_CHAR (first_time, 'Dy') "Day", COUNT (1) "Total",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) h0,
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h1",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h2",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h3",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h4",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h5",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h6",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h7",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h8",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h9",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h10",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h11",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h12",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h13",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h14",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h15",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h16",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h17",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h18",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h19",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h20",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h21",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h22",
SUM (DECODE (TO_CHAR (first_time, 'hh24'), '', 1, 0)) "h23", to_char(ROUND (COUNT (1) / 24, 2),'fm99999999990.00') "Avg"
FROM gv$log_history
WHERE first_time >= trunc(SYSDATE) - 30
and thread# = inst_id
GROUP BY TRUNC (first_time), TO_CHAR (first_time, 'Dy')
ORDER BY 1 DESC;

查看oracle日志文件切换频率的更多相关文章

  1. Linux下查看alert日志文件的两种方法

    --linux下查看alert日志文件的两种方法: --方法1: SQL> show parameter background_dump_dest; NAME TYPE VALUE ------ ...

  2. Oracle日志文件

    转载网站:Oracle技术圈 转载地址:https://www.oraclejsq.com/oraclegl/010300678.html Oracle日志文件 Oracle日志文件是Oracle数据 ...

  3. 如何查看Oracle日志

    Oracle日志查看 一.Oracle日志的路径: 登录:sqlplus "/as sysdba" 查看路径:SQL> select * from v$logfile; SQ ...

  4. Linux查看打日志文件

    1.如果文件比较小的话,使用vim直接查看,如果文件比较大的话,使用vim会直接卡主 2.如果想要查看正在滚动的日志文件.这个命令可以查看大文件. tail -f file Ctrl+c 终止tail ...

  5. 查询Oracle日志文件的方法

    Oracle日志文件相信经常使用Oracle数据库的朋友都比较熟悉了,下面将为您介绍的是查询Oracle日志文件的几种方法,供您参考学习. 1.查询系统使用的是哪一组日志文件: select * fr ...

  6. 【linux】linux上 查看tomcat日志文件

    1.查看实时日志文件 tail -f catalina.out 2.实时查看日志文件 最后n行 tail -n -f catalina.out 3.退出tail命令 ctrl + C 4.翻页查看 日 ...

  7. Oracle日志文件的管理与查看

    --Oracle日志文件管理与查看 select * from v$sql (#查看最近所作的操作) --select * fromv $sqlarea(#查看最近所作的操作) -- 1.查询系统使用 ...

  8. Oracle日志文件常用操作

    Oracle关于日志文件基本操作1.查询系统使用的是哪一组日志文件:select * from v$log; 2.查询正在使用的组所对应的日志文件:select * from v$logfile; 3 ...

  9. linux下查看mysql日志文件的方法

    查看mysql日志方法: mysql默认不允许我们查看日志.需要更改一些设置 1 vi 更改配置文件 允许用户查看日志文件 sudo vi /etc/mysql/mysql.conf.d/mysqld ...

随机推荐

  1. 使用Python客户端(redis-py)连接Redis--华为云DCS for Redis使用经验

    使用Python连接Redis,需要先安装Python以及redis-py,以CentOS为例,介绍redis-py的客户端环境搭建. 第0步:准备工作 华为云上购买1台弹性云服务器ECS(我选了Ce ...

  2. mysql 主从配置笔记

    1.master配置 server-id=1 log-bin=mysql-bin binlog-do-db=testdata binlog-ignore-db=mysql 2.master增加用户 g ...

  3. New Year and Domino:二维前缀和

    题目描述: They say "years are like dominoes, tumbling one after the other". But would a year f ...

  4. UVA 11922 Permutation Transformer(平衡二叉树)

    Description Write a program to transform the permutation 1, 2, 3,..., n according to m instructions. ...

  5. 2017-2018-2 20172314 『Java程序设计』课程 结对编程练习_四则运算

    相关过程截图 截图为我负责的部分关于计算的测试 关键代码解释 根据代码中的部分解释,这部分代码实现了结果的整数和分数的输出,如果算出的结果为一个真分数,就输出真分数的形式,如果结果为整数,就输出整数形 ...

  6. ZOJ 1457 E-Prime Ring Problem

    https://vjudge.net/contest/67836#problem/E A ring is compose of n circles as shown in diagram. Put n ...

  7. maven仓库中添加自定义的包jar包

    mvn install:install-file -DgroupId=impl -DartifactId=center -Dversion=1.0 -Dpackaging=jar -Dfile=D:\ ...

  8. Jenkins系列-Jenkins邮件通知

    一.安装邮件插件 由于Jenkins自带的邮件功能比较鸡肋,因此这里推荐安装专门的邮件插件,不过下面也会顺带介绍如何配置Jenkins自带的邮件功能作用. 可以通过系统管理→管理插件→可选插件,选择E ...

  9. 将sublime添加到右键菜单

    sublime text 添加到鼠标右键功能: 把以下内容复制并保存到文件,重命名为:sublime_addright.reg,然后双击就可以了. (注意:需要把下面代码中的Sublime的安装目录( ...

  10. oracle怎样查询索引的使用情况

    查询用户的索引select index_name,table_name,tablespace_name, index_type,uniqueness , status from dba_indexes ...