Oracle Architecture
Oracle Architecture
Oracle Architecture
Database Architecture
Instance
Parameter files
Control files
Data files
Redo Log files
Disk
Memory
Server
process
PGA
User process
Processes
System Monitor (SMON) :-general server housekeeping
functions.
Process Monitor (PMON) :- monitors and manages individual
user sessions .
Database Writer (DBWn) :
-writes changed data from the database buffer cache to data
files.
Log Writer (LGWR) :
-writes the redo log data from the Redo Log Buffer to the Redo
Log Files.
-Redo Log files aid in database recovery.
-keep track of the database changes whenever they are
committed
Processes (contd.)
Checkpoint (CKPT) :
-responsible for signaling DBWn and LGWR to write the
contents of the Database Buffer Cache and the Redo Log
Cache to the data files and Redo Log files respectively.
Archiver (ARCn) :
-reads the Redo Log files after they are filled & copies it to a
corresponding Archive Log File.
-there can be up to 10 separate archive processes per
instance Arc0-Arc9.
Parameter File
1
Control Files
Data Files
Provides changes to
3
Redo Log
Files
Purpose:
- specifies the configuration information about the database
instance.
1.
2.
3.
4.
5.
Data Files
Purpose:
-contain the actual data stored in the database.
-contains user data stored in tables , data dictionary etcs
Characteristics:
Control file
The control file contains the database name, data about the
database log files
Names and locations of associated data files and redo log files
The control file of an Oracle Database is created at the same time
as the database.
A control file contains information about the associated database
that is required for access by an instance, both at startup and
during normal operation. Control file information can be
modified only by Oracle Database; no database administrator or
user can edit a control file.
Purpose:
- store changes made to the database as a result of transaction and
internal Oracle activities.
Characteristics:
1. Oracle contains three redo log files. 2 files are mandatory.
2. The database will write log entries to a subsequent redo log file
when the previous redo log file fills up
3. Oracle keeps track of the Redo Log file by using a redo log
sequence number, this number is recorded inside the file as they are
used
4. If the database is in ARCHIVELOG mode full Redo Log files are copied
to Archive Log files before they are reused, otherwise they are
written over
5. Have a .log suffix
Data Structures :
Database
Instance
Tablespaces
Tablespaces
Segments
Extents
Extents
Extents
Data
Blocks
Extents
Data
Blocks
Data
Blocks
Data Blocks
Data Blocks
Structure :
Table space Logical space used
for storage
Segments - Used to organize table
space data within a table space
Data file physical file used for
storage
Extent group of contiguous
blocks
Block
unit of physical storage
Thank You.!