Skip to main content

Oracle Database Instance Architecture

 • An Oracle database server consists of at least one database instance

and a database. - A database is a set of files, located on disk, that store data. - An instance is a set of memory structures and processes that manage the

database files.

• An instance consists of a shared memory area, called the system

global area (SGA), and a set of background processes.

• For each user connection to the instance, there is a client process.

Each client process is associated with its own server process. The

server process has its own private session memory, known as the

program global area (PGA).

System Global Area (SGA) Components

• Shared Pool - Library Cache: stores executable SQL and PL/SQL code. - Data Dictionary Cache: holds info about accessed database objects

- Server Result Cache: holds result sets (not data blocks). It contains the

SQL query result cache and PL/SQL function result cache.

• Database buffer cache: the memory area that stores copies of data

blocks read from data files to optimize physical I/O.

• Large Pool: (optional) large memory allocation for buffers for RMAN,

buffers for deferred inserts, message buffers used parallel executions,

and others.

• Redo Log buffer: used to save redo entries

Buffer (Data Blocks) States

• A buffer can be in any of the following mutually exclusive states: - Unused: the buffer not been used or accessed

- Clean: this buffer was used earlier and now contains a read-consistent

version of a block as of a point in time. - Dirty: the buffer contain modified data that has not yet been written to disk











Comments

Popular posts from this blog

Oracle database single instance architecture

Oracle database single instance architecture  Maine database runs on a single machine we referred to this architecture as the Oracle database single instance architecture this setup involves having one Oracle database instance running on the mission serving its clients   The term Oracle database instance simply refers to the combination of memory structure and database process that collectively represent the database service.  However this Architectire has a significant availability risk.  If anything goes wrong with the mission that database becomes UN available.

Table spaces

 Tablespace consists of one or more data files.  A data file belongs to only one tablespace. Segments, Extents, and Blocks • Segments exist within a tablespace • Segments are made up of a collection of extents • An extents is a collection of logically contiguous data blocks - Cannot span multiple data files • Data blocks are mapped to disk blocks SYSTEM and SYSAUX Tablespaces • The SYSTEM and SYSAUX tablespaces are mandatory tablespaces. • They are created at the time of database creation. • They must be online. • The SYSTEM tablespace is used for core functionality (for example, data dictionary tables). • The auxiliary SYSAUX tablespace is used for additional database components.