Oracle Database Training Session Day-3
Oracle Database Training Session Day-3
• Initialization Parameters
This session delves into the key concepts of Oracle Instance and Database, focusing on memory
structures like SGA and PGA, their roles, and understanding the relationship between an instance
and a database. We also explore initialization parameters, which control the behaviour of the
database.
Definition: SGA is a shared memory region allocated by an Oracle instance that contains data
and control information for the database.
Purpose: It is used for efficient communication between processes and ensures high
performance by reducing disk I/O through caching.
Components:
2. Shared Pool:
▪ Stores parsed SQL and PL/SQL code, and data dictionary information.
▪ Temporarily stores redo entries before writing them to the redo log files.
▪ Used for large memory allocations, such as for RMAN backups and shared
server processes.
1
Program Global Area (PGA)
Definition: PGA is a private memory region allocated to each server process or background
process.
Components:
1. Session Information:
2. Sort Area:
3. Work Areas:
▪ Allocated for operations like hash joins and bitmap index scans.
▪ Automatic: pga_aggregate_target
▪ Manual: workarea_size_policy
SGA, PGA, and background processes like Datafiles, control files, redo logs, and
Components
DBWn, LGWR, etc. archive logs.
Lifecycle Exists only while the database is active. Persistent and stored on disk.
Example:
Initialization Parameters
Initialization parameters control the configuration and behaviour of the Oracle instance. These are
stored in the Parameter File and can be modified to fine-tune performance.
2
o Binary file stored on disk.
1. Memory Parameters:
2. Process Parameters:
3. Database Parameters:
5. Diagnostic Parameters:
6. Security Parameters:
o Dynamically:
3
ALTER SYSTEM SET memory_target=2G SCOPE=BOTH;
o Permanently:
SHUTDOWN IMMEDIATE;
STARTUP;
1. Startup:
2. Mounting:
3. Open Database:
Summary
• SGA and PGA are critical memory structures for Oracle operations.
• The instance is the active component managing the database stored on disk.
This knowledge lays the groundwork for managing Oracle databases effectively in real-world
environments.