Oracle RAC DBA Training :DBA Technologies
Oracle RAC DBA Training :DBA Technologies
Oracle RAC DBA Training :DBA Technologies
www.dbatechnologies.net
www.dbatechnologies.net Building Career With Passion
FS consistency (fsck)
Database (C,R,D files) is located on high end storage solutions like SAN with fiber optic technology. Process power and memory for all Database operations are from server resources
DBWn : Writes dirty buffers from Instance Buffer Cache to DBF files
DATABASE SHARED POOL Redo buffers
USER DATAFILE
Dbf file Blocks : (Storage) Default Block Size 8K Non default supported block sizes: 2k,4k,16k,32k
Pinned Buffers
Dirty Buffers
Modified in buffer cache(memory) that are not yet written to data files (storage)
Free Buffers
Ready to use
Pinned Buffers
Buffers that are in use by Oracle
Dirty buffers threshold When required free buffers are not available During graceful/consistent shutdown Any TS status change like (read only, offline or Tablespace Begin backup..) Checkpoint
Current (In use) Active (Required for recovery ) Inactive (Ready to be current)
Redo log files Log Switch
LGWR
Server Process copy redo records from user memory space (PGA) to redo log buffers for every DML and DDL LOG_BUFFER is the parameter to set redo log buffers size. Min 64k. Log buffer space (v$session_wait) wait event(in seconds) indicates insufficient log buffers size
V$system_event - log file switch completion (event,total_waits, time_waited and average_wait) Alert log file also records the above event check for checkpoint not complete Highly recommended multiplexing
Data file 1
723 723 723
723
723
Control file
Data file 2
Checkpoint position (SCN) in redo is the pointer where recovery must start from Checkpoint ensures all the dirty buffers to disk (LRU & MRU) Checkpoint position is the oldest dirty buffer in the database buffer cache
Types of checkpoint
(database checkpoint) Database writes to disk all buffers modified by redo in a specific thread, occurs during the following situations
Consistent database shutdown Alter system checkpoint Online redo log switch Alter database begin backup
Thread checkpoint :
Types of checkpoint
Types of checkpoint
Incremental checkpoints
It is kind of thread checkpoint in order to avoid large number of blocks at online redo log switches.
DBWn checks every 3 seconds to check any work to do, if DBWn writes dirty buffers, it advances the checkpoint position to the control file but not the data file headers
Types of checkpoint
Incremental checkpoints
It is kind of thread checkpoint in order to avoid large number of blocks at online redo log switches. DBWn checks every 3 seconds to check any work to do, if DBWn writes dirty buffers, it advances the checkpoint position to the control file but not the data file headers
ICR - SMON
SMON SHARED POOL DATABASE BUFFER CACHE AFTER CRASH INSTANCE STARTUP
245
245
RECO User
RECO
User Process
SQL> Select * from employees; data file Execution Row source generation
soft
Multiple EPs
User Process
Rows u pdated
SHARED POOL
REDO BUFFERS
Undo data file User data file Execution Row source generation
soft
Multiple EPs