内存架构


一:Oracle 数据库内存结构简介

image


1:基本内存结构

与Oracle数据库相关联的基本内存结构包括:

  • 系统全局区 System global area (SGA)

image


  • 程序全局区  Program global area (PGA)

image


  • 用户全局区  User Global Area (UGA)

image


  • 软件代码区  Software code areas

image

image


2:Oracle 数据库内存管理

image

  • 自动内存管理(Automatic memory management )

image


  • 自动共享内存管理 (Automatic shared memory management)

image


  • 手工内存管理(Manual memory management)

image



二:用户全局区概述

image

image


三:程序全局区概述

image

image

image


1:PGA 的内容

image

  • 私有SQL区

image

image

  • 私有SQL区又分为以下几个区域:
  •   运行时区域

image


  •   持久区域

image


  • SQL工作区 

image


     

      2:在专用和共享服务器模式中使用PGA

    image



    四:系统全局区概述

    image

    1:数据库缓冲区高速缓存(Database Buffer Cache)

    image

    Oracle 数据库使用缓冲区高速缓存,来实现以下目标:

    • 优化物理I/O

    image


    • 将频繁访问的块保持在Database Buffer Cache 中,将不常存取的块写到磁盘



    缓冲区状态:

    image

    • 未使用的(Unused)

    image


    • 干净的(Clean)

    image


    • 脏的(Dirty)

    image

    image




    缓冲模式:

    imageimage

    • 1)当前模式  Current mode

    image


    • 2)一致模式 Consistent mode

    image


















    ————————————————————————————————————————————————————————————————

    猜你喜欢

    转载自www.cnblogs.com/ios9/p/8964607.html