oracle查找被锁以及解锁
oracle查找被锁以及解锁SELECT s.sid||','||s.SERIAL#, s.serial#, s.username, s.schemaname, s.osuser, s.process, s.machine,s.terminal, s.logon_time, l.typeFROM v$session s, v$lock lwhere ((s.sid = l.sidAND s.username IS NOT NULL))and(terminal = 'CHINA-C742905EE')alter system kill session '383,32773';第一条sql是找出被锁,第二条解锁