Re: Blocking_session is blocker or blocked

From: Mark J. Bobak <mark_at_bobak.net>
Date: Thu, 1 Aug 2019 12:00:46 -0400
Message-ID: <CAFQ5ACLqB-k0bkqhQrX_OS2a6L8vUETVy_2Q4v2vX0JuPug9Cg_at_mail.gmail.com>



blocking_session is the blocker, not the blockee. In other words, it's the session holding the lock and doing the blocking. SID is the session being blocked.

-Mark

On Thu, Aug 1, 2019 at 11:07 AM Eriovaldo Andrietta <ecandrietta_at_gmail.com> wrote:

> Hello,
>
> In the sql below , the blocking_session is the BLOCKED or BLOCKER session ?
>
> Select blocking_session, blocking_instance,wait_class, sid, serial#,
> inst_id,
> seconds_in_wait, program, module, s.LOGON_TIME
> From gv$session s
> where blocking_session is not NULL
> order by blocking_session;
>
> Regards
> Eriovaldo
>

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Aug 01 2019 - 18:00:46 CEST

Original text of this message