Oracle DBA On Unix and Linux: Michael Wessler
Oracle DBA On Unix and Linux: Michael Wessler
Michael Wessler
Background Processes
PMON SMON DBWR LGWR CKPT ARCH RECO SNPnn QMNnn
Unix Server
Oracle File Types= Physical Database Files + Software Files + Database Parameter/ Log Files
Data
init.ora Redo
config.ora Redo1a.rdo Redo1b.rdo Redo2a.rdo Redo2b.rdo
alert.log
Redok03a.r
Redo3b.rdo Redo4a.rdo Redo4a.rdo
do
Data Files
• Data files store the information accessed by the
database. There are five categories of data files, each
distinguished by the type of information it stores.
• Data files are physical objects, but they are organized
logically within the database as tablespaces. One or
more of the same type of data file compose a logical
tablespace.
System
• System data file is stored in the data dictionary, which is
a read-only collection of tables and views owned by the
user SYS. And it contains relational tables containing
internal database information of both a physical and
logical nature.
• If the system data file becomes damaged or lost, the
database will crash immediately and require recovery. If
the system data file is lost, the database is rendered
useless.
• The system data file typically ends with a dbf suffix.
Index
• Tables are created in data files and hold actual data.
And that data can be indexed to provide faster access.
• If you lose an index file, the database will still continue to
operate, but the associated loss of performance and
some index-dependent operations may render the
database useless from a business perspective.
• Each index file may contain indexes from multiple tables.
It typically ends with a idx suffix.
Blocks Cycle Through List Based on State and Usage Shared Pool
Large Pool
Mid-Point Insertion
For 8i and above
) Dirty List
Server
Insert blocks at end DWBR Process Insert blocks at head of LRU list
For Full Table Scans
Dispatcher
PGA/UGA Under Dedicated Server Configuration
PGA PGA
Stack Space Stack Space PGA PGA
UGA UGA •Stack Space •Stack Space
•User Session Data •User Session Data
•Memory Sorts •Memory Sorts
•Cursor Info •Cursor Info
User User
User User
Server Process
PGA 5
Redo1.rdo Rollback Index Data
UGA 6
19 17
3
2 Listener
15 10 15 16 10 16 9 16 4
1
User Process User at PC