All technological notes.
Three major structures in Oracle Database server architecture:
A basic Oracle database system consists of
an Oracle database
The database consists of both
physical structureslogical structures.Because the physical and logical structures are separate, the physical storage of data can be managed without affecting access to logical storage structures.
a database instance.
The instance consists of
memory structures
System Global Area (SGA) is allocated,background processes associated with that instance.
Summary:
Architecture:
DB System:


The database has logical structures and physical structures.
Databases
database is logically divided into two or more tablespaces.Tablespaces
database is divided into logical storage units called tablespaces, which group related logical structures or data files together.
segments to simplify some administrative operations.Data Files
data files are explicitly created for each tablespace to physically store the data of all segments in a tablespace.TEMPORARY tablespace, it has a temporary file instead of a data file.A tablespace’s data file can be physically stored on any supported storage technology.
bigfile tablespaces
bigfile tablespaces, which have only one file that is often very large. The
file may be of any size up to the maximum that the row ID architecture permits.data files, but the files cannot be as large.
segments
Segments are collections of extents.
segment contains one or more extents.extent
Extents are collections of data blocks.Data Blocks
Data blocks are mapped to disk blocks.data blocks.data block corresponds to a specific number of bytes of physical space on the disk.data block size is specified for each tablespace when it is created.database uses and allocates free database space in Oracle data blocks.The size of the data block can be set at the time of database creation.
When the database requests a set of data blocks from the operating system (OS), the OS maps this to an actual file system or disk block on the storage device.
| Tablespace | Description |
|---|---|
SYSTEM |
used for core functionality. |
SYSAUX |
helps reduce the load on the SYSTEM tablespace. |
TEMP |
contains schema objects only for a session’s duration. |
UNDO |
stores the data needed to roll back, or undo, changes to the database. |
USERS |
stores user objects and data. |
SYSTEM:
data dictionary (metadata that describes the objects in the database) and tables that contain administrative information about the database.
SYS schema and can be accessed only by the SYS user or other administrative users with the required privilege.SYSAUX:
TEMP:
UNDO:
USERS:
SYSTEM.Each Oracle database must contain a SYSTEM tablespace and a SYSAUX tablespace.
bigfile tbsp
Accesibility
SYSTEM tablespace is always online when the database is open. It stores tables that support the core functionality of the database, such as the data dictionary tables.SYSAUX tablespace may be taken offline to perform tablespace recovery, whereas this is not possible for the SYSTEM tablespace.Application’s data
SYSTEM and SYSAUX tablespaces are not recommended for storing an application’s data.
instance has started on a node where Oracle Database is installed, often called the host or database server.user process. The application attempts to establish a connection to the server. (The connection may be local, client/server, or a three-tier connection from a middle tier.)listener that has the appropriate Oracle Net Services handler. The listener detects the connection request from the application and creates a dedicated server process on behalf of the user process.server process receives the statement and checks the shared pool (an SGA component) for any shared SQL area that contains an identical SQL statement.
server process retrieves any necessary data values, either from the actual data file (table) or from values stored in the database buffer cache.server process modifies data in the SGA. Because the transaction is committed, the Log Writer process (LGWR) immediately records the transaction in the redo log file. The Database Writer process (DBWn) writes modified blocks permanently to disk when it is efficient to do so.