当前位置:网站首页>Oracle lock table query and unlocking method
Oracle lock table query and unlocking method
2022-04-23 13:40:00 【Wangcai 2】
View locked table information
select sess.sid,sess.serial#,
lo.oracle_username ' Login account ',lo.os_user_name ' Log in to your computer ',
ao.object_name ' Locked table name ',lo.locked_mode ' Locked level '
from v$locked_object lo,dba_objects ao,v$session sess
where ao.object_id=lo.object_id and lo.session_id=sess.sid;
Kill the lock table process
alter system kill session '68,51';-- Respectively SID and SERIAL# Number
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;
版权声明
本文为[Wangcai 2]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230604301244.html
边栏推荐
- torch. Where can transfer gradient
- Data warehouse - what is OLAP
- Playwright controls local Google browsing to open and download files
- 十万大学生都已成为猿粉,你还在等什么?
- SAP ui5 application development tutorial 72 - trial version of animation effect setting of SAP ui5 page routing
- UEFI learning 01-arm aarch64 compilation, armplatformpripeicore (SEC)
- 2020最新Android大厂高频面试题解析大全(BAT TMD JD 小米)
- Campus takeout system - "nongzhibang" wechat native cloud development applet
- Remove the status bar
- 顶级元宇宙游戏Plato Farm,近期动作不断利好频频
猜你喜欢

面试官给我挖坑:URI中的 “//” 有什么用?

How to build a line of code with M4 qprotex

Analysis of the latest Android high frequency interview questions in 2020 (BAT TMD JD Xiaomi)

"Xiangjian" Technology Salon | programmer & CSDN's advanced road

交叉碳市场和 Web3 以实现再生变革

面试官给我挖坑:单台服务器并发TCP连接数到底可以有多少 ?

MySQL 8.0.11 download, install and connect tutorials using visualization tools

Data warehouse - what is OLAP

切线空间(tangent space)

【重心坐标插值、透视矫正插值】原理以及用法见解
随机推荐
[barycentric coordinate interpolation, perspective correction interpolation] principle and usage opinions
Example interview | sun Guanghao: College Club grows and starts a business with me
解决tp6下载报错Could not find package topthink/think with stability stable.
Plato farm, a top-level metauniverse game, has made frequent positive moves recently
联想拯救者Y9000X 2020
切线空间(tangent space)
Error 403 in most cases, you or one of your dependencies are requesting
Feature Engineering of interview summary
2021年6月程序员工资统计,平均15052元,你拖后腿了吗?
Armv8m (cortex M33) MPU actual combat
叮~ 你的奖学金已到账!C认证企业奖学金名单出炉
Imx6ull QEMU bare metal tutorial 2: usdhc SD card
[point cloud series] deepmapping: unsupervised map estimation from multiple point clouds
顶级元宇宙游戏Plato Farm,近期动作不断利好频频
缘结西安 | CSDN与西安思源学院签约,全面开启IT人才培养新篇章
Scons build embedded ARM compiler
Servlet of three web components
Utilisation de GDB
Migrating your native/mobile application to Unified Plan/WebRTC 1.0 API
[point cloud series] relationship based point cloud completion