0% found this document useful (0 votes)
22 views

DB Architect Query Flow

The document describes the process of a SQL update statement execution in a database. It involves connections to the database through a listener process, parsing and validation checks, using caches like the library cache and buffer cache, writing changes to redo logs, and committing transactions. Background processes help manage caches, write to files, and recover the database.

Uploaded by

abhishek singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

DB Architect Query Flow

The document describes the process of a SQL update statement execution in a database. It involves connections to the database through a listener process, parsing and validation checks, using caches like the library cache and buffer cache, writing changes to redo logs, and committing transactions. Background processes help manage caches, write to files, and recover the database.

Uploaded by

abhishek singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

USER PROCESS
5.PARSING 7 Optimizer
User application triggred a SQL
Syntax check It will create multiple execution plan
update statement
and select the best plan for execution
Connectivity with database with the Symantec check
(maximizing the speed and
help of TNS.ora file (which contain Privileges check efficiency )
the information of DB)

6 Data Dictionary cache


2.LISTENER Process The data dictionary is a collection of
At DB level Listener process database tables and views containing Data file block
(LISTENER), which is responsible for reference information about the
database, its structures, and its users Process fetch the file from data file
listening for incoming connection and place it into db buffer cache
requests and make the connectivity > Symmetric Check
with instance with help of generated > Check Metadata Default block size 8 kb
server process > Check write and execute permissions of
User

DB buffer Cache
DB PROCESS Started 5 Library cache CKPT
Server process pick the copy of data
Server process Listener try to syntax check It will collect current SCN number fro
block and place in the db buffer
connect user application to dB The library cache is a shared pool cache and mark as a lock redo log file and update in control
instance via Dedicated or shared memory structure that stores file and wake up DBWn to update
server process And if there is any update is marked the dirty block to data file header
executable SQL and PL/SQL code.
the block is called as dirty buffer

LGWR
DB instance or System Identifier 4.SHARED POOL write all redo log buffer statements
(SID)= Memory + BG processa) Redu log cache to redo log file when
a) Library cache
Memory alocation Process (SGA and All the information for DDL and DML 1/3 is full
b) Data Dictionary cache
PGA) are stored in Redo buffer
c)Optimizer Commit
Background processes (SMON,
PMON, CKPT, LGWR and DBWn 1 MB is full and log switch

You might also like