Oracle常用的几个父栓

Oracle中的父闩大致可以分成2类:有子闩的父闩或者独居的父闩,我们来看看这些父闩的属性:

SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
NLSRTL Version 10.2.0.4.0 - ProductionSQL> select count(distinct name) from v$latch_children;
COUNT(DISTINCTNAME)
-------------------82/* 10.2.0.4下共有82种不同子闩,同比11.2.0.1是75种,要比10g中少一些,因为一部分闩在11g中被mutex替代了 */

SQL> select count(distinct name) from v$latch_parent;
COUNT(DISTINCTNAME)
-------------------394/* 共有394种不同父闩 */SQL> select lp.name2    from v$latch_parent lp,(select distinct name from v$latch_children) lc3    where lp.name=lc.name(+) and lc.name is NULL;NAME
--------------------------------------------------
temp lob duration state obj allocation
alert memory latch
mapped buffers lru chain
resmgr:schema config
QMT
FAL subheap alocation
SGA kcrrssncpl latch
KJC global post event buffer
Reserved Space Latch
Request id generation latch
kpon sga structure
resmgr:runnable lists
hash table modification latch
xscalc freelist
gcs pcm hashed value bucket hash
parameter list
KMG MMAN ready and startup request latch
server alert latch
bq:time manger info latch
kwqbsn:qsga
job queue sob latch
KFCL Instance Latch
qm_init_sga
state object free list
KFCL BX Freelist
process
logical standby view
resmgr:queued list
multiblock read objects
hint flashback FBA barrier
i/o slave adaptor
ksxp tid allocation
KJC receiver ctx free list
In memory undo latch
OS process: request allocation
krbmrosl
resmgr:running actses count
active service list
parallel recoverable recovery
xssinfo freelist
cache table scan latch
XDB unused session pool
queue sender's info. latch
flashback hint SCN barrier
RSM process latch
first spare latch
qmn task queue latch
JS broadcast autostart latch
constraint object allocation
AW SGA latch
KSFQ
cached attr list
loader state object freelist
JS queue state obj latch
shared server info
dummy allocation
peplm
policy information
Testing
shrink stat allocation latch
FOB s.o list latch
media recovery process out of buffers
KJC receiver queue access list
flashback mapping
shared server configuration
ASM map operation freelist
statistics aggregation
resmgr:free threads list
block media rcv so alloc latch
ges statistic table
query server freelists
mostly latch-free SCN
RSM SQL latch
name-service entry
name-service request
threshold alerts latch
name-service request queue
ges process table freelist
virtual circuits
kupp process latch
archive process latch
Token Manager
error message lists
Memory Queue Message Subscriber #1
direct msg latch
Memory Queue
ges deadlock list
gcs remastering latch
logical standby cache
resmgr group change latch
KFK SGA context latch
pass worker exception to master
process group creation
NSV creation/termination latch
ksfv subheap
Media rcv so alloc latch
job_queue_processes parameter latch
segmented array pool
ASM map operation hash table
name-service pending queue
message enqueue sync latch
KJC snd proxy ctx free list
image handles of buffered messages latch
KJCT receiver queue access
XDB used session pool
ASM file locked extent latch
change tracking consistent SCN
trace latch
flashback sync request
Policy Refresh Latch
KFC SGA latch
AQ Propagation Scheduling System Load
DMON Work Queues Latch
Streams Generic
session state list latch
OS process allocation
gcs opaque info freelist
shared server spare latch 2
KJC snd proxy queue access list
KFC Hash Latch
Bloom filter list latch
resumable state object
JS event notify broadcast latch
Change Notification Hash table latch
global ctx hash table latch
alert log latch
AQ Propagation Scheduling Proc Table
reservation so alloc latch
ksir sga latch
KFM allocation
ASM allocation
dispatcher info
Transportable DB Context Latch
kwqbcco:cco
SGA mapping latch
kwqi:kchunk latch
datapump attach fixed tables latch
process allocation
KJC destination ctx free list
JS broadcast drop buf latch
SQL memory manager latch
resmgr:gang list
compile environment latch
slave class create
JOX SGA heap latch
MQL Tracking Latch
shared server spare latch 1
ASM file allocation latch
instance enqueue
redo writing
name-service memory objects
bufq statistics
session allocation
global hanganlyze operation
session timer
gcs domain validate latch
qmn state object latch
NSV command ID generation latch
ping redo on-disk SCN
SGA kcrrlatmscnl latch
JS broadcast load blnc latch
KFMD SGA
internal temp table object number allocation latc
bug fix control action latch
job_queue_processes free list latch
Memory Queue Message Subscriber #4
kwqbsgn:msghdr
enqueues
cost function
flashback marker cache
AWR Alerted Metric Element list
KFR redo allocation latch
FIB s.o chain latch
Memory Queue Message Subscriber #3
spilled messages latch
gcs remaster request queue
sequence cache
managed standby latch
KTF sga latch
resmgr:vc list latch
kmcpvec latch
Memory Management Latch
KJC global resend message queue
name-service namespace objects
shared server spare latch 3
resmgr:active threads
ASM network background latch
global KZLD latch for mem in SGA
presentation list
multiple dbwriter suspend
ASM map headers
query server process
KFCL LE Freelist
Managed Standby Recovery State
lgwr LWN SCN
rm cas latch
file number translation table
X$KSFQP
archive control
WCR: kecu cas mem
JS broadcast add buf latch
pebof_rrv
KWQMN job cache list latch
file cache latch
resmgr:incr/decr stats
Consistent RBA
ges timeout list
user lock
kwqbsn:qxl
kokc descriptor allocation latch
hash table column usage latch
dml lock allocation
redo on-disk SCN
LGWR NS Write
Bloom Filter SGA latch
KFA SGA latch
ASM map load waiting list
recovery domain freelist
virtual circuit buffers
object stats modification
TXN SGA
hot latch diags
PL/SQL warning settings
KPON ksr channel latch
dynamic channels
ges caches resource lists
cache protection latch
end-point list
second spare latch
ges s-lock bitvec freelist
Mutex
kmcptab latch
rules engine rule statistics
ASM rollback operations
rules engine rule set statistics
library cache load lock
event group latch
list of block allocation
gcs drop object freelist
STREAMS LCR
KWQMN to-be-Stopped Buffer list Latch
address list
instance information
ktm global data
XDB Config
SGA IO buffer pool latch
active checkpoint queue latch
JS broadcast kill buf latch
DMON Process Context Latch
Undo Hint Latch
rules engine evaluation context statistics
dictionary lookup
event range base latch
begin backup scn array
fixed table rows for x$hs_session
flashback FBA barrier
ASM db client latch
KSXR large replies
buffer pin latch
ges synchronous data
FAL request queue
gcs resource validate list
SGA kcrrpinfo latch
reg$ timeout service time
transaction branch allocation
Change Notification Latch
Mutex Stats
SGA kcrrgap latch
KFC FX Hash Latch
flashback allocation
sort extent pool
logminer work area
KFC LRU latch
OS file lock latch
ksupkttest latch
database property service latch
NLS data objects
Policy Hash Table Latch
Memory Queue Message Subscriber #2
cache buffer handles
queued dump request
JS mem alloc latch
device information
ncodef allocation latch
change tracking state change latch
flashback SCN barrier
temporary table state object allocation
parallel txn reco latch
ksuosstats global area
rules engine aggregate statistics
change tracking optimization SCN
channel anchor
parameter table allocation management
OLS label cache
vecio buf des
STREAMS Pool Advisor
cas latch
Real time apply boundary
Memory Queue Subscriber
generalized trace enabling latch
Fast-Start Failover State Latch
DMON Network Error List Latch
numer of job queues for server notfn
messages
ksv instance
resmgr:method mem alloc latch
QOL Name Generation Latch
enqueue sob latch
KMG resize request state object freelist
Memory Management Parameter Latch
KWQP Prop Status
datapump job fixed tables latch312 rows selected./* 10.2.0.4中共有312个独居的父闩 */SQL> select lp.name,lp.gets,lp.immediate_gets2    from v$latch_parent lp, (select distinct name from v$latch_children) lc3   where lp.name = lc.name(+)4     and lc.name is NULL5     and (lp.gets != 0 or lp.immediate_gets != 0) order by gets asc;NAME                                                     GETS IMMEDIATE_GETS
-------------------------------------------------- ---------- --------------
RSM SQL latch                                               0              1
Undo Hint Latch                                             0            122
Memory Management Latch                                     0        4189799
MQL Tracking Latch                                          0         250886
recovery domain freelist                                    1              0
instance enqueue                                            1              0
QMT                                                         1              0
gcs drop object freelist                                    1              0
channel anchor                                              1              0
reg$ timeout service time                                   1              0
address list                                                1              0
generalized trace enabling latch                            1              0
global hanganlyze operation                                 1              0
rules engine evaluation context statistics                  1              2
qm_init_sga                                                 1              0
rules engine rule statistics                                2              0
resmgr:vc list latch                                        2              0
ksv instance                                                2              0
Mutex Stats                                                 2              0
managed standby latch                                       2              0
global ctx hash table latch                                 2              0
shared server configuration                                 3              2
resmgr:method mem alloc latch                               3              0
alert log latch                                             5              2
qmn state object latch                                      6              0
NLS data objects                                            7              0
rules engine aggregate statistics                           8              0
KJC receiver ctx free list                                  9              2
KJCT receiver queue access                                  9              0
KJC snd proxy ctx free list                                 9              0
KJC snd proxy queue access list                             9              0
KJC receiver queue access list                              9              0
name-service entry                                         11              0
job_queue_processes free list latch                        13              2
KJC destination ctx free list                              18              2
name-service namespace objects                             22              2
cache table scan latch                                     24       12187349
event range base latch                                     94              0
JS broadcast kill buf latch                               103              0
file number translation table                             135              0
trace latch                                               526              0
temp lob duration state obj allocation                   1831              0
ges synchronous data                                     3369         244198
KWQP Prop Status                                         3491              0
KSXR large replies                                       3796              0
JOX SGA heap latch                                       4006           1147
query server process                                     4458           4452
resmgr:schema config                                     6987              0
SQL memory manager latch                                 6998        4183835
state object free list                                   7012              0
temporary table state object allocation                  7346              0
X$KSFQP                                                 12112              0
internal temp table object number allocation latc       24327              0
name-service request                                    26760              0
slave class create                                      29562              0
JS mem alloc latch                                      42492              2
KTF sga latch                                           52471        2860365
FIB s.o chain latch                                    189472              0
ncodef allocation latch                                207281              0
global KZLD latch for mem in SGA                       213870              0
event group latch                                      250324              0
FAL subheap alocation                                  270455              0
FAL request queue                                      270455              0
dictionary lookup                                      293787              0
ktm global data                                        294500              0
rules engine rule set statistics                       349119              0
hash table modification latch                          410073              2
kwqbsn:qsga                                            447245              0
library cache load lock                                451132              0
ges process table freelist                             500374              0
OS process: request allocation                         500376              0
process group creation                                 500376              0
object stats modification                              504747              5
krbmrosl                                               654559              0
archive control                                        671384              0
gcs remaster request queue                             720951              0
ksuosstats global area                                 851936              0
sort extent pool                                       931800              0
KWQMN job cache list latch                             984125              0
loader state object freelist                          1181736              0
error message lists                                   1276908              0
threshold alerts latch                                1314860              0
hash table column usage latch                         1665060      358586939
qmn task queue latch                                  1747101              0
statistics aggregation                                1955529              0
parameter list                                        2321759              0
query server freelists                                2425792              0
JS broadcast load blnc latch                          2505489              0
job_queue_processes parameter latch                   2681109              0
JS broadcast drop buf latch                           2882525              0
JS broadcast add buf latch                            2882597              0
ges timeout list                                      3193262        3404126
KMG MMAN ready and startup request latch              4189807              0
FOB s.o list latch                                    4211788              0
session timer                                         4341863              0
archive process latch                                 4745101              0
OS process allocation                                 4781454              0
begin backup scn array                                5372508              0
parallel txn reco latch                               7060020              0
ges deadlock list                                     8225144           3734
kokc descriptor allocation latch                     10218320              0
ASM db client latch                                  10368227              0
compile environment latch                            10408232              0
SGA IO buffer pool latch                             10518957       10524060
parameter table allocation management                10580949              0
resmgr group change latch                            10928225              0
file cache latch                                     12909240              0
cache buffer handles                                 20398694              0
user lock                                            20713291              0
gcs opaque info freelist                             20714278              0
resmgr:free threads list                             20855255              0
resmgr:active threads                                20862246              0
dummy allocation                                     20870065              0
session state list latch                             21249620              0
name-service pending queue                           22618030              0
name-service memory objects                          23624996              2
list of block allocation                             23630931              0
active checkpoint queue latch                        27637189              5
multiblock read objects                              32939240              2
sequence cache                                       33287559              0
Consistent RBA                                       35761759              0
lgwr LWN SCN                                         36790265              0
mostly latch-free SCN                                36976437              0
PL/SQL warning settings                              41507388              0
active service list                                  58157997        4341784
queued dump request                                  62853955              0
JS queue state obj latch                             90975988              0
ges caches resource lists                            97073996      145681370
gcs remastering latch                               107632668              0
process allocation                                  112440225         249864
AWR Alerted Metric Element list                     129684638              0
redo writing                                        142555594              0
name-service request queue                          148086376              0
dml lock allocation                                 156109225              0
transaction branch allocation                       449472105              0
messages                                            670565488              0
session allocation                                 1648369839              0
enqueues                                           2505157425              0138 rows selected./* 以上列出了312个独居父闩中有138个常被使用,其中最常用的是"enqueues","session allocation","messages"等父闩,若他们被某个dead process长期持有则可能导致整个实例hang住
*//* 注意一般RAC环境中才会用到ges caches resource lists等全局队列闩 */SQL> select lp.name, lp.gets, lp.immediate_gets, lc.name2    from v$latch_parent lp, (select distinct name from v$latch_children) lc3   where lp.name = lc.name(+)4     and lc.name is not NULL5     and (lp.gets != 0 or lp.immediate_gets != 0)6   order by gets asc;NAME                                                     GETS IMMEDIATE_GETS NAME
-------------------------------------------------- ---------- -------------- --------------------------------------------------
resmgr:resource group CPU method                            1              0 resmgr:resource group CPU method
simulator lru latch                                         2              0 simulator lru latch
resmgr:plan CPU method                                      2              0 resmgr:plan CPU method
recovery domain hash list                                   4              0 recovery domain hash list
process queue                                              23              0 process queue
process queue reference                                    48              0 process queue reference
shared pool                                                57              0 shared pool
enqueue hash chains                                      3613              0 enqueue hash chains
library cache                                           27905              0 library cache
redo allocation                                         28695              0 redo allocation
JS slv state obj latch                                 155438              0 JS slv state obj latch
undo global data                                       945519              0 undo global data
transaction allocation                                3327272              0 transaction allocation13 rows selected./* 82个有子闩的父闩中只有13个是常使用的,其中最常用的是"transaction allocation","undo global data","JS slv state obj latch"
*/
有用的父闩被持有往往会酿成灾难,因为他们在数据库堪称是真正one and only的。

转载于:https://www.cnblogs.com/macleanoracle/archive/2010/09/07/2967528.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/462914.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

web架构设计经验分享

2019独角兽企业重金招聘Python工程师标准>>> 本人作为一位web工程师,着眼最多之处莫过于 性能与架构,本次幸得参与sd2.0大会,得以与同行广泛交流,于此二方面,有些心得,不敢独享,与众博友分享&am…

保护可执行程序的一种方法

rar zip压缩有密码打开 运行 转载于:https://www.cnblogs.com/hshy/p/10670277.html

彻底理清重载函数匹配

前言 前面我们讲到了《什么是函数重载?》,有了函数重载之后,就需要确定某次调用需要选用哪个函数。这个过程可以称之为函数匹配或者重载确定。大多数情况下,我们都很容易能够确定某次调用需要选用哪个函数,但事实上不…

GPRS底层API(转)

【API函数】:a)ConnMgrApiReadyEvent()函数函数原型:HANDLE WINAPI ConnMgrApiReadyEvent();利用此函数来我们可以返回一个连接事件的句柄,注意在的得到句柄后要记得及时释放b)ConnMgrConnectionStatus(&am…

js和jquery书籍

开始学习js了,找了基本书,留着看。 http://www.cnblogs.com/xiao_luobo/archive/2010/12/03/1895270.html http://blog.csdn.net/rodjohnsondoctor/article/details/7610688 基础类《高效能人士的7个习惯》(推荐给所有刚刚进入职场的新人&…

面向对象与软件工程—团队作业1

一、队伍介绍 队伍名称:逍遥此身君子意 队伍编号:1523933 参赛区域:西北赛区 参赛类别:小程序 指导老师:崔亚超 二、队伍成员信息 姓名:凌龙(队长) 学号:1700802085 班级…

PostgreSQL的核心架构

PostgreSQL的核心架构 注意 本人的博客都迁移到本人自己搭建的博客地址,通过此处可查看。 应用程序的访问接口 1. 访问接口总体图 进程及内存结构 1. 进程和内存结构图 主进程:Postmaster进程 辅助进程:SysLogger(系统日志&a…

BUG: Setup Was Unable to Create a DCOM User Account Error Message in Visual Studio 6.0

今天在安装VS 6.0时&#xff0c;遇见这个问题&#xff1a;Setup was unable to create a DCOM user account in order to register <path>&#xff3c;valec.exe后来找到原来是VS的一个Bug。贴出微软的原文&#xff1a;BUG: "Setup Was Unable to Create a DCOM Use…

研究下

渗透测试: http://www.cnblogs.com/hyddd/archive/2009/03/22/1419104.html ldap: http://waringid.blog.51cto.com/65148/79648/

线程属性 pthread_attr_t

参考资料&#xff1a; https://blog.csdn.net/hudashi/article/details/7709413 Posix线程中的线程属性pthread_attr_t主要包括scope属性、detach属性、堆栈地址、堆栈大小、优先级。在pthread_create中&#xff0c;把第二个参数设置为NULL的话&#xff0c;将采用默认的属性配置…

如何让new操作符只构造,不申请内存

问题 c中的new操作符 通常完成两个工作 分配内存及调用相应的构造函数。 请问&#xff1a; 如何让new操作符不分配内存&#xff0c;只调用构造函数&#xff1f; 这样的用法有什么用&#xff1f; placement new的含义 placement new可以实现不分配内存&#xff0c;只调用…

Linux 下的多线程下载工具

2019独角兽企业重金招聘Python工程师标准>>> 最先用的是 Axel&#xff08;http://axel.alioth.debian.org/&#xff09;&#xff0c;功能还可以&#xff0c;不过下载文件最多支持到 2GB&#xff0c;再大的文件就不能下载了&#xff0c;真变态&#xff01; aget&…

Launcher结构之home screen

今天刚刚知道如果你的Eclipse里面的工程指向服务器里面的源码记住千万不能在Eclipse里编译~~会在服务器上的源码里多处很多的中间件这样make不了只能清除那些中间件才能编译比较麻烦 Home screen可以说是一个手机的最重要应用&#xff0c;就像一个门户网站的首页&#xff0c;直…

Python_迭代器和生成器的复习_38

迭代器和生成器 迭代器&#xff1a; 双下方法&#xff1a;很少直接调用的方法&#xff0c;一般情况下&#xff0c;是通过其他方法触发的 可迭代的协议——可迭代协议 含有__iter__ 的方法 (__iter__ in dir(数据)) 可迭代的一定可以被for循环 迭代器协议&#xff1a;含有 __ite…

Elasticsearch是如何做到快速索引的

最近在参与一个基于Elasticsearch作为底层数据框架提供大数据量(亿级)的实时统计查询的方案设计工作&#xff0c;花了些时间学习Elasticsearch的基础理论知识&#xff0c;整理了一下&#xff0c;希望能对Elasticsearch感兴趣/想了解的同学有所帮助。 同时也希望有发现内容不正确…

第13届年度Webby奖采用Silverlight / 13th Annual Webby Awards powered by Silverlight

13th Annual Webby Awards powered by Silverlight 第13届年度Webby奖采用Silverlight 原文连接&#xff1a;http://team.silverlight.net/case-study/13th-annual-webby-awards-powered-by-silverlight/ 原文分类&#xff1a;Case Study&#xff08;案例学习&#xff09; 原文…

纯C日志函数库 zlog

zlog - 纯C日志函数库 - 开源中国纯C日志函数库 zlog分享到 新浪微博腾讯微博已用 10收藏92参加 OSC 应用开发大赛&#xff0c;拿 Nexus 4 手机 星星之火&#xff0c;可以燎原zlog是一个高性能、线程安全、灵活、概念清晰的纯C日志函数库。事实上&#xff0c;在C的世界里面没…

[十二省联考2019]字符串问题 后缀自动机 + 拓扑排序 + 最长路 + 倍增

题目描述&#xff1a;给定一个长串 $S$&#xff0c;给定若干 $S$ 的子串 $a_{i}$, $b_{i}$&#xff0c;再给出一些 $a$ 串和 $b$ 串的支配关系. 构造一个长度最长的字符串&#xff0c;使得&#xff1a;字符串只由 $a_{i}$ 组成.当且仅当 $a_{i}$ 所支配的一个串 $b_{i}$ 为 $a_…

分布式事务2PC、3PC模型

工作中使用最多的是本地事务&#xff0c;但是在对单一项目拆分为 SOA、微服务之后&#xff0c;就会牵扯出分布式事务场景 文章以分布式事务为主线展开说明&#xff0c;并且针对 2PC、3PC 算法进行详细的讲解&#xff0c;最后通过一个 Demo 来更深入掌握分布式事务&#xff0c;…

c# datatable用法总结

在项目中经常用到DataTable,如果DataTable使用得当&#xff0c;不仅能使程序简洁实用&#xff0c;而且能够提高性能&#xff0c;达到事半功倍的效果&#xff0c;现对DataTable的使用技巧进行一下总结。 一、DataTable简介 (1)构造函数 DataTable() 不带参数初始化DataT…