-- 1. 查看被锁的表
SELECT p.spid, a.serial#, c.object_name, b.session_id, b.oracle_username,b.os_user_name FROM v$process p, v$session a, v$locked_object b, all_objects c WHERE p.addr = a.paddr AND a.process = b.process AND c.object_id = b.object_id
-- 2. 查看是哪个进程锁的
SELECT sid, serial#, username, status, osuser FROM v$session where serial# = '5002' SELECT sid, serial#, username, status, osuser FROM v$session where serial# = '3789'
-- 3. 杀掉这个进程
alter system kill session 'sid,serial#'; alter system kill session '269,3789'; alter system kill session '34,4661'; alter system kill session '265,5002'; alter system kill session '289,1688'; alter system kill session '282,5799';
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索oracle
, 被锁的表
杀掉进程
oracle查看锁表进程、oracle 查看死锁进程、oracle 进程查看、oracle 查看会话进程、linux 查看oracle进程,以便于您获取更多的相关知识。
时间: 2024-10-29 13:51:15