Erp100论坛's Archiver

xiangzhao 发表于 2008-7-13 10:55

学习动态性能表(11)

[font=Times New Roman]Oracle Rdbms[/font][font=宋体]应用了各种不同类型的锁定机制,[/font][font=Times New Roman]latch[/font][font=宋体]即是其中的一种。[/font][font=Times New Roman]Latch[/font][font=宋体]是用于保护[/font][font=Times New Roman]SGA[/font][font=宋体]区中共享数据结构的一种串行化锁定机制。[/font][font=Times New Roman]Latch[/font][font=宋体]的实现是与操作系统相关的,尤其和一个进程是否需要等待一个[/font][font=Times New Roman]latch[/font][font=宋体]、需要等待多长时间有关。[/font][font=Times New Roman]Latch[/font][font=宋体]是一种能够极快地被获取和释放的锁,它通常用于保护描述[/font][font=Times New Roman]buffer cache[/font][font=宋体]中[/font][font=Times New Roman]block[/font][font=宋体]的数据结构。与每个[/font][font=Times New Roman]latch[/font][font=宋体]相联系的还有一个清除过程,当持有[/font][font=Times New Roman]latch[/font][font=宋体]的进程成为死进程时,该清除过程就会被调用。[/font][font=Times New Roman]Latch[/font][font=宋体]还具有相关级别,用于防止死锁,一旦一个进程在某个级别上得到一个[/font][font=Times New Roman]latch[/font][font=宋体],它就不可能再获得等同或低于该级别的[/font][font=Times New Roman]latch[/font][font=宋体]。[/font][font=Times New Roman] [/font]
[font=Times New Roman] [/font]
[font=宋体]  本视图保存自实例启动各类栓锁的统计信息。常用于当[/font][font=Times New Roman]v$session_wait[/font][font=宋体]中发现栓锁竞争时鉴别[/font][font=Times New Roman]SGA[/font][font=宋体]区中问题所在区域。[/font]
[font=Times New Roman] [/font]
[font=宋体]  [/font][font=Times New Roman]v$latch[/font][font=宋体]表的每一行包括了对不同类型[/font][font=Times New Roman]latch[/font][font=宋体]的统计,每一列反映了不同类型的[/font][font=Times New Roman]latch[/font][font=宋体]请求的活动情况。不同类型的[/font][font=Times New Roman]latch[/font][font=宋体]请求之间的区别在于,当[/font][font=Times New Roman]latch[/font][font=宋体]不可立即获得时,请求进程是否继续进行。按此分类,[/font][font=Times New Roman]latch[/font][font=宋体]请求的类型可分为两类:[/font][font=Times New Roman]willing-to-wait[/font][font=宋体]和[/font][font=Times New Roman]immediate[/font][font=宋体]。[/font]
[font=Times New Roman] [/font]
[font=Wingdings]l
[/font][font=Times New Roman]Willing-to-wait[/font][font=宋体]:是指如果所请求的[/font][font=Times New Roman]latch[/font][font=宋体]不能立即得到,请求进程将等待一很短的时间后再次发出请求。进程一直重复此过程直到得到[/font][font=Times New Roman]latch[/font][font=宋体]。[/font][font=Times New Roman] [/font]
[font=Wingdings]l
[/font][font=Times New Roman]Immediate[/font][font=宋体]:是指如果所请求的[/font][font=Times New Roman]latch[/font][font=宋体]不能立即得到,请求进程就不再等待,而是继续执行下去。[/font][font=Times New Roman] [/font]
[font=Times New Roman] [/font]
[b][font=Times New Roman]V$LATCH[/font][/b][b][font=宋体]中的常用列:[/font][/b]
[font=Wingdings]l
[/font][font=Times New Roman]NAME[/font][font=宋体]:[/font][font=Times New Roman]latch[/font][font=宋体]名称[/font]
[font=Wingdings]l
[/font][font=Times New Roman]IMMEDIATE_GETS[/font][font=宋体]:以[/font][font=Times New Roman]Immediate[/font][font=宋体]模式[/font][font=Times New Roman]latch[/font][font=宋体]请求数[/font]
[font=Wingdings]l
[/font][font=Times New Roman]IMMEDIATE_MISSES[/font][font=宋体]:请求失败数[/font]
[font=Wingdings]l
[/font][font=Times New Roman]GETS[/font][font=宋体]:以[/font][font=Times New Roman]Willing to wait[/font][font=宋体]请求模式[/font][font=Times New Roman]latch[/font][font=宋体]的请求数[/font]
[font=Wingdings]l
[/font][font=Times New Roman]MISSES[/font][font=宋体]:初次尝试请求不成功次数[/font]
[font=Wingdings]l
[/font][font=Times New Roman]SPIN_GETS[/font][font=宋体]:第一次尝试失败,但在以后的轮次中成功[/font]
[font=Wingdings]l
[/font][font=Times New Roman]SLEEP[x][/font][font=宋体]:成功获取前[/font][font=Times New Roman]sleeping[/font][font=宋体]次数[/font]
[font=Wingdings]l
[/font][font=Times New Roman]WAIT_TIME[/font][font=宋体]:花费在等待[/font][font=Times New Roman]latch[/font][font=宋体]的时间[/font]

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2007 Comsenz Inc.