Académique Documents
Professionnel Documents
Culture Documents
Oracle Server
Oracle Server is the combination of Oracle Instance and Oracle Database. Oracle Instance is consist of SGA (Shared Global Area) and some Background processes. Oracle Database consist of three file types, Data files, Control files, and Redo log files.
Oracle Server
Oracle Database
Oracle Instance
Connection Processes
During connection to Oracle Server using SQL *Plus, Developer, Report, etc, a User Process is created.
User Process then connect to the Server Process. The Server Process check the user privileges and then connect to the Oracle Server. Note: The User Process cannot directly interact with Oracle Server.
Server Process
Oracle Server
User Process
Instance
Shared Pool
Library Cache Database Data Dict Buffer Cache Redo log Buffer Cache
LGWR: Log writer writes blocks in the Redo log files from Redo log Buffer Cache.
PMON: Process Monitor cleans up after failed processes.
SGA
Cache
PMON
SMON
CKPT
DBWR
LGWR
Data Files
Undo Segment
Control Files
Database
Shared Pool
1. Library Cache stores information about the most recently used SQL and PL/SQL statements.
Instance
Shared Pool
Library
SGA
2. Data Dictionary Cache is a collection of the most recent used definition in the database.
Cache
Data Files
Control Files
Database
Instance SGA
Database Buffer Cache
DBWR process writes the modified records in the Data files from Database Buffer Cache. Check point is just like a buzzer, Check point force DBWR to write the data from cache to files.
CKPT
DBWR
Data Files
Database
Instance SGA
Redo log Buffer Cache
LGWR
Undo Segment stores changed records. After ROLLBACK, the previous data come from undo segment to the Database buffer cache.
Data Files
Undo Segment
Database
SGA
User Process
Data Dict
Buffer Cache
Cache
PMON
SMON
CKPT
DBWR
LGWR
Prepare Execution plan. In fetchstatement syntax. Check statement syntax. Check stage Oracle collect the rows and return selection, In case of checking. Privilegesprocess Privileges checking. to the user simple execute. Execution plan checking Execution plan checking
Emp
Control Files
Database
SGA
Emp Table
Database Redo log Buffer Cache
User Process
Phases Parse
Data Dict
Execute
Prepare execution plan. In this case, Oracle locks the rows which are effected.
Cache
PMON
SMON
CKPT
DBWR
LGWR
ROLLBACK; Update from COMMIT; emp set sal = 2000 where deptno = 10;
Data Files
Undo Segment
Control Files
Database
SGA
Emp Table
Database Redo log Buffer Cache
User Process
Data Dict
20Buffer & 30
Cache
Scott 1
Cache
Scott 2
Update from emp set sal = 2000 where deptno = 10;
Data Files
Undo Segment 10
Control Files
Database
SGA
Emp Table
User Process
Data Dict
Buffer Cache
Cache
PMON
SMON
CKPT
DBWR
LGWR
Data Files
Undo Segment
Control Files
Database
SGA
Emp Table
User Process
Data Dict
Buffer Cache
Cache
PMON
SMON
CKPT
DBWR
LGWR
Commit;
Data Files
Undo Segment
Control Files
Database
**************************************************
**************************************************
**************************************************
*************************************************
Questions