当前位置:网站首页>处理ORACLE死锁
处理ORACLE死锁
2022-07-25 14:59:00 【Kimizhou_blog】
select count(*) from v$locked_object;
select * from v$locked_object;
--查看哪个表被锁
Sql代码
select b.owner,b.object_name,a.session_id,a.locked_mode
from v$locked_object a,dba_objects b
where b.object_id = a.object_id;
--查看是哪个session引起的
Sql代码
select b.username,b.sid,b.serial#,logon_time
from v$locked_object a,v$session b
where a.session_id = b.sid order by b.logon_time;
执行命令:alter system kill session'1025,41';
其中1025为sid, 41为serial#.
边栏推荐
- 51 single chip microcomputer learning notes (2)
- 51单片机学习笔记(1)
- 006操作符简介
- Paddlenlp's UIE relationship extraction model [executive relationship extraction as an example]
- 37 元素模式(行内元素,块元素,行内块元素)
- 二维数组赋初值你会几种方法?
- LeetCode_ String_ Medium_ 151. Reverse the words in the string
- BIO、NIO、AIO示例
- Qt connect 中, SIGNAL,SLOT 与 lambda 对比
- Examples of bio, NiO, AIO
猜你喜欢

Melody + realsense d435i configuration and error resolution

AS查看依赖关系和排除依赖关系的办法

L1 and L2 regularization

43 盒子模型

冈萨雷斯 数字图像处理 第一章绪论

Resource not found: rgbd_ Launch solution

微信公众号正式环境上线部署,第三方公众平台接入

The solution to the problem that the progress bar of ros2 installation connext RMW is stuck at 13%

Sudo rosdep init error ROS installation problem solution

easygui使用的语法总结
随机推荐
kibana操作es
优质数对的数目[位运算特点+抽象能力考察+分组快速统计]
"How to use" observer mode
国联证券买股票开户安全吗?
As methods for viewing and excluding dependencies
Go language founder leaves Google
006操作符简介
"Ask every day" reentrantlock locks and unlocks
Leetcode-198- house raiding
37 元素模式(行内元素,块元素,行内块元素)
[nuxt 3] (XI) transmission & module
Kibana operation es
Awk from getting started to digging in (23) awk built-in variables argc, argc -- command line parameter transfer
LeetCode_ String_ Medium_ 151. Reverse the words in the string
51单片机学习笔记(1)
H5页面input输入框弹起数字键盘,需要支持小数点
GameFramework制作游戏(二)制作UI界面
[C题目]力扣206. 反转链表
没错,请求DNS服务器还可以使用UDP协议
Heyuan City launched fire safety themed milk tea to boost fire prevention and control in summer