Академический Документы
Профессиональный Документы
Культура Документы
Programmers
Users
DBA
Application
Programs
Queries
Database
Schema
DML
preprocessor
Query
processor
DDL
compiler
Program
object code
Database
manager
Dictionary
manager
Access
methods
File
manager
System
buffers
Database and
system catalog
DBMS
Command
processor
Query
optimizer
Transaction
manager
Scheduler
Buffer
manager
Recovery
manager
Data
Manager
DML
SELECT
INSERT
UPDATE
DELETE
DDL
CREATE(DROP) SCHEMA
CREATE(ALTER, DROP) DOMAIN
CREATE(ALTER, DROP) TABLE
CREATE(DROP) VIEW
CREATE(DROP) INDEX
SMON
D000
RECO
S000
Redo Log
Buffer
SGA
Shared SQL Area
P000
TL-812
4,000,000 KByte
Server
1,200,000 KByte
DBW0
CKPT
Data File
Raw Device
USER
2,100 KByte
LGWR
ARCH
Archive Log Mode(50M)
Dictionary
Cache
Shared
SQL Area
PL/SQL Procedures
and Package
Control Structures
for examples;
Locks
Library
Cache handles
and so on ...
Control Structures
for example:
Character Set
Conversion
Memory
Network Security
Attributes
and so on ..
Reusable
Runtime
Memory
Library Cache
Dictionary Cache
SHARED_POOL_SIZE
SGA
Shared Pool
Shared SQL
Area
LOG_BUFFER
change vector #1
redo record
change vector #1
change vector #1
Oracle Processes
SNPn
SMON
PMON
Pnnn
RECO
SGA
Database Buffer Cache
Snnn
Redo Log
Buffer
Offline
Storage
Device
Dedicated
Server
Process
DBWR
Dnnn
LCK0
User
Process
LGWR
ARCH
CKPT
Control
Files
Users
Data
Files
Redo Log
Files
Background Process
DBWR
(Database Writer)
LGWR
(Log Writer)
- A commit confirmation is not issued until the tx has been recorded in the rego
log file
Contd
PMON
(Process Monitor)
SMON
(System Monitor)
Contd
CKPT (Check
Point)
(Archiver)
Server/User Process
User Processes
- A user process is used when a user runs an application program
- Runs the tool/application and is considered the client
- Passes SQL to the server process and receives the results
Server Processes
- A server process must place the data in the database buffer cache
- Parce and execute SQL statements
- Read data blocks from disk into the shred database buffers of the SGA
- Return the results of SQL statements to the user process
Parse : check syntax, security access, object resolution, optimization
Execute : applies the parse tree to the data, perform a physical read and
change
Fetch : Passes data to the user (only SELECT)
Oracle Files
Datafile
Control Files
Parameter File
Archive File
Trace File
Storage Architecture
Segment
96K
Extent
Extent
24K
72K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
Database Blocks
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
2K
Database
System Tablespace
DATA1.ORA
DATA2.ORA
USER Tablespace
DATA3.ORA
Contd
Table
INDEX
INDEX
Table
INDEX
INDEX
INDEX
INDEX
INDEX
INDEX
INDEX
INDEX
Table
Database Files
Objects
Block
Header
Table Dictionary
Row Dictionary
Free Space
Row Data
using when New Row
Insert or Update
(pctfree, pctused)
Table or Index Data
PCTFREE / PCTUSED
PCTFREE
PCTFREE
PCTUSED
PCTUSED
PCTUSED = 40
PCTFREE = 20
Extent
A set
Extent
Extent
Each
( Rollback segment : 2)
ALTER TABLE
Segment
a set of one or more extents that contains all the data for a specific type of logical storage
structure within a tablespace
Data Segment
- A collection of extents that holds all of the data for a table or a cluster
Index Segment
- A collection of extents that holds all of the index data for search optimization on large tables
and clusters
Rollback Segment
- A collection of extents that holds rollback data for rollback, read-consistency, or recovery
Temporary segment
- A collection of extents that holds data belonging to temporary tables created during a sort
operation
Bootstrap segment
- An extent that contains dictionary definitions for dictionary tables to be loaded when the
database is opened.