-- 查看数据库锁明细 select a.sid, b.serial#, b.username, b.osuser, b.machine, b.program, c.object_name,d.spid, decode(a.type, 'mr', 'media recovery', 'rt','redo thread', 'un','user name', 'tx', 'transaction', 'tm', 'dml', 'ul', 'pl/sql user lock', 'dx', 'dis…