zircon06
Technical User
- Jan 8, 2007
- 81
Can you tell procedure to remove rowlock on tables
Thanks in advance
Thanks in advance
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ttitle "Lock Listing"
set linesize 150
set echo off
col oruser format a16 heading "Oracle Username"
col osuser format a13 heading "O/S Username"
col obj format a20 heading "Locked Object"
col ss heading "SID/Ser#" format a12
col time heading "Logon Date/Time" format a19
col rs heading "RBS|Name" format a4
col unix heading "O/S|Process" format a9
col computer heading "Machine name|of Locker" format a20
set linesize 120
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
/
ttitle off
set linesize 132
SQL> @locks
... Machine name Unix
...Oracle Username O/S Username of Locker Process SID/Ser#...
...---------------- ------------- -------------------- --------- --------...
...TEST (ACTIVE) TENFOLD\dhunt TENFOLD\TFMOBILE5331 1016:1380 '8,1787'...
******************************************************************************
SQL> alter system kill session '8,1787';
System altered.