Oracle Enqueue Names

Oracle Enqueue Names

Enqueue(排队锁)是Oracle数据库中用于协调多进程并发访问共享资源的锁机制。

This appendix lists Oracle enqueues. Enqueues are shared memory structures (locks) that serialize access to database resources. They can be associated with a session or transaction. Enqueue names are displayed in the LOCK_TYPE column of the DBA_LOCK and DBA_LOCK_INTERNAL data dictionary views.

A resource uniquely identifies an object that can be locked by different sessions within an instance (local resource) or between instances (global resource). Each session that tries to lock the resource will have an enqueue on the resource.

Note:

The names of enqueues and their definitions may change from release to release.

The Oracle enqueues are:

复制代码
BL, Buffer Cache Management

BR, Backup/Restore

CF, Controlfile Transaction

CI, Cross-instance Call Invocation

CU, Bind Enqueue

DF, Datafile

DL, Direct Loader Index Creation

DM, Database Mount

DR, Distributed Recovery Process

DW, SecureFiles

DX, Distributed Transaction

FP, File Object

FS, File Set

HW, High-Water Lock

IN, Instance Number

IR, Instance Recovery

IS, Instance State

IV, Library Cache Invalidation

JI, Enqueue used during AJV snapshot refresh

JQ, Job Queue

KK, Redo Log "Kick"

KP, contention in Oracle Data Pump startup and shutdown processes

KO, Multiple Object Checkpoint

L[A-P], Library Cache Lock

LS, Log Start or Switch

MM, Mount Definition

MR, Media Recovery

N[A-Z], Library Cache Pin

PE, ALTER SYSTEM SET PARAMETER = VALUE

PF, Password File

PI, Parallel Slaves

PR, Process Startup

PS, Parallel Slave Synchronization

Q[A-Z], Row Cache

RO, Object Reuse

RT, Redo Thread

RW, Row Wait

SC, System Change Number

SM, SMON

SN, Sequence Number

SQ, Sequence Number Enqueue

SR, Synchronized Replication

SS, Sort Segment

ST, Space Management Transaction

SV, Sequence Number Value

TA, Transaction Recovery

TC, Thread Checkpoint

TE, Extend Table

TM, DML Enqueue

TO, Temporary Table Object Enqueue

TS, Temporary Segment (also TableSpace)

TT, Tablespace

TX, Transaction

UL, User-defined Locks

UN, User Name

US, Undo Segment, Serialization

WL, Being Written Redo Log

XA, Instance Attribute Lock

XI, Instance Registration Lock

ZA, Exclusive Lock When Moving Audit Table

Enqueue状态查看

sql 复制代码
-- 查看当前enqueue等待
SELECT * FROM v$enqueue_stat WHERE cum_wait_time > 0;

-- 详细enqueue持有/等待情况
SELECT 
  e.addr, e.kaddr, e.sid, 
  e.type, e.id1, e.id2, 
  e.lmode, e.request, e.ctime
FROM v$lock e
WHERE e.type IN ('TX','TM','ST','TT','US','SQ','BL','HW')
ORDER BY e.ctime DESC;

注:Oracle不同版本可能有所差异,19c新增了TA(Tablespace Alter)等新enqueue类型。

相关推荐
wjhx11 分钟前
QT中对蓝牙权限的申请,整理一下
java·数据库·qt
冰暮流星22 分钟前
javascript之二重循环练习
开发语言·javascript·数据库
威迪斯特43 分钟前
CentOS图形化操作界面:理论解析与实践指南
linux·运维·centos·组件·图形化·桌面·xserver
万岳科技系统开发1 小时前
食堂采购系统源码库存扣减算法与并发控制实现详解
java·前端·数据库·算法
一方热衷.1 小时前
在线安装对应版本NVIDIA驱动
linux·运维·服务器
独自归家的兔1 小时前
ubuntu系统安装dbswitch教程 - 备份本地数据到远程服务器
linux·运维·ubuntu
ONE_SIX_MIX1 小时前
ubuntu 24.04 用rdp连接,桌面黑屏问题,解决
linux·运维·ubuntu
龙飞051 小时前
Systemd -systemctl - journalctl 速查表:服务管理 + 日志排障
linux·运维·前端·chrome·systemctl·journalctl
春日见1 小时前
如何创建一个PR
运维·开发语言·windows·git·docker·容器
冉冰学姐1 小时前
SSM智慧社区管理系统jby69(程序+源码+数据库+调试部署+开发环境)带论文文档1万字以上,文末可获取,系统界面在最后面
数据库·管理系统·智慧社区·ssm 框架