关于数据库:Oracle-Event-PlaceHolder-Event-和-Fixedup-Event

13次阅读

共计 1294 个字符,预计需要花费 4 分钟才能阅读完成。

从 Oracle 10g 开始,RAC 相干期待事件引入了从属关系。某些事件表演 ”Placeholder” 角色,而另一些事件表演 ”Fixed-up” 角色。

“Placeholder” 事件是指过程在全局资源(即数据块)” 获取过程中 ” 期待的事件。“Fixed-up” 事件示意记录过程 ” 获取之后 ”,表明数据块的获取办法的事件。

必须留神的是,” 获取过程中 ” 和 ” 获取之后 ” 之间的视角差别决定了 “Placeholder” 事件和 “Fixed-up” 事件的作用。例如,在统一读取(CR)模式下向近程节点申请特定块的过程将期待 ”gc cr request”(Placeholder),直到该块被收到。如果收到理论块作为申请的后果,则最终报告将期待 ”gc cr block 2-way”(Fixed-up)。也就是说,”Placeholder” 事件将更改为特定的 ”Fixed-up” 事件,这取决于过程取得的后果。

“Placeholder” 和 “Fixed-up” 事件零碎中的另一个注意事项是监督办法。“Placeholder” 事件在 ” 获取过程中 ” 察看到,因而在提供以后期待信息的 V$SESSION_WAIT 视图中察看到。此外,如果尚未更改为 ”Fixed-up” 事件,V$SESSION_EVENT 视图中也会察看到。另一方面,因为 ”Fixed-up” 事件在 ” 获取之后 ” 察看到,因而在 V$SESSION_WAIT 视图中不能被察看到,仅在 V$SESSION_EVENT 或 V$SYSTEM_EVENT 视图中能够被察看到。因而,如果查问 V$SYSTEM_EVENT 视图,则仅能察看到 ”Fixed-up” 事件,如 “gc cr block 2-way”,而不能察看到 ”Placeholder” 事件,如 “gc cr request” 事件。

“Placeholder” 和 “Fixed-up” 事件是仅用于群集类的期待事件,是 Oracle 10g 之前的版本中基本不应用的概念。

 ・ "Placeholder" 事件
    ・ gc cr request
    ・ gc current request


・ "Fixed-up" 事件
    ・ Block-oriented
        ・ gc cr block 2-way
        ・ gc cr block 3-way
        ・ gc current block 2-way
        ・ gc current block 3-way

    ・ Message-oriented
       ・ gc cr grant 2-way
       ・ gc current grant 2-way

    ・ Contention-oriented
        ・ gc cr block busy
        ・ gc cr grant busy
        ・ gc current block busy
        ・ gc current grant busy

    ・ Load-oriented
        ・ gc cr block congested
        ・ gc cr grant congested
        ・ gc current block congested
        ・ gc current grant congested

    ・ Miscellaneous
        ・ gc cr block lost
        ・ gc current block lost

・独立事件
    ・ gc cr multi block request
    ・ gc current multi block request
    ・ gc buffer busy
正文完
 0