Query the duration of log switch
Here is a query that will show you the time between log switches. It can be handy in determining if you have a problem:
select b.recid,
to_char(b.first_time,'dd-mon-yy hh:mi:ss') start_time, a.recid,
to_char(a.first_time,'dd-mon-yy hh:mi:ss') end_time,
round(((a.first_time-b.first_time)*25)*60,2) minutes
from v$log_history a, v$log_history b
where a.recid = b.recid+1
order by a.first_time asc
/
select b.recid,
to_char(b.first_time,'dd-mon-yy hh:mi:ss') start_time, a.recid,
to_char(a.first_time,'dd-mon-yy hh:mi:ss') end_time,
round(((a.first_time-b.first_time)*25)*60,2) minutes
from v$log_history a, v$log_history b
where a.recid = b.recid+1
order by a.first_time asc
/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12361284/viewspace-594422/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql 配置 General Query Log和# Slow Query LogMySql
- ORA-01555 caused by SQL statement below (Query Duration=0 sec, SCNSQL
- log file switch
- Mysql general query logMySql
- [Oracle Script] Log switch statusOracle
- redo_log_switch_date
- LOG FILE SWITCH等待事件事件
- MySQL8.0:The General Query LogMySql
- Archive Log模式下Redo Log、Check Point和Switch LogHive模式
- alter system archive log current / all / switch logfileHive
- switch logfile command 等待事件事件
- log file switch相關等待事件事件
- alter system archive log current和alter system switch logfileHive
- ntpdate會導致mysql slow query log出現很大的query timeMySql
- 利用tcpdump簡易抓取MySQL Query LogTCPMySql
- 關於log file switch and checkpoint機制
- log file switch (checkpoint incomplete)等待事件事件
- Log Switch Triggers 及Force SCN
- Switch log 掛起的小問題
- 【等待事件】log file switch (checkpoint incomplete)事件
- alter system switch log file 與 archive log current/all 區別Hive
- ALTER SYSTEM SWITCH LOGFILE ALTER SYSTEM ARCHIVELOG CURRENT 區別Hive
- MySQL Slow Query log(慢查詢日誌)MySql
- [20180228]archivelog backup?log switch?Hive
- CSS3 animation-durationCSSS3
- CSS3 transition-durationCSSS3
- alter system switch logfile和alter system archive log current的區別Hive
- alter system switch logfile 和 alter system archive log current 的區別Hive
- [轉]alter system switch logfile和alter system archive log current的區別Hive
- zt:alter system switch logfile與ALTER SYSTEM ARCHIVE LOG CURRENT的區別Hive
- alter system switch logfile hang住的一種可能
- alter system switch logfile的執行時間是多久。
- alter system switch logfile手工日誌切換小記
- 解析MYSQL BINLOG 二進位制格式(3)--QUERY_EVENTMySql
- Seinfeld Netflix Episode, Title, Duration, Synopsis
- 【DBA】log file switch (checkpoint incomplete) - 容易被誤診的event
- 20160111-log switch 統計SQLSQL
- alter database archivelog manual__導致oracle10g switch logfile不自動歸檔DatabaseHiveOracle