Just Run the Below Script and after this kill the session :
select owner||’.’||object_name obj
,oracle_username||’ (‘||s.status||’)’ oruser
,os_user_name osuser
,machine computer
,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 osuser, ss, obj ;
To kill the session :
Alter System kill Session ‘Sid,Serail#’ immediate ;
Thank you
Osama mustafa
Like this:
Like Loading...
Related
Published by Osama Mustafa
Osama considered as one of the leaders in Cloud technology, DevOps and database in the Middle-East. I have more than ten years of experience within the industry. moreover, certfied 4x AWS , 4x Azure and 6x OCI, have also obtained database certifications for multiple providers.
In addition to having experience with Oracle database and Oracle products, such as middle-ware, OID, OAM and OIM, I have gained substantial knowledge with different databases.
Currently, I am architecting and implementing Cloud and DevOps. On top of that, I'm providing solutions for companies that allow them to implement the solutions and to follow the best practices.
View all posts by Osama Mustafa
this topic Would be, Check who Use the same table you want to delete,this above query Display Tables not the particular recordthank-you
LikeLike