Query to get the details of the lock in the database
SELECT NVL (s.username, 'Internal') username,
NVL (s.terminal, 'None') terminal,
l.SID || ',' || s.serial# KILL,
s.audsid ...