当前位置:网站首页>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;边栏推荐
- Cmake learning manual
- Long list performance optimization scheme memo
- QT document
- Get pictures through opencv, change channels and save them
- Simple and easy to modify spring frame components
- Go slice comparison
- The sixth training assignment
- Wallhaven壁纸桌面版
- After the uniapp jumps to the page in onlaunch, click the event failure solution
- Is the soft test intermediate useful??
猜你喜欢

Ping tool ICMP message learning
![[machine learning 03] Lagrange multiplier method](/img/14/7d4eb5679606e272f137ddbda4938c.png)
[machine learning 03] Lagrange multiplier method

Static semantic check of clang tidy in cicd

Basic knowledge of process (orphan, zombie process)

从色情直播到直播电商

Deep understanding of Apache Hudi asynchronous indexing mechanism

uniCloud

Network engineer test questions and answers in May of the first half of 2022

shardingsphere分库分表示例(逻辑表,真实表,绑定表,广播表,单表)

Mendeley -- a free document management tool that automatically inserts references into papers
随机推荐
香橙派OrangePi 4 LTS开发板通过Mini PCIE连接SATA硬盘的操作方法
单调性约束与反单调性约束的区别 monotonicity and anti-monotonicity constraint
Deeply understand the characteristics of database transaction isolation
Add a self incrementing sequence number to the antd table component
【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
从色情直播到直播电商
请问申购新股哪个证券公司开户是最好最安全的
Transaction rolled back because it has been marked as rollback only
Typescript interface inheritance
How to use cherry pick?
在线硬核工具
uniapp 在onLaunch中跳转页面后,点击事件失效解决方法
What is an intermediate network engineer? What is the main test and what is the use?
seata 1.3.0 四種模式解决分布式事務(AT、TCC、SAGA、XA)
Avoid mutating a prop directly since the value will be overwritten whenever the parent component
Realize ray detection, drag the mouse to move the object and use the pulley to scale the object
[untitled]
IDEA快捷键大全
Use of dotween
[untitled]