0% found this document useful (0 votes)
6 views3 pages

P Check DB Blocker 4.KSH

D set

Uploaded by

virlep
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

P Check DB Blocker 4.KSH

D set

Uploaded by

virlep
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

PREV_EXEC_START

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------------------------------------------------------------------------
1,12,46435,ACTIVE,pbrcmon,2727938,axbmbp0004,sqlplus@axbmbp0004 (TNS V1-
V3),0700013199839D70,07000130DCA0DD60,20240603164022
FINAL_BLK_INST_SID INST_SID_S# USERNAME OBJ_LCK BLOCKER_INST_SID
EVENT SECONDS_IN_WAIT
-------------------- ------------------ ---------- --------------------
------------------ ------------------------------ ---------------
VALID 1,12 1:1069,54171 PIN 199648,687442,37 VALID 1,12 enq: TX -
row lock contention 7232
SQL to get all final blocker sessions
SELECT inst_id || ',' || sid || ',' || serial# || ',' || status || ',' ||
osuser || ',' || process || ',' || machine || ',' || program || ',' ||
sql_address || ',' || prev_sql_addr || ',' ||
TO_CHAR(prev_exec_start, 'YYYYMMDDHH24MISS') prev_exec_start
FROM gv$session
WHERE (inst_id, sid) IN (SELECT final_blocking_instance, final_blocking_session
FROM gv$session
WHERE final_blocking_session IS NOT NULL
AND lockwait IS NOT NULL
AND seconds_in_wait > 3600);
SQL to get all final blocker sessions
SELECT final_blocking_session_Status||' '||final_blocking_instance||','||
final_blocking_session final_blk_inst_sid,
inst_id||':'||sid||','||serial# inst_sid_s#,
username,
row_wait_obj#||','||row_wait_block#||','||row_wait_row# obj_lck,
blocking_session_Status||' '||blocking_instance||','||blocking_session
blocker_inst_sid,
event, seconds_in_wait
FROM gv$session
WHERE final_blocking_session IS NOT NULL
AND lockwait IS NOT NULL
AND seconds_in_wait > 3600
ORDER BY inst_id;

You might also like