Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

DBA - Physical Storage Architecture: Online Redo Log

Back


Online Redo Log


Use of the Online Redo Log


How Oracle Database Writes to the Online Redo Log


Online Redo Log Switches

redo_log_file_diagram

  • LGWR writes to each online redo log file.
  • The database assigns each file a new log sequence number when a log switches and log writers begins writing to it.
  • When the database reuses an online redo log file, this file receives the next available log sequence number.


Multiple Copies of Online Redo Log Files

multiple_redo_log_file_example

  • Each member in a group must be the same size.
    • group 1: 2 members, 01a,01b
    • group 2: 2 members, 02a, 02b
  • LGWR never writes concurrently to members of different groups. 每次指挥写入同一组.
    • LGWR writes concurrently to group 1, then writes concurrently to group 2, then writes to group 1, and so on.

Archived Redo Log Files


Structure of the Online Redo Log


Lab: Query redo log file


SHOW con_name

alter pluggable database all open;

select con_id,name,open_mode from v$containers;
#1	CDB$ROOT	READ WRITE
#2	PDB$SEED	READ ONLY
#3	ORCLPDB	READ WRITE
select * from v$logfile;

lab0101 lab0101


TOP