Oracle体系结构及备份(五)——sga

Oracle的System Global Area (SGA)是数据库实例共享的内存结构,包括数据缓冲、重做日志缓冲等组件。SGA管理从8i的静态管理到10g的自动管理逐步发展,其大小可通过初始化参数控制。了解SGA对于优化数据库性能至关重要。
摘要由CSDN通过智能技术生成

一 什么是SGA(参考 Oracle内存结构--SGA

 

        SGA是一组为系统分配的共享的内存结构,可以包含一个数据库实例的数据或控制信息。如果多个用户连接到同一个数据库实例,在实例的SGA中,数据可以被多个用户共享。当数据库实例启动时,SGA的内存被自动分配;当数据库实例关闭时,SGA内存被回收。 SGA是占用内存最大的一个区域,同时也是影响数据库性能的重要因素。

 

 

 

        SGA区是可读写的。所有登录到实例的用户都能读取SGA中的信息,而在oracle做执行操作时,服务进程会将修改的信息写入SGA区。

 

        SGA主要包括了以下的数据结构:

 

        数据缓冲(Buffer Cache

 

        重做日志缓冲(Redo Log Buffer

 

        共享池(Shared Pool

 

        Java池(Java Pool

 

        大池(Large Pool

 

        流池(Streams Pool --- 10g以后才有)

 

        数据字典缓存(Data Dictionary Cache

 

        其他信息(如数据库和实例的状态信息)

 

        The SGA is the Oracle structure that is located in shared memory. It contains static data structures, locks, and data buffers. Sufficient shared memory must be available to each Oracle process to address the entire SGA.

 

        The maximum size of a single shared memory segment is specified by the shmmax kernel parameter.

 

        The following table shows the recommended value for this parameter, depending on the platform:

 

 

        If the size of the SGA exceeds the maximum size of a shared memory segment (shmmax or shm_max), then Oracle Database attempts to attach more contiguous segments to fulfill the requested SGA size. The shmseg kernel parameter specifies the maximum number of segments that can be attached by any process. Set the following initialization parameters to control the size of th

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值