[Oracle Script] check latch
select l.latch# latch,l.name, nvl(c.latches, 0) children, l.gets, l.misses, l.gets-l.misses "Simple Gets",
round((l.gets-l.misses) / l.gets,4)*100 "Simple Gets Ratio(%)",
l.spin_gets, round(l.spin_gets / l.gets,4)*100 "Spin Gets Ratio(%)",
l.sleeps "Sleep Get", round(l.sleeps / l.gets,4)*100 "Sleep Gets Ratio(%)",
l.immediate_gets,
l.immediate_misses,
to_char(sysdate, 'yyyy/mm/dd hh24:mi:ss') currTime
from v$latch l,
(SELECT latch#, count(*) latches
FROM v$latch_children c
GROUP BY latch#) c
where l.latch# = c.latch#(+)
AND l.gets > 0
ORDER BY latch;
round((l.gets-l.misses) / l.gets,4)*100 "Simple Gets Ratio(%)",
l.spin_gets, round(l.spin_gets / l.gets,4)*100 "Spin Gets Ratio(%)",
l.sleeps "Sleep Get", round(l.sleeps / l.gets,4)*100 "Sleep Gets Ratio(%)",
l.immediate_gets,
l.immediate_misses,
to_char(sysdate, 'yyyy/mm/dd hh24:mi:ss') currTime
from v$latch l,
(SELECT latch#, count(*) latches
FROM v$latch_children c
GROUP BY latch#) c
where l.latch# = c.latch#(+)
AND l.gets > 0
ORDER BY latch;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-2143142/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [Oracle Script] check userOracle
- [Oracle Script] latch holderOracle
- [Oracle Script] check active sessionOracleSession
- [Oracle Script] check lock infoOracle
- [Oracle Script] check Literal SQLOracleSQL
- [Oracle Script] check tablespace usage infoOracle
- [Oracle Script] check temp tablespace usageOracle
- [Oracle Script] check object count by userOracleObject
- [Oracle Script] check File I/OOracle
- check ftp success scriptFTP
- script of check repair ASM DISKGROUPAIASM
- Oracle Latch及latch衝突Oracle
- oracle scriptOracle
- Oracle Latch & LockOracle
- Oracle KSL Latch 管理層 與 Latch管理Oracle
- [Oracle Script] LockOracle
- Oracle Database ScriptOracleDatabase
- ORACLE LOCK,LATCH,PINOracle
- Oracle Latch 說明Oracle
- oracle latch優化Oracle優化
- oracle 11g latch之v$latch系列二Oracle
- oracle 11g latch之v$latch系列三Oracle
- ORACLE鎖存器(LATCH)Oracle
- [Oracle Script] Top sqlOracleSQL
- Oracle kill session scriptOracleSession
- ORACLE常用Script(轉)Oracle
- ORACLE常用Script (轉)Oracle
- Script to Check for Foreign Key Locking Issues [ID 1019527.6]
- Check the transaction running in oracleOracle
- Oracle中的redo copy latchOracle
- [Oracle Script] Log switch statusOracle
- [Oracle Script] Temporary Sort UsageOracle
- [Oracle Script] Rollback Segment UsageOracle
- ORACLE WITH CHECK OPTION子句詳解Oracle
- Systematic Latch Contention Troubleshooting in OracleOracle
- Oracle效能優化--Latch介紹Oracle優化
- 深入理解Oracle中的latchOracle
- oracle latch_自譯文_(1)Oracle