Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Misbah.

Asked: May 01, 2020 - 12:42 pm UTC

Last updated: May 07, 2020 - 6:44 am UTC

Version: 12.1.0.2

Viewed 1000+ times

You Asked

Hi,

Unfortunately I dont have this information as the issue happened almost a month back.


We need a couple of things

1) The SQL for SQL_ID 4d7vq4q1vj56w

(select sql_fulltext from v$sql where sql_id = '4d7vq4q1vj56w ')

2) The type of block

select event from v$session where sid in ( [the sids that are blocked] )







Hi, I hope you are well and healthy in these uncertain times.

We have a Oracle 12c database, non pdb, with two schemas. Each Schema is used by different application. It was found that although used by different apps with no matching object names, one schema was blocking session from another schema. Schema names are COBRA and CMPL_PRD. COBRA is also blocking SYS. Please suggest why schema for totally different apps may block another schema.

Blocking sessions Details :

BLOCKING_STATUS
------------------------------------------------------------------------------------------------------------------------------------
COBRA@sccob02 ( SID=335:21452: )  is blocking COBRA@sccob03 ( SID=388:4d7vq4q1vj56w )
COBRA@sccob02 ( SID=335:21452: )  is blocking COBRA@sccob02 ( SID=388:4d7vq4q1vj56w )
COBRA@sccob02 ( SID=335:21452: )  is blocking COBRA@sccob03 ( SID=205:4d7vq4q1vj56w )
COBRA@sccob02 ( SID=590:11902: )  is blocking COBRA@sccob03 ( SID=1292:4d7vq4q1vj56w )
COBRA@sccob02 ( SID=590:11902: )  is blocking COBRA@sccob03 ( SID=973:4d7vq4q1vj56w )
COBRA@sccob02 ( SID=590:11902: )  is blocking COBRA@sccob03 ( SID=844:4d7vq4q1vj56w )
COBRA@sccob02 ( SID=590:11902: )  is blocking COBRA@sccob03 ( SID=906:4d7vq4q1vj56w )
COBRA@sccob02 ( SID=590:11902: )  is blocking SYS@scsogdb04 ( SID=906: )
COBRA@sccob02 ( SID=590:11902: )  is blocking COBRA@sccob02 ( SID=645:4d7vq4q1vj56w )
COBRA@sccob02 ( SID=590:11902: )  is blocking COBRA@sccob03 ( SID=388:4d7vq4q1vj56w )
COBRA@sccob02 ( SID=590:11902: )  is blocking COBRA@sccob02 ( SID=388:4d7vq4q1vj56w )
COBRA@sccob02 ( SID=590:11902: )  is blocking COBRA@sccob03 ( SID=387:4d7vq4q1vj56w )
COBRA@sccob02 ( SID=590:11902: )  is blocking CMPL_PRD@scwacz215 ( SID=387: )


and Connor said...

Check out DBA_HIST_ACTIVE_SESS_HISTORY

You might be able to get this information from there (it might have aged out by now).

Thats all we can offer - without that info, its tough to make an assessment

Is this answer out of date? If it is, please let us know via a Comment

More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database