码迷,mamicode.com
首页 > 数据库 > 详细

Oracle查看每小时日志切换量脚本

时间:2017-11-11 11:44:15      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:.com   日志   rom   history   rip   first   很多   有意思   art   

--
-- Show the Number of Redo Log Switches Per Hour
--
 
SET PAUSE ON
SET PAUSE ‘Press Return to Continue‘
SET PAGESIZE 60
SET LINESIZE 300
 
SELECT to_char(first_time, ‘yyyy - mm - dd‘) aday,
           to_char(first_time, ‘hh24‘) hour,
           count(*) total
FROM   v$log_history
WHERE  thread#=&EnterThreadId
GROUP BY to_char(first_time, ‘yyyy - mm - dd‘),
              to_char(first_time, ‘hh24‘)
ORDER BY to_char(first_time, ‘yyyy - mm - dd‘),
              to_char(first_time, ‘hh24‘) asc
/



http://www.oracle-wiki.net/startsql
https://www.dba-scripts.com/
这里有很多有意思的脚本。

Oracle查看每小时日志切换量脚本

标签:.com   日志   rom   history   rip   first   很多   有意思   art   

原文地址:http://www.cnblogs.com/Clark-cloud-database/p/7818303.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!