Dbam 02
Dbam 02
Dbam 02
Database
Administration & Management
Lecture 02
• Each oracle database must have at least two redo log files.
• Oracle reuses them in circular fashion; when one is filled the CURRENT
log file is marked as ACTIVE, if it is needed for instant recovery.
• Archivelog mode sends filled redo log files to specified destinations that
can be used later to reconstruct database if database media failure
occurs.
• Control Files:
• Maintains metadata of database.
• Every oracle database has at least one control file.
Memory Structures
13/02/16
• Instance:
• A set of memory structures that manage database files.
• Instance can exist without database and database can exist without
instance.
• Shared Pool.
• Large Pool.
• Java Pool.
13/02/16
• Shared by all users, thus many users can share same SQL statement.
• Large Pool:
• Is an optional area of SGA.
• Having large blocks of memory.
• A dynamic parameter with initialization parameter LARGE_POOL_SIZE.
• Used for transactions that interact with more than one database; for
processing parallel queries, RMAN parallel backups and restore
operations.
Processes
13/02/16
Processes
Processes execute series of steps, or perform a specific task in
Oracle.
• User Processes.
• Oracle Processes.
Processes
• User Process:
Processes
• Oracle Process:
• Invoked by any other process to perform specific functions on behalf of
invoking process.
• Two subtypes; server process and background processes
• Server Process:
• Directly interacts with Oracle server.
• Can be dedicated or shared server.
• Server processes communicate with user processes acting as a “relay” between the
user process and SGA information.
Processes
Server
process
Connection
established Session created
User Oracle server
process
Database user
• Oracle Processes:
• Background Processes:
• Perform designated data management and processing functions for
Oracle instance.
13/02/16
Processes
• Background Processes:
• Process Monitor (PMON) performs cleanup duties (cleaning up cache,
releases locks etc.)
• System Monitor (SMON) provides instant recovery during startup.
• Database Writer (DBWR) writes data from data cache to physical disk
files.
• Log Writer (LGWR) managing the redo log buffer.
• Recover (RECO) automatically resolves failures involving distributed
transactions.
• Archiver (ARCn) copies redo log files to destination directories if
ARCHIVELOG mode is enabled.
• Checkpoint (CKPT) helps to reduce the amount of time required for
instant recovery.
Password
file Database