Blocking Sessions

We can use view to identify blocking sessions. Below query checking blocking sessions > 60 seconds.

RAC / Cloud RDS:

SELECT   inst_id, blocking_session,    sid,   serial#,    seconds_in_wait FROM   gv$session WHERE    blocking_session IS NOT NULL and seconds_in_wait > 60 ;

NON-RAC / Cloud RDS:

SELECT   blocking_session,    sid,   serial#,    seconds_in_wait FROM   v$session WHERE    blocking_session IS NOT NULL and seconds_in_wait > 60 ;

Comments

Popular Posts

AWR Report Analysis

Goldengate 19c Installation with issue resolution

Oracle 11g Physical Standy Setup

Oracle 12c 2-node RAC setup in VMware Player 15 -- Part01

Oracle to Postgres

Execution_Explain Plan

Active Session History Analysis

General Queries

Fragmentation & Re-organisation

OEM patches & vulnerabilities