System Global Area (SGA) Part 1: What We Will Learn in This Lecture?
The System Global Area (SGA) is a shared memory that contains data and control information for a database instance. It maintains internal data structures, caches data blocks and redo data, and stores execution plans. The SGA contains components like the shared pool for caching non-user data, the database buffer cache for caching user data blocks, and the redo log buffer for storing redo entries before writing to redo log files on disk. These components help improve performance by reducing physical I/O operations and enabling data sharing between users and processes.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
84 views6 pages
System Global Area (SGA) Part 1: What We Will Learn in This Lecture?
The System Global Area (SGA) is a shared memory that contains data and control information for a database instance. It maintains internal data structures, caches data blocks and redo data, and stores execution plans. The SGA contains components like the shared pool for caching non-user data, the database buffer cache for caching user data blocks, and the redo log buffer for storing redo entries before writing to redo log files on disk. These components help improve performance by reducing physical I/O operations and enabling data sharing between users and processes.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6
Database Instance
System Global Area (SGA) Part 1
What we will learn in this lecture?
What is System Global Area ( SGA )?
Main tasks of SGA Shared Pool Database buffer cache Redo Log Buffer
Prepared By :Khaled AlKhudari Oracle DBA
1 Database Instance A database instance is a set of memory structures and processes that manage database files
What is System Global Area ( SGA )
The SGA is a group of shared memory structures that
contain data and control information for one database instance.
Main tasks of SGA
Maintaining internal data structures that many
processes access concurrently Caching data blocks read from disk Buffering redo data before writing it to the online redo log files Storing SQL execution plans
Prepared By :Khaled AlKhudari Oracle DBA
2 Shared Pool The most important component of SGA Cache non user Data like Data dictionary ( metadata: data about data ex: DBA_tables) Shared Pool contains sub components like Data dictionary cache, library cache ,server result cache and many others Store the cached information about each SQL statement that is executed, like execution plan
Hard parse
User A Exec Plan
info User B
Select * from DEPT; Select * from DEPT;
Prepared By :Khaled AlKhudari Oracle DBA 3 Database buffer cache responsible for caching database user data. The buffer cache caches frequently accessed database data into memory. Note: The buffer cache caches blocks of data instead of individual rows ( 1 block=8 kB by default ) All users who are concurrently connected to the database share and access a single database buffer cache The buffer cache including the keep pool, recycle pool, and others
Prepared By :Khaled AlKhudari Oracle DBA
4 Redo Log Buffer circular buffer that hold information about changes made to the database designed to store redo entries (small records that reflect any changes made to the database as part of transactions or database structure changes) Note: Redo entries are used for database recovery when and if needed. the Redo Log entries in the RedoLog buffer are also written on a periodic basis to a set of files in our Oracle database storage known as Redo logs files
Redo 1
The changes are applied to the actual rows
Update statement which are cached in the buffer cache commit Prepared By :Khaled AlKhudari Oracle DBA 5 Thank You