Oracle Database Architecture: Rishij Raj Srivastava / 16 - 10-2024
Oracle Database Architecture: Rishij Raj Srivastava / 16 - 10-2024
1)Key Components:
- Memory Management
- Background Processes
2)Client-Server Model:
Multiple clients can connect to the server, and Oracle uses memory and background processes to manage
these connections and data efficiently.
Oracle Architecture
1. Oracle Instance: Memory structures (SGA, PGA) and background processes.
Components:
2. Program Global Area (PGA): Private memory for each server process.
Key Components:
- Session Information: Contains data for user sessions.
- System Monitor (SMON): Handles crash recovery and frees temporary segments.
Additional Processes:
- Checkpoint Process (CKPT): Ensures data consistency.
2. Control Files: Store metadata about the database, such as the locations of data files and redo log files.
- Database name and timestamp.
3. Redo Log Files: Record all changes made to data within the database for recovery purposes.
- Consist of multiple groups and each group contains at least two members for redundancy
4. Parameter Files (PFILE/SPFILE): Store initialization parameters that dictate how the instance is configured.
- PFILE: Editable text file.
3. Extents: Continuous blocks of storage within a tablespace that are allocated to segments.
- A segment consists of one or more extents.
- Server Action : Data is inserted into the database buffer cache. Redo logs are generated. The Database Writer DBWn eventually writes the changes to
data files.
- Server Action : Data is retrieved from the database buffer cache if available; otherwise, it is fetched from data files.
- Server Action : Data is modified in the buffer cache. Redo log entries are created. Data changes are written to disk by DBWn during a checkpoint
- Server Action : Rows are marked for deletion. Redo logs are generated for recovery. Changes are committed to disk.
Conclusion
- Oracle's architecture integrates memory management, background processes, and data structures to ensure smooth
operation, scalability, and performance.
- SGA and PGA manage memory efficiently to optimize resource usage.
- Processes like DBWn and LGWR handle data consistency and enable recovery.
- Data files, redo logs, and tablespaces store and organize data efficiently.
- Oracle is a reliable solution for large, complex applications.