Troubleshooting Database Contention With V$Wait_Chains (Doc ID 1428210.1)
http://blog.tanelpoder.com/2013/09/11/advanced-oracle-troubleshooting-guide-part-11-complex-wait-chain-signature-analysis-with-ash_wait_chains-sql/
http://blog.dbi-services.com/oracle-is-hanging-dont-forget-hanganalyze-and-systemstate/
troubleshooting SYS:(GTXn) DFS lock handle
ASH wait chain saves the day again! ;) http://goo.gl/7QCSyW @TanelPoder XA config issue.. rdbms ipc reply -> SYS:(GTXn) DFS lock handlehttps://twitter.com/karlarao/status/477168595223326721
@<the script> username||':'||program2||event2 session_type='FOREGROUND' "TIMESTAMP'2014-11-19 17:00:00'""TIMESTAMP'2014-11-19 18:00:00'"
troubleshooting buffer pins were preempted by RM (concurrency + CPU starvation)
I've experienced a scenario where buffer pins were preempted by RM (concurrency + CPU starvation), see more details here http://bit.ly/1xuqbfM or this evernote link if the bitly URL doesn't work https://www.evernote.com/l/ADBZSq7DnIpCsLIloybj-87jZ-q0LxHo6uA22:18:35 SYS@pib01scp4> @ash_wait_chains program2||event2||sql_id "event='buffer busy waits'" sysdate-1/24/60 sysdate %This SECONDS ------ ---------- WAIT_CHAIN ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 72% 2085 -> (JDBC Thin Client) buffer busy waits [segment header] fv4fs01rvgdju -> (JDBC Thin Client) resmgr:cpu quantum fv4fs01rvgdju
troubleshooting library cache: mutex X
@<the script> username||':'||program2||event2||top_level_call_name||sql_opname||p1text||p1 session_type='FOREGROUND' "TIMESTAMP'2014-11-19 13:00:00'""TIMESTAMP'2014-11-19 14:00:00'" SELECT * FROM *v$db_object_cache* WHERE hash_value = *3309402135* select * from ( select case when (kglhdadr = kglhdpar) then 'Parent' else 'Child '||kglobt09 end cursor, kglhdadr ADDRESS, substr(kglnaobj,1,20) NAME, kglnahsh HASH_VALUE, kglobtyd TYPE, kglobt23 LOCKED_TOTAL, kglobt24 PINNED_TOTAL,kglhdexc EXECUTIONS, kglhdnsp NAMESPACE from x$kglob -- where kglobtyd != 'CURSOR' order by kglobt24 desc) where rownum <= 20;see more here library cache: mutex X
SCRIPT: Troubleshooting Database Contention With V$Wait_Chains (Doc ID 1428210.1)
set pages 1000 set lines 120 set heading off column w_proc format a50 tru column instance format a20 tru column inst format a28 tru column wait_event format a50 tru column p1 format a16 tru column p2 format a16 tru column p3 format a15 tru column Seconds format a50 tru column sincelw format a50 tru column blocker_proc format a50 tru column fblocker_proc format a50 tru column waiters format a50 tru column chain_signature format a100 wra column blocker_chain format a100 wra SELECT * FROM (SELECT 'Current Process: '||osid W_PROC, 'SID '||i.instance_name INSTANCE, 'INST #: '||instance INST,'Blocking Process: '||decode(blocker_osid,null,'<none>',blocker_osid)|| ' from Instance '||blocker_instance BLOCKER_PROC, 'Number of waiters: '||num_waiters waiters, 'Final Blocking Process: '||decode(p.spid,null,'<none>', p.spid)||' from Instance '||s.final_blocking_instance FBLOCKER_PROC, 'Program: '||p.program image, 'Wait Event: ' ||wait_event_text wait_event, 'P1: '||wc.p1 p1, 'P2: '||wc.p2 p2, 'P3: '||wc.p3 p3, 'Seconds in Wait: '||in_wait_secs Seconds, 'Seconds Since Last Wait: '||time_since_last_wait_secs sincelw, 'Wait Chain: '||chain_id ||': '||chain_signature chain_signature,'Blocking Wait Chain: '||decode(blocker_chain_id,null, '<none>',blocker_chain_id) blocker_chain FROM v$wait_chains wc, gv$session s, gv$session bs, gv$instance i, gv$process p WHERE wc.instance = i.instance_number (+) AND (wc.instance = s.inst_id (+) and wc.sid = s.sid (+) and wc.sess_serial# = s.serial# (+)) AND (s.final_blocking_instance = bs.inst_id (+) and s.final_blocking_session = bs.sid (+)) AND (bs.inst_id = p.inst_id (+) and bs.paddr = p.addr (+)) AND ( num_waiters > 0 OR ( blocker_osid IS NOT NULL AND in_wait_secs > 10 ) ) ORDER BY chain_id, num_waiters DESC) WHERE ROWNUM < 101;