oracle 不同实例的内存,oracle 实例内存结构

转:

实例内存结构

System Global Area

The System Global Area (SGA) is a group of

shared memory structures, known as SGA components, that contain data and

control information for one Oracle Database instance. The SGA is shared

by all server and background processes. Examples of data stored in the

SGA include cached data blocks and shared SQL areas

lists the components of the SGA.

Table 5-2 SGA Components

Component

Description

Database buffer cache

Before data stored in the database can be queried or modified, it

must be read from a disk and stored in the buffer cache. All user

processes connected to the database share access to the buffer cache.

For optimal performance, the buffer cache should be large enough to

avoid frequent disk I/O operations.

Shared pool

The shared pool caches information that is shared among users:

SQL statements that can be reused

Information from the data dictionary such as user account data, table and index descriptions, and privileges

Stored procedures, which are executable code that is stored in the database

Redo log buffer

This buffer improves performance by caching redo information until it

can be written to the physical online redo log files stored on disk.

Redo information and online redo log files are discussed in .

Large pool

This optional area is used to buffer large I/O requests for various server processes.

Java pool

The Java pool is an area of memory that is used for all

session-specific Java code and data within the Java Virtual Machine

(JVM).

Streams pool

The Streams pool is an area of memory that is used by the Oracle

Streams feature. For more information about Oracle Streams, see .

Result cache

The result cache buffers query results. If a query is run for which

the results are stored in the result cache, then the database returns

the query results from the result cache instead of rerunning the query.

This SGA component speeds the execution of frequently run queries.

See Also:

for more information about the SGA

Program Global Area

A Program Global Area (PGA) is a memory region that contains data and control information for a

server process. It is nonshared memory created by Oracle Database when a

server process is started. Access to the PGA is exclusive to the server

process. There is one PGA for each server process. Background processes

also allocate their own PGAs. The total PGA memory allocated for all

background and server processes attached to an Oracle Database instance

is referred to as the total instance PGA memory, and the collection of all individual PGAs is referred to as the total instance PGA, or just instance PGA.

The amount of PGA memory used and the contents of the PGA depend on

whether the instance is running in dedicated server or shared server

mode.

The PGA is used to process SQL statements and to hold logon and other

session information. A large part of the PGA is dedicated to SQL work areas, which are working memory areas for sorts and other SQL operations.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值