Professional Documents
Culture Documents
ORACLE DATABASE ARCHITECTURE 1 By Mr. PRASAD MYNUMPATI 18 Years Real Time in INDIA-USA
http://www.dbatechnologies.net/
www.dbatechnologies.net Building Career With Passion
Architecture
Storage Level
What is SWAP? Swap also a type of file system on HDD, it is used by OS when Real memory usage is at
high
Each connection to UNIX operating system is process While starting up instance SGA (Memory Structures) Background Process ($ps) Background process are required to manage memory structures and database files. Some of the important background process are: DBWn, LGWR, SMON, PMON, ARCH,RECO
Instance Architecture SGA - Mandate and Optional memory structures and background processes
Large
DBWn LGWR SMON PMON
Streams Pool
CKPT RECO
ORACLE DATABASE is a combination of 3 different types of files Different types of files (C,R,D)
-Control Files -Redo log files -Data files
All database file names (data files) Location of each data file Age of each file (Checkpoint Information) Current online log sequence number Checkpoint number Backup information
DB Architecture - Data File Data Files Stores actual data permanently in ORACLE proprietary files called data files. Data files are going to be on file system like
-UNIX -EXT2 -EXT3 -NTFS (in case of windows)
Stores all changes in the form of change vectors for recovery Changes are saved to Data Files and Redo Log Files what is the
difference?
Change details
DB Architecture
Control files : minimum 1. Stores Database structural information. Recommended 3 files.
Disk1 Contro l Disk2 Contro l Disk3 Contro l
Data files : Minimum 3 from 10g. Stores data permanently for retrieval purpose.
System
Undo
Sysaux
Redo log files: Minimum -2 holds all changes in the form of changes vectors for recovery
Rego1a .log
Redo2a .log
Oracle Server
Oracle Server is the combination of Oracle Instance & Oracle database. Database access is only via Instance
SGA
Database
SP LC DDC Control Redo Data Files
DBBC
PHYSICAL
LOGICAL
INSTANCE
PHYSICAL
?
IT IS VOLATILE
NEITHER
SYSAUX TABLESPACE
UNDO TABLESPACE
TEMPORARY TABLESAPCE
DATA TABLESPACE
INDEX TABLESPACE
Users should not keep application data on SYSTEM tablespace.It is only to support base tables like. TAB$ COL$ IND$ Base Tables are created during the creation of data base to support metadata.
UNDO tablespace is to support image during DML operations Supports Read consistency Flashback operations Rollback transactions Contents of UNDO TS type is UNDO it is not permanent