当前位置:网站首页>处理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#.
边栏推荐
- 43 box model
- "How to use" observer mode
- Heyuan City launched fire safety themed milk tea to boost fire prevention and control in summer
- Login of MySQL [database system]
- Kibana operation es
- Gameframework making games (II) making UI interface
- [C题目]力扣88. 合并两个有序数组
- Sudo rosdep init error ROS installation problem solution
- 基于浏览器的分屏阅读
- 39 简洁版小米侧边栏练习
猜你喜欢

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

LeetCode-198-打家劫舍

冈萨雷斯 数字图像处理 第一章绪论
![Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]](/img/c9/8f8f0934111f7ae8f8abd656d92f12.png)
Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]

44 新浪导航 ,小米边栏 练习

39 simple version of millet sidebar exercise

Wechat official account official environment online deployment, third-party public platform access

D2. Chopping Carrots (Hard Version) (每日一题)

Gonzalez Digital Image Processing Chapter 1 Introduction

Alibaba cloud installs mysql5.7
随机推荐
"How to use" agent mode
Realsense ROS installation configuration introduction and problem solving
32 use of chrome debugging tools
I2C设备驱动程序的层次结构
[nuxt 3] (XI) transmission & module
云安全技术发展综述
MySQL 45 talks about | 06 global locks and table locks: Why are there so many obstacles to adding a field to a table?
awk从入门到入土(21)awk脚本调试
Melody + realsense d435i configuration and error resolution
Splice a field of the list set into a single string
Products on Apple's official website can save 600 yuan by buying iPhone 13 Pro max at a discount
MySQL sort
32 chrome调试工具的使用
06、类神经网络
Reprint ---- how to read the code?
IP地址分类,判断一个网段是子网超网
[C题目]力扣88. 合并两个有序数组
D2. Chopping Carrots (Hard Version) (每日一题)
How to use the random number function of JMeter
Overview of cloud security technology development