当前位置:网站首页>Common locking table processing methods in Oracle
Common locking table processing methods in Oracle
2022-07-07 11:55:00 【Auspicious flight】
1、 View locked table information
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、 Kill the lock table process
alter system kill session '68,51';-- Respectively SID and SERIAL# Number
3、 View the table that caused the lock in the database SQL sentence
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;
边栏推荐
- 【滤波跟踪】基于matlab扩展卡尔曼滤波EKF和无迹卡尔曼滤波UKF比较【含Matlab源码 1933期】
- Rationaldmis2022 advanced programming macro program
- Enclosed please find. Net Maui's latest learning resources
- OneDNS助力高校行业网络安全
- Tsinghua Yaoban programmers, online marriage was scolded?
- Time bomb inside the software: 0-day log4shell is just the tip of the iceberg
- Internet Protocol
- R語言使用magick包的image_mosaic函數和image_flatten函數把多張圖片堆疊在一起形成堆疊組合圖像(Stack layers on top of each other)
- Electron adding SQLite database
- 【问道】编译原理
猜你喜欢
[shortest circuit] acwing 1127 Sweet butter (heap optimized dijsktra or SPFA)
Complete collection of common error handling in MySQL installation
一度辍学的数学差生,获得今年菲尔兹奖
. Net Maui performance improvement
Suggestions on one-stop development of testing life
相机标定(1): 单目相机标定及张正友标定基本原理
禁锢自己的因素,原来有这么多
[filter tracking] strapdown inertial navigation simulation based on MATLAB [including Matlab source code 1935]
Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
【最短路】Acwing1128信使:floyd最短路
随机推荐
C#中在路径前加@的作用
STM32入门开发 NEC红外线协议解码(超低成本无线传输方案)
VIM command mode and input mode switching
深度学习秋招面试题集锦(一)
Zhou Yajin, a top safety scholar of Zhejiang University, is a curiosity driven activist
Explore cloud database of cloud services together
Talk about SOC startup (x) kernel startup pilot knowledge
竟然有一半的人不知道 for 与 foreach 的区别???
About how to install mysql8.0 on the cloud server (Tencent cloud here) and enable local remote connection
Some opinions and code implementation of Siou loss: more powerful learning for bounding box regression zhora gevorgyan
核舟记(一):当“男妈妈”走进现实,生物科技革命能解放女性吗?
Electron adding SQLite database
R language uses the quantile function to calculate the quantile of the score value (20%, 40%, 60%, 80%), uses the logical operator to encode the corresponding quantile interval (quantile) into the cla
STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于SPI)
Solve the problem that vscode can only open two tabs
112.网络安全渗透测试—[权限提升篇10]—[Windows 2003 LPK.DDL劫持提权&msf本地提权]
相机标定(1): 单目相机标定及张正友标定基本原理
Programming examples of stm32f1 and stm32subeide -315m super regenerative wireless remote control module drive
Excel公式知多少?
Swiftui swift internal skill how to perform automatic trigonometric function calculation in swift