Sunday, August 9, 2020

Find oracle locked objects in oracle database

 select object_name obj

 ,oracle_username||' ('||s.status||')' oruser

 ,os_user_name osuser

 ,l.process unix

 ,''''||s.sid||','||s.serial#||'''' ss

 ,r.name rs

 ,to_char(s.logon_time,'yyyy/mm/dd hh24:mi:ss') time

 from v$locked_object l

 ,dba_objects o

 ,v$session s

 ,v$transaction t

 ,v$rollname r

 where l.object_id = o.object_id

 and s.sid=l.session_id

 and s.taddr=t.addr

 and t.xidusn=r.usn

 order by ss, obj,osuser,  obj



alter system  kill session  '6,1509'

No comments:

Post a Comment

How to install and configure Oracle Apex 24.1 with ORDS 22, Tomcat 9 and Jasper Report 7 on Oracle Linux 8.10

#########################Install Oracle  APEX 24.1################################ ----------------------------------------------------...