1. 查看当前会话持有的锁:

```sqlSELECT s.sid, s.serial, s.username, s.osuser, s.machine, s.program, s.lockwait, l.locked_modeFROM v$session s, v$locked_object lWHERE s.sid = l.session_id;```

2. 查看当前数据库中所有锁的信息:

```sqlSELECT s.sid, s.serial, s.username, s.osuser, s.machine, s.program, s.lockwait, l.locked_mode, o.object_name, o.object_typeFROM v$session s, v$locked_object l, dba_objects oWHERE s.sid = l.session_idAND l.object_id = o.object_id;```

3. 查看当前数据库中所有等待锁的会话:

```sqlSELECT s.sid, s.serial, s.username, s.osuser, s.machine, s.program, s.lockwait, l.requestFROM v$session s, v$lock lWHERE s.sid = l.sidAND l.lmode = 0;```

4. 查看当前数据库中所有等待锁的对象:

```sqlSELECT o.object_name, o.object_type, l.request, s.sid, s.serial, s.username, s.osuser, s.machine, s.programFROM v$lock l, v$session s, dba_objects oWHERE l.id1 = o.object_idAND l.sid = s.sidAND l.lmode = 0;```

这些查询语句可以帮助你了解当前数据库中锁表的情况,包括哪些会话持有锁、哪些会话正在等待锁、锁的类型以及锁的对象等信息。你可以根据需要选择合适的查询语句来获取所需的信息。