Professional Documents
Culture Documents
• Oracle databases
• Oracle Application Server
• Oracle Applications
• Oracle Collaboration Suite
• Oracle Developer Suite
• Oracle services
• Low cost
• High quality of service
• Easy to manage
Storage Database Application Grid
grid grid grid control
An Oracle server:
• Is a database management system that provides
an open, comprehensive, integrated approach to
information management
• Consists of an Oracle instance and an Oracle
database
Process structures
Background processes
Server Server
Background
process PGA process PGA PGA
process
1 2
SGA
Instance
PGA
SGA
User process Server
process
Background
processes
SGA Buffers:
Server
process • Pinned
Database
buffer cache • Clean
• Free or
unused
• Dirty
DBWn
Data files
USERS tablespace
Logical Physical
Database
Segment
Extent
Oracle data
OS block
block
SYSTEM INVENTORY
tablespace tablespace
LOCATIONS
LOCATION_ID (PK)
STREET_ADDRESS
JOB_HISTORY DEPARTMENTS POSTAL_CODE
EMPLOYEE_ID DEPARTMENT_ID (PK) CITY
(PK,FK)
DEPARTMENT_NAME STATE_PROVINCE
START_DATE (PK)
EMPLOYEES MANAGER_ID COUNTRY_ID (FK)
END_DATE
EMPLOYEE_ID (PK) LOCATION_ID (FK)
JOB_ID (FK)
FIRST_NAME
DEPARTMENT_ID (FK)
LAST_NAME
EMAIL
COUNTRIES
COUNTRY_ID (PK)
PHONE_NUMBER
COUNTRY_NAME
HIRE_DATE
REGION_ID (FK)
JOB_ID (FK)
SALARY
COMMISION_PCT JOBS
MANAGER_ID (FK) JOB_ID (PK)
JOB_TITLE
REGIONS
DEPARTMENT_ID (FK)
REGION_ID (PK)
MIN_SALARY
REGION_NAME
MAX_SALARY
• Memory structures:
– System Global Area (SGA): Database buffer cache,
redo buffer, and various pools
– Program Global Area (PGA)
• Process structures:
– User process and Server process
– Background processes: SMON, PMON, DBWn,
CKPT, LGWR, ARCn, and others
• Storage structures:
– Logical: Database, schema, tablespace, segment,
extent, and Oracle block
– Physical: Files for data, parameters, redo, and OS
block
1-23 Copyright © 2005, Oracle. All rights reserved.
Database Architecture and Activities
Example Instance
SGA
Database files
spfileorcl.ora
CONNECT / AS SYSDBA
STARTUP
Checkpoint Archiver
(CKPT) (ARCn)
Data files
Checkpoint
(CKPT)
• Is an optional SGA
background process Redo log
• Automatically archives buffer
online redo log files
when ARCHIVELOG mode
is set for the database
LogWriter
• Preserves the record of (LGWR)
all changes made to the
database
Archiver
(ARCn)
Other
processes
System
Monitor
(SMON)
Instance
PGA Process SGA
Monitor
User process Server (PMON)
process Other
processes
Checkpoint Archiver
(CKPT) (ARCn)
1 Instance
Starting a database instance
Establishing a connection SGA
Database
3 Server LogWriter
Writer
process (LGWR)
2 (DBWn)
User process
SGA
Processing a SQL statement
5 7 Database Redo log
buffer cache buffer
Database
Server LogWriter
Writer
10 process (LGWR)
(DBWn)
User process 9
8
6