当前位置:网站首页>Oracle database query lock table SQL script and delete lock information script (necessary for database development ETL and DBA)
Oracle database query lock table SQL script and delete lock information script (necessary for database development ETL and DBA)
2022-04-23 01:26:00 【Grey wolf yyds】
ORACLE Database query lock table statement sql Script , And delete lock information script ( Database development ETL、DBA necessary )
List of articles
Preface
Because when some modifications or queries are performed on the database , The situation that caused the watch lock , This happens in many ways , For example, when querying, the index column fails , Row level locks are upgraded to table locks .
Tips : The following is the main body of this article , The following cases can be used for reference
One 、Oracle Query table lock statement
1、 Check the database version
select * from v$version;
2、 database dba user :system/oracle
grant create session to UserName
3、 Query the information of the lock table
SELECT
L.SESSION_ID SID,
S.SERIAL#,
L.LOCKED_MODE,
L.ORACLE_USERNAME,
L.OS_USER_NAME,
S.MACHINE,
S.TERMINAL,
O.OBJECT_NAME,
S.LOGON_TIME
FROM V$LOCKED_OBJECT L, ALL_OBJECTS O, V$SESSION S
WHERE L.OBJECT_ID = O.OBJECT_ID
AND L.SESSION_ID = S.SID
ORDER BY SID, S.SERIAL# ;
4、 Query out , Yes 2 Record of table lock ,IFB_WF_WAIT_ECDS This watch is locked

Two 、 Delete the information of the lock table kill
1、 Delete the... After the statement ’3493,35500’, Represents the queried SID、SERIAL Field

ALTER system KILL session '3493,35500'
2、 After performing , Lock table record deletion , Table lock release

summary
That's what we're going to talk about today , This article only briefly introduces Oracle Database query lock table 、 Delete the usage record of table lock session .
版权声明
本文为[Grey wolf yyds]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221002149008.html
边栏推荐
- GBASE 8s 共享内存缓冲池介绍
- Activity preview | on April 23, a number of wonderful openmldb sharing came, which lived up to the good time of the weekend!
- [course summary] Hello harmonyos series of courses, take you to zero foundation introduction
- Update description of the latest process engine flowable 6.7.2
- Project manager's thinking mode worth trying: project success equation
- Detailed explanation of the usage of C language getchar
- VS+C# 实现窗体输入框默认显示灰色文字
- Gbase 8s Group by 功能介绍
- gin--hello
- Practice and exploration of knowledge map visualization technology in meituan
猜你喜欢

10月24号是什么?中国的高级程序员为什么没有五六十岁的,而国外人、、、,玉念聿辉带你过1024程序员节日

Thingskit Internet of things platform

JD side: how can a child thread get the value of the parent thread ThreadLocal? I got...

2022 penetration job interview (thinking)

Innovative practice of short video content understanding and generation technology in meituan

Introduction to PCIe xdma IP core (with list) - mingdeyang science and Education (mdy edu. Com)

VSCODE + PHP Debug + 名字空间指引

Analysis and configuration process of epit periodic timer for imx6ull bare metal development

Cai Guoqiang's fireworks NFT debut is as wonderful as fireworks during the day

App中使用微信公众号的模版消息来进行消息推送
随机推荐
Basic operation of Android local database | multi thread operation database | addition, deletion, modification and query of database | batch insertion into database | basic use of thread pool | Yu nia
Chris LATTNER, father of llvm: the golden age of compilers
GBASE 8s并发控制之封锁类型
Gbase 8s存儲結構簡介及空間管理
Level 4 city area table xlsx, SQL file, domestic, provincial, county, street, township level 4 address in China (name, linkage ID, level, end level or not (1-yes))
Itextsharp page setup
计蒜客:等边三角形(DFS)
那些咸鱼上买来的代码|ssm酒店客房管理系统|买来的源码是否真的可以使用|来自程序员的困惑|玉念聿辉|大丑村吴明辉
Gbase 8s 并发控制之粒度锁介绍
Introduction to granularity locking of gbase 8s concurrency control
再谈被动安全 教你看懂中保研碰撞测试的评级报告
Abused "architect"!
Branch and loop statements
Blocking type of gbase 8s concurrency control
engine.POST()处理POST请求
Gbase 8s fragment table management operation
GBASE 8s分片表管理操作
Ampere computing releases the computing power of observation cloud "core" and jointly promotes the development of observability
Unrelated interprocess communication -- creation and use of named pipes
Planning garlic guest (outing) (DFS and BFS solution of dyeing block problem)