当前位置: 首页 > ai >正文

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 ManagementBR, Backup/RestoreCF, Controlfile TransactionCI, Cross-instance Call InvocationCU, Bind EnqueueDF, DatafileDL, Direct Loader Index CreationDM, Database MountDR, Distributed Recovery ProcessDW, SecureFilesDX, Distributed TransactionFP, File ObjectFS, File SetHW, High-Water LockIN, Instance NumberIR, Instance RecoveryIS, Instance StateIV, Library Cache InvalidationJI, Enqueue used during AJV snapshot refreshJQ, Job QueueKK, Redo Log "Kick"KP, contention in Oracle Data Pump startup and shutdown processesKO, Multiple Object CheckpointL[A-P], Library Cache LockLS, Log Start or SwitchMM, Mount DefinitionMR, Media RecoveryN[A-Z], Library Cache PinPE, ALTER SYSTEM SET PARAMETER = VALUEPF, Password FilePI, Parallel SlavesPR, Process StartupPS, Parallel Slave SynchronizationQ[A-Z], Row CacheRO, Object ReuseRT, Redo ThreadRW, Row WaitSC, System Change NumberSM, SMONSN, Sequence NumberSQ, Sequence Number EnqueueSR, Synchronized ReplicationSS, Sort SegmentST, Space Management TransactionSV, Sequence Number ValueTA, Transaction RecoveryTC, Thread CheckpointTE, Extend TableTM, DML EnqueueTO, Temporary Table Object EnqueueTS, Temporary Segment (also TableSpace)TT, TablespaceTX, TransactionUL, User-defined LocksUN, User NameUS, Undo Segment, SerializationWL, Being Written Redo LogXA, Instance Attribute LockXI, Instance Registration LockZA, Exclusive Lock When Moving Audit Table

Enqueue状态查看

-- 查看当前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类型。

http://www.xdnf.cn/news/7809.html

相关文章:

  • MySQL中的重要常见知识点(入门到入土!)
  • QT中信号和事件的区别
  • Panasonic松下焊接机器人节气
  • Web3 领域中的一些专业术语
  • Nginx负载均衡配置详解
  • 14、自动配置【源码分析】-初始加载自动配置类
  • 双活数据中心解决方案
  • KubeVirt虚拟机热迁移
  • 第六章 Freertos智能小车循迹模块
  • 【Oracle 专栏】清理用户及表空间
  • STM32 I2C硬件读写
  • MLXJAX框架学习
  • 时源TS4RPSA2-3-3导电硅胶
  • 【已解决】docker search --limit 1 centos Error response from daemon
  • React中使用 Ant Design Charts 图表
  • 31-35【动手学深度学习】深度学习硬件
  • Spark Core 源码关键环节的深度解析
  • [Vue]跨组件传值
  • PCB 横截面几何形状
  • 几种超声波芯片的特点和对比
  • 【东枫科技】usrp rfnoc 开发环境搭建
  • 学习python day4
  • 101个α因子#11
  • 基于python的机器学习(八)—— 评估算法(一)
  • 力扣周赛置换环的应用,最少交换次数
  • 高阶数据结构——红黑树实现
  • CentOS:搭建国内软件repository,以实现自动yum网络安装
  • Windows逆向工程提升之IMAGE_FILE_HEADER
  • 【Linux笔记】防火墙firewall与相关实验(iptables、firewall-cmd、firewalld)
  • 健康监测实训室建设方案构建