Skip to content

Commit

Permalink
add enqueue hash chains "object" comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tanelpoder committed Feb 26, 2020
1 parent de07130 commit c273ca7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions latchprofx.sql
Expand Up @@ -10,7 +10,7 @@
-- function the latch held was taken
--
-- Author: Tanel Poder
-- https://blog.tanelpoder.com
-- https://tanelpoder.com
--
-- Usage: @latchprofx <what> <sid> <latch name> <#samples>
-- @latchprofx name 350 % 100000 - monitor all latches SID 350 is holding
Expand All @@ -28,11 +28,14 @@
--
-- @latchprofx sid,name,hmode,func,object % 40D993A0 100000
-- - monitor for what object's access the child latch at
-- - particular address was taken. for cache buffers chains
-- - particular address was taken. for "cache buffers chains"
-- - latch the object means data block address (DBA)
-- - of the block accessed in buffer cache.
-- - you can translate the 6-byte DBA to rfile#/block#
-- - using dbms_utility or dba.sql script from TPT scripts
-- - for "enqueue hash chains" latch you can look up the locked
-- - resource via V$RESOURCE.ADDR
--
--
-- Other:
-- This script is based on X$ tables instead of V$ tables
Expand Down Expand Up @@ -104,7 +107,7 @@ BREAK ON lhp_name SKIP 1
DEF _IF_ORA_11_OR_HIGHER="--"

PROMPT
PROMPT -- LatchProfX 2.10 by Tanel Poder ( https://blog.tanelpoder.com )
PROMPT -- LatchProfX 2.11 by Tanel Poder ( https://tanelpoder.com )

COL latchprof_ora_11 NEW_VALUE _IF_ORA_11_OR_HIGHER

Expand Down

0 comments on commit c273ca7

Please sign in to comment.