查询锁定的库
最好使用 sys as sysdba登录,防止无权限
SELECT
sess.sid,
sess.serial#,
lo.oracle_username,
lo.os_user_name,
ao.object_name,
lo.locked_mode
FROM
v$locked_object lo,
dba_objects ao,
v$session sess
WHERE
ao.object_id = lo.object_id
AND lo.session_id = sess.sid;
解锁数据库
alter system kill session '137,36105';
# 后面的数字为 sid,serial# 两个查询结果