当前位置:网站首页>oracle常见锁表处理方式
oracle常见锁表处理方式
2022-07-07 09:06:00 【auspicious航】
1、查看被锁表信息
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;
2、杀掉锁表进程
alter system kill session '68,51';--分别为SID和SERIAL#号
3、查看数据库引起锁表的SQL语句
SELECT A.USERNAME,
A.MACHINE,
A.PROGRAM,
A.SID,
A.SERIAL#,
A.STATUS,
C.PIECE,
C.SQL_TEXT
FROM V$SESSION A, V$SQLTEXT C
WHERE A.SID IN (SELECT DISTINCT T2.SID
FROM V$LOCKED_OBJECT T1, V$SESSION T2
WHERE T1.SESSION_ID = T2.SID)
AND A.SQL_ADDRESS = C.ADDRESS(+)
ORDER BY C.PIECE;边栏推荐
- Monai version has been updated to 0.9. See what new functions it has
- 在线硬核工具
- 关于jmeter中编写shell脚本json的应用
- Antd select selector drop-down box follows the scroll bar to scroll through the solution
- Typescript interface inheritance
- Vscode 尝试在目标目录创建文件时发生一个错误:拒绝访问【已解决】
- 2021-04-08
- How to successfully pass the senior system architecture designer in the second half of the year?
- Kitex retry mechanism
- Typescript interface inheritance
猜你喜欢

From pornographic live broadcast to live broadcast E-commerce
![[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)](/img/cd/7cd8e2e77419c65d633a2a235b2362.png)
[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)
![[actual combat] transformer architecture of the major medical segmentation challenges on the list --nnformer](/img/de/0cf12132216ffbde896a7b12022184.png)
[actual combat] transformer architecture of the major medical segmentation challenges on the list --nnformer

Is the soft test intermediate useful??

PostgreSQL中的表复制

Qtcreator sets multiple qmake
![[machine learning 03] Lagrange multiplier method](/img/14/7d4eb5679606e272f137ddbda4938c.png)
[machine learning 03] Lagrange multiplier method

SQL Server knowledge gathering 9: modifying data
![[système recommandé 01] rechub](/img/92/c14c867247d3a042c69b5ed0091fbe.png)
[système recommandé 01] rechub

Mendeley -- a free document management tool that automatically inserts references into papers
随机推荐
【安装系统】U盘安装系统教程,使用UltraISO制作U盘启动盘
The concept, implementation and analysis of binary search tree (BST)
2021-04-23
Template initial level template
香橙派OrangePi 4 LTS开发板通过Mini PCIE连接SATA硬盘的操作方法
seata 1.3.0 四种模式解决分布式事务(AT、TCC、SAGA、XA)
【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
Process control (creation, termination, waiting, program replacement)
A case of compiling QT file qmake compiling script
Use load_ decathlon_ Datalist (Monai) fast loading JSON data
Operation method of Orange Pie orangepi 4 lts development board connecting SATA hard disk through mini PCIe
Ffmpeg record a video command from RTSP
Unity script generates configurable files and loads
How to successfully pass the senior system architecture designer in the second half of the year?
"Dream Cup" 2017 Jiangsu information and future primary school summer camp it expert PK program design questions
[untitled]
shardingsphere分库分表示例(逻辑表,真实表,绑定表,广播表,单表)
From pornographic live broadcast to live broadcast E-commerce
变量的解构赋值
[recommendation system 01] rechub