Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

DBA - Architecture

Back


Architecture Overview


diagram


Logical and Physical Database Structures

logical_physical_structure

tbsp_data_file


Default Tablespaces

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.


Interacting with an Oracle Database: Memory, Processes, and Storage

architect_example_diagram

  1. An instance has started on a node where Oracle Database is installed, often called the host or database server.
  2. A user starts an application spawning a 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.)
  3. The server runs a 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.
  4. The user runs a DML-type SQL statement and commits the transaction. For example, the user changes the address of a customer in a table and commits the change.
  5. The server process receives the statement and checks the shared pool (an SGA component) for any shared SQL area that contains an identical SQL statement.
    1. If a shared SQL area is found, the server process checks the user’s access privileges to the requested data, and the existing shared SQL area is used to process the statement.
    2. If a shared SQL area is not found, a new shared SQL area is allocated for the statement so that it can be parsed and processed.
  6. The server process retrieves any necessary data values, either from the actual data file (table) or from values stored in the database buffer cache.
  7. The 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.

TOP