chap05-info366.ppt

Oracle9i Database Administrator: Implementation and Administration 1
Chapter 5
The Redo Log Files
Oracle9i Database Administrator: Implementation and Administration 2
Objectives
 Learn to describe redo log files,
groups, and members
 Manage redo log groups and
members
Oracle9i Database Administrator: Implementation and Administration 3
Introduction to Online
Redo Log Files
Online redo log files store details as
the database is used including:
 Checkpoints
 Data Changes (DML)
 Structural changes (DDL)
 Data file changes
Oracle9i Database Administrator: Implementation and Administration 4
Oracle9i Architecture: A Typical Server
Oracle9i Database Administrator: Implementation and Administration 5
Introduction to Online
Redo Log Files
Components:
•Redo log group
•Online redo log
file or member
•Archived redo
log file
•ARCn
Oracle9i Database Administrator: Implementation and Administration 6
Introduction to Online
Redo Log Files
Components:
•Redo log buffer
•LGWR
•CKPT
Oracle9i Database Administrator: Implementation and Administration 7
Introduction to Online
Redo Log Files
File 1 is written to
File A by the
ARCn process
after the log
switch is
complete
Oracle9i Database Administrator: Implementation and Administration 8
Introduction to Online
Redo Log Files
File 1 and File 3
are written to by
the LGWR
process
simultaneously
until both are full
Oracle9i Database Administrator: Implementation and Administration 9
The Purpose of Redo Log Files
Redo log files aid in recovery from short term
data loss such as brief power outage:
 Store changes that may not be written to the
data files yet
 Store checkpoints to allow recovery to
resynchronize data files with correct changes
 Cannot completely handle recovery from
major loss such as an entire data file
Oracle9i Database Administrator: Implementation and Administration 10
The Purpose of Redo Log Files
Recovery procedures (overview):
Prior to failure:
 Perform full database backup regularly
 Run database in ARCHIVELOG mode
After failure:
 Restore from full backup
 Apply archived redo log files (oldest to newest)
 Apply online redo log file
Oracle9i Database Administrator: Implementation and Administration 11
The Structure of Redo Log Files
Redo log buffer is flushed to the redo log
file when:
 A transaction COMMITS
 The redo log buffer becomes 1/3 full
 The redo log buffer contains >1 M of
updated records
 A checkpoint occurs
Oracle9i Database Administrator: Implementation and Administration 12
The Structure of Redo Log Files
Redo log file components:
 Redo record (also called redo entry)
 Relates to one data block
 Made up of one or more change vectors
Oracle9i Database Administrator: Implementation and Administration 13
Managing Redo Log Files
The COMMIT
command tells
the database to
log the
changes to the
redo log file
Oracle9i Database Administrator: Implementation and Administration 14
Log Switches and Checkpoints
 To manually signal a log switch:
ALTER SYSTEM SWITCH LOGFILE;
 A log switch triggers a checkpoint
 Checkpoint is a signal to write all dirty
buffers to the appropriate files
 Checkpoint increments the System
Change Number (SCN)
Oracle9i Database Administrator: Implementation and Administration 15
Log Switches and Checkpoints
How the SCN is used:
 SCN is recorded in the redo log buffer
 SCN is recorded in the header of each
data file that was written to
 During recovery, SCN of each datafile is
compared to the SCN in the redo log file
 If a match, the data file is up to date
 If redo log file has higher SCN, changes are
reapplied to the data file from the redo log file
Oracle9i Database Administrator: Implementation and Administration 16
Multiplexing and Other
Maintenance
 Multiplexed redo log files requires multiple
members in each group
 A log group continues to function as long as
it has at least one good member
 If all members of the current group become
damaged, the database forces a log switch
 The database shuts down immediately if a
log switch fails
Oracle9i Database Administrator: Implementation and Administration 17
Adding a Member to a Group
 Add members to groups while the database is
running
 Do not specify SIZE because new members
are automatically assigned the same size as
other members in the group
 Command syntax:
ALTER DATABASE ADD LOGFILE MEMBER '<X:xxx><filename>'
TO GROUP <n>;
Oracle9i Database Administrator: Implementation and Administration 18
Adding a New Group
 Add a new group while the database is
running
 Specify SIZE and group number
 List all members to be created with the
group (must be at least one)
 Command syntax:
ALTER DATABASE ADD LOGFILE GROUP <n>
( '<X:xxx><filename>', '<X:xxx><filename>')
SIZE <n>;
Oracle9i Database Administrator: Implementation and Administration 19
Renaming or Moving
a Redo Log File
 Must be done while the group is not
ACTIVE
 Steps:
1. Shut down the database:
SHUTDOWN IMMEDIATE
2. Rename or relocate files using the operating
system
3. Mount the database
STARTUP MOUNT
Oracle9i Database Administrator: Implementation and Administration 20
Renaming or Moving
a Redo Log File
 Steps (continued):
4. Inform database of changed file name:
ALTER DATABASE
RENAME FILE '<X:xxx><oldfilename1>',
'<X:xxx><oldfilename2>'
TO '<X:xxx><newfilename1>',
'<X:xxx><newfilename2>';
5. Open the database:
ALTER DATABASE OPEN;
Oracle9i Database Administrator: Implementation and Administration 21
Dropping Redo Log Members
or Groups
Reasons for dropping members or
groups:
 Bad disk, so must recreate member
 Tuning recommendation calls for
reducing members or groups
 Corrupted members can be deleted
and replaced later
Oracle9i Database Administrator: Implementation and Administration 22
Dropping Redo Log Members
or Groups
 Rules when dropping redo log members:
 Each group must have at least one member
 The group affected must not be ACTIVE and (if in
ARCHIVELOG mode) must be archived
 Rule when dropping groups:
 Database requires at least two groups
 The group affected must not be ACTIVE and (if in
ARCHIVELOG mode) must be archived
Oracle9i Database Administrator: Implementation and Administration 23
Dropping Redo Log Members or
Groups
Steps to drop redo log member:
1. Query V$LOG to confirm that group is
inactive
2. Drop redo log member:
ALTER DATABASE DROP LOGFILE MEMBER
'<X:xxx><filename>';
3. Delete associated file in the operating
system
Oracle9i Database Administrator: Implementation and Administration 24
Dropping Redo Log Members or
Groups
Steps to drop redo log group:
1. Query V$LOG to confirm that group is
inactive: SELECT * FROM V$LOG;
2. Drop redo log group:
ALTER DATABASE DROP LOGFILE GROUP <n>;
3. Delete associated file(s) in the operating
system
Oracle9i Database Administrator: Implementation and Administration 25
Dropping Redo Log Members or
Groups
Additional notes:
 If group is ACTIVE, force log switch:
ALTER SYSTEM SWITCH LOGFILE;
 If group still active, force checkpoint:
ALTER SYSTEM CHECKPOINT;
 An alternative to dropping a corrupt group and
recreating the members:
ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP <n>;
Oracle9i Database Administrator: Implementation and Administration 26
Archiving a Redo Log Group
Advantages of archiving redo log groups:
 Point-in-time recovery to a point earlier
than online redo log files contain
 The ability to query archived log files with
LogMiner
 The ability to set up and maintain a
standby database
Oracle9i Database Administrator: Implementation and Administration 27
Finding Redo Log Information in
Data Dictionary Views
States of a redo log group:
 UNUSED
 CURRENT
 ACTIVE
 CLEARING
 CLEARING_CURRENT
 INACTIVE
Oracle9i Database Administrator: Implementation and Administration 28
Viewing Control File Data
Oracle9i Database Administrator: Implementation and Administration 29
Chapter Summary
 Redo log files primarily contain information on
database changes
 A database has at least two redo log groups
 A redo log group has at least one member
 Redo log files support automatic recovery
from minor failures
 A redo log group with multiple files is
multiplexed
Oracle9i Database Administrator: Implementation and Administration 30
Chapter Summary
 The SCN is incremented at a checkpoint
 Maintenance you can do with redo log files
and groups:
 Add a new file (member) to a group
 Add a new group
 Rename or relocate a member
 Drop a member
 Drop a group
 Clear a group
Oracle9i Database Administrator: Implementation and Administration 31
Chapter Summary
 Placing a database in ARCHIVELOG
mode causes redo log files to be
archived after a log switch
 Many initialization parameters set the
behavior of the archiving function
 The V$LOG and V$LOGFILES dynamic
performance views display information
about redo log groups and members
1 sur 31

Recommandé

Les 06 Perform Rec par
Les 06 Perform RecLes 06 Perform Rec
Les 06 Perform Recvivaankumar
1.4K vues50 diapositives
Less16 Recovery par
Less16 RecoveryLess16 Recovery
Less16 Recoveryvivaankumar
1K vues22 diapositives
Less14 Br Concepts par
Less14 Br ConceptsLess14 Br Concepts
Less14 Br Conceptsvivaankumar
968 vues30 diapositives
8 i recovery_manager par
8 i recovery_manager8 i recovery_manager
8 i recovery_managerAnil Pandey
517 vues11 diapositives
App D par
App DApp D
App DSudharsan S
644 vues30 diapositives
Les 06 rec par
Les 06 recLes 06 rec
Les 06 recFemi Adeyemi
399 vues23 diapositives

Contenu connexe

Similaire à chap05-info366.ppt

Capitulo 01 Dba 2 par
Capitulo 01 Dba 2Capitulo 01 Dba 2
Capitulo 01 Dba 2Julio Pari
624 vues20 diapositives
Ensuring Data Protection Using Oracle Flashback Features - Presentation par
Ensuring Data Protection Using Oracle Flashback Features - PresentationEnsuring Data Protection Using Oracle Flashback Features - Presentation
Ensuring Data Protection Using Oracle Flashback Features - PresentationPini Dibask
1.3K vues58 diapositives
Oracle database hot backup and recovery par
Oracle database hot backup and recoveryOracle database hot backup and recovery
Oracle database hot backup and recoveryArun Sharma
108 vues31 diapositives
[Altibase] 13 backup and recovery par
[Altibase] 13 backup and recovery[Altibase] 13 backup and recovery
[Altibase] 13 backup and recoveryaltistory
827 vues21 diapositives
Oracle Database Administration 11g Course Content par
Oracle Database Administration 11g Course ContentOracle Database Administration 11g Course Content
Oracle Database Administration 11g Course ContentOnline Oracle RAC and APPS DBA Training
127 vues6 diapositives
Missing redo logs in oracle par
Missing redo logs in oracleMissing redo logs in oracle
Missing redo logs in oracleBolisetty Srinivas
282 vues4 diapositives

Similaire à chap05-info366.ppt(20)

Capitulo 01 Dba 2 par Julio Pari
Capitulo 01 Dba 2Capitulo 01 Dba 2
Capitulo 01 Dba 2
Julio Pari624 vues
Ensuring Data Protection Using Oracle Flashback Features - Presentation par Pini Dibask
Ensuring Data Protection Using Oracle Flashback Features - PresentationEnsuring Data Protection Using Oracle Flashback Features - Presentation
Ensuring Data Protection Using Oracle Flashback Features - Presentation
Pini Dibask1.3K vues
Oracle database hot backup and recovery par Arun Sharma
Oracle database hot backup and recoveryOracle database hot backup and recovery
Oracle database hot backup and recovery
Arun Sharma108 vues
[Altibase] 13 backup and recovery par altistory
[Altibase] 13 backup and recovery[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery
altistory827 vues
ORACLE CORE DBA ONLINE TRAINING par training3
ORACLE CORE DBA ONLINE TRAININGORACLE CORE DBA ONLINE TRAINING
ORACLE CORE DBA ONLINE TRAINING
training3347 vues
Oracle Instance Architecture.ppt par HODCA1
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
HODCA163 vues
Oracle Architecture par Neeraj Singh
Oracle ArchitectureOracle Architecture
Oracle Architecture
Neeraj Singh14.4K vues
24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes par SpanishPASSVC
24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes
24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes
SpanishPASSVC1.3K vues
Best New Features of Oracle Database 12c par Pini Dibask
Best New Features of Oracle Database 12cBest New Features of Oracle Database 12c
Best New Features of Oracle Database 12c
Pini Dibask20.6K vues
What is new on 12c for Backup and Recovery? Presentation par Francisco Alvarez
What is new on 12c for Backup and Recovery? PresentationWhat is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? Presentation
Francisco Alvarez2.1K vues
Backup and Recovery Procedure par Anar Godjaev
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
Anar Godjaev7.2K vues

Plus de KalsoomTahir2

005813616.pdf par
005813616.pdf005813616.pdf
005813616.pdfKalsoomTahir2
1 vue17 diapositives
009576860.pdf par
009576860.pdf009576860.pdf
009576860.pdfKalsoomTahir2
1 vue29 diapositives
005813185.pdf par
005813185.pdf005813185.pdf
005813185.pdfKalsoomTahir2
1 vue45 diapositives
HASH FUNCTIONS.pdf par
HASH FUNCTIONS.pdfHASH FUNCTIONS.pdf
HASH FUNCTIONS.pdfKalsoomTahir2
5 vues21 diapositives
6. McCall's Model.pptx par
6. McCall's Model.pptx6. McCall's Model.pptx
6. McCall's Model.pptxKalsoomTahir2
4 vues13 diapositives
ch02-Database System Concepts and Architecture.ppt par
ch02-Database System Concepts and Architecture.pptch02-Database System Concepts and Architecture.ppt
ch02-Database System Concepts and Architecture.pptKalsoomTahir2
12 vues53 diapositives

Plus de KalsoomTahir2(20)

ch02-Database System Concepts and Architecture.ppt par KalsoomTahir2
ch02-Database System Concepts and Architecture.pptch02-Database System Concepts and Architecture.ppt
ch02-Database System Concepts and Architecture.ppt
KalsoomTahir212 vues
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt par KalsoomTahir2
Lecture 19 - Dynamic Web - JAVA - Part 1.pptLecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
KalsoomTahir23 vues

Dernier

Meet the Bible par
Meet the BibleMeet the Bible
Meet the BibleSteve Thomason
81 vues80 diapositives
Thanksgiving!.pdf par
Thanksgiving!.pdfThanksgiving!.pdf
Thanksgiving!.pdfEnglishCEIPdeSigeiro
568 vues17 diapositives
OOPs - JAVA Quick Reference.pdf par
OOPs - JAVA Quick Reference.pdfOOPs - JAVA Quick Reference.pdf
OOPs - JAVA Quick Reference.pdfArthyR3
64 vues66 diapositives
Ask The Expert! Nonprofit Website Tools, Tips, and Technology.pdf par
 Ask The Expert! Nonprofit Website Tools, Tips, and Technology.pdf Ask The Expert! Nonprofit Website Tools, Tips, and Technology.pdf
Ask The Expert! Nonprofit Website Tools, Tips, and Technology.pdfTechSoup
62 vues28 diapositives
NodeJS and ExpressJS.pdf par
NodeJS and ExpressJS.pdfNodeJS and ExpressJS.pdf
NodeJS and ExpressJS.pdfArthyR3
50 vues17 diapositives

Dernier(20)

OOPs - JAVA Quick Reference.pdf par ArthyR3
OOPs - JAVA Quick Reference.pdfOOPs - JAVA Quick Reference.pdf
OOPs - JAVA Quick Reference.pdf
ArthyR364 vues
Ask The Expert! Nonprofit Website Tools, Tips, and Technology.pdf par TechSoup
 Ask The Expert! Nonprofit Website Tools, Tips, and Technology.pdf Ask The Expert! Nonprofit Website Tools, Tips, and Technology.pdf
Ask The Expert! Nonprofit Website Tools, Tips, and Technology.pdf
TechSoup 62 vues
NodeJS and ExpressJS.pdf par ArthyR3
NodeJS and ExpressJS.pdfNodeJS and ExpressJS.pdf
NodeJS and ExpressJS.pdf
ArthyR350 vues
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (FRIE... par Nguyen Thanh Tu Collection
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (FRIE...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (FRIE...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (FRIE...
Guidelines & Identification of Early Sepsis DR. NN CHAVAN 02122023.pptx par Niranjan Chavan
Guidelines & Identification of Early Sepsis DR. NN CHAVAN 02122023.pptxGuidelines & Identification of Early Sepsis DR. NN CHAVAN 02122023.pptx
Guidelines & Identification of Early Sepsis DR. NN CHAVAN 02122023.pptx
Niranjan Chavan42 vues
JQUERY.pdf par ArthyR3
JQUERY.pdfJQUERY.pdf
JQUERY.pdf
ArthyR3107 vues
11.30.23A Poverty and Inequality in America.pptx par mary850239
11.30.23A Poverty and Inequality in America.pptx11.30.23A Poverty and Inequality in America.pptx
11.30.23A Poverty and Inequality in America.pptx
mary850239181 vues
INT-244 Topic 6b Confucianism par S Meyer
INT-244 Topic 6b ConfucianismINT-244 Topic 6b Confucianism
INT-244 Topic 6b Confucianism
S Meyer49 vues
Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating... par Taste
Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating...Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating...
Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating...
Taste38 vues
JRN 362 - Lecture Twenty-Two par Rich Hanley
JRN 362 - Lecture Twenty-TwoJRN 362 - Lecture Twenty-Two
JRN 362 - Lecture Twenty-Two
Rich Hanley39 vues

chap05-info366.ppt

  • 1. Oracle9i Database Administrator: Implementation and Administration 1 Chapter 5 The Redo Log Files
  • 2. Oracle9i Database Administrator: Implementation and Administration 2 Objectives  Learn to describe redo log files, groups, and members  Manage redo log groups and members
  • 3. Oracle9i Database Administrator: Implementation and Administration 3 Introduction to Online Redo Log Files Online redo log files store details as the database is used including:  Checkpoints  Data Changes (DML)  Structural changes (DDL)  Data file changes
  • 4. Oracle9i Database Administrator: Implementation and Administration 4 Oracle9i Architecture: A Typical Server
  • 5. Oracle9i Database Administrator: Implementation and Administration 5 Introduction to Online Redo Log Files Components: •Redo log group •Online redo log file or member •Archived redo log file •ARCn
  • 6. Oracle9i Database Administrator: Implementation and Administration 6 Introduction to Online Redo Log Files Components: •Redo log buffer •LGWR •CKPT
  • 7. Oracle9i Database Administrator: Implementation and Administration 7 Introduction to Online Redo Log Files File 1 is written to File A by the ARCn process after the log switch is complete
  • 8. Oracle9i Database Administrator: Implementation and Administration 8 Introduction to Online Redo Log Files File 1 and File 3 are written to by the LGWR process simultaneously until both are full
  • 9. Oracle9i Database Administrator: Implementation and Administration 9 The Purpose of Redo Log Files Redo log files aid in recovery from short term data loss such as brief power outage:  Store changes that may not be written to the data files yet  Store checkpoints to allow recovery to resynchronize data files with correct changes  Cannot completely handle recovery from major loss such as an entire data file
  • 10. Oracle9i Database Administrator: Implementation and Administration 10 The Purpose of Redo Log Files Recovery procedures (overview): Prior to failure:  Perform full database backup regularly  Run database in ARCHIVELOG mode After failure:  Restore from full backup  Apply archived redo log files (oldest to newest)  Apply online redo log file
  • 11. Oracle9i Database Administrator: Implementation and Administration 11 The Structure of Redo Log Files Redo log buffer is flushed to the redo log file when:  A transaction COMMITS  The redo log buffer becomes 1/3 full  The redo log buffer contains >1 M of updated records  A checkpoint occurs
  • 12. Oracle9i Database Administrator: Implementation and Administration 12 The Structure of Redo Log Files Redo log file components:  Redo record (also called redo entry)  Relates to one data block  Made up of one or more change vectors
  • 13. Oracle9i Database Administrator: Implementation and Administration 13 Managing Redo Log Files The COMMIT command tells the database to log the changes to the redo log file
  • 14. Oracle9i Database Administrator: Implementation and Administration 14 Log Switches and Checkpoints  To manually signal a log switch: ALTER SYSTEM SWITCH LOGFILE;  A log switch triggers a checkpoint  Checkpoint is a signal to write all dirty buffers to the appropriate files  Checkpoint increments the System Change Number (SCN)
  • 15. Oracle9i Database Administrator: Implementation and Administration 15 Log Switches and Checkpoints How the SCN is used:  SCN is recorded in the redo log buffer  SCN is recorded in the header of each data file that was written to  During recovery, SCN of each datafile is compared to the SCN in the redo log file  If a match, the data file is up to date  If redo log file has higher SCN, changes are reapplied to the data file from the redo log file
  • 16. Oracle9i Database Administrator: Implementation and Administration 16 Multiplexing and Other Maintenance  Multiplexed redo log files requires multiple members in each group  A log group continues to function as long as it has at least one good member  If all members of the current group become damaged, the database forces a log switch  The database shuts down immediately if a log switch fails
  • 17. Oracle9i Database Administrator: Implementation and Administration 17 Adding a Member to a Group  Add members to groups while the database is running  Do not specify SIZE because new members are automatically assigned the same size as other members in the group  Command syntax: ALTER DATABASE ADD LOGFILE MEMBER '<X:xxx><filename>' TO GROUP <n>;
  • 18. Oracle9i Database Administrator: Implementation and Administration 18 Adding a New Group  Add a new group while the database is running  Specify SIZE and group number  List all members to be created with the group (must be at least one)  Command syntax: ALTER DATABASE ADD LOGFILE GROUP <n> ( '<X:xxx><filename>', '<X:xxx><filename>') SIZE <n>;
  • 19. Oracle9i Database Administrator: Implementation and Administration 19 Renaming or Moving a Redo Log File  Must be done while the group is not ACTIVE  Steps: 1. Shut down the database: SHUTDOWN IMMEDIATE 2. Rename or relocate files using the operating system 3. Mount the database STARTUP MOUNT
  • 20. Oracle9i Database Administrator: Implementation and Administration 20 Renaming or Moving a Redo Log File  Steps (continued): 4. Inform database of changed file name: ALTER DATABASE RENAME FILE '<X:xxx><oldfilename1>', '<X:xxx><oldfilename2>' TO '<X:xxx><newfilename1>', '<X:xxx><newfilename2>'; 5. Open the database: ALTER DATABASE OPEN;
  • 21. Oracle9i Database Administrator: Implementation and Administration 21 Dropping Redo Log Members or Groups Reasons for dropping members or groups:  Bad disk, so must recreate member  Tuning recommendation calls for reducing members or groups  Corrupted members can be deleted and replaced later
  • 22. Oracle9i Database Administrator: Implementation and Administration 22 Dropping Redo Log Members or Groups  Rules when dropping redo log members:  Each group must have at least one member  The group affected must not be ACTIVE and (if in ARCHIVELOG mode) must be archived  Rule when dropping groups:  Database requires at least two groups  The group affected must not be ACTIVE and (if in ARCHIVELOG mode) must be archived
  • 23. Oracle9i Database Administrator: Implementation and Administration 23 Dropping Redo Log Members or Groups Steps to drop redo log member: 1. Query V$LOG to confirm that group is inactive 2. Drop redo log member: ALTER DATABASE DROP LOGFILE MEMBER '<X:xxx><filename>'; 3. Delete associated file in the operating system
  • 24. Oracle9i Database Administrator: Implementation and Administration 24 Dropping Redo Log Members or Groups Steps to drop redo log group: 1. Query V$LOG to confirm that group is inactive: SELECT * FROM V$LOG; 2. Drop redo log group: ALTER DATABASE DROP LOGFILE GROUP <n>; 3. Delete associated file(s) in the operating system
  • 25. Oracle9i Database Administrator: Implementation and Administration 25 Dropping Redo Log Members or Groups Additional notes:  If group is ACTIVE, force log switch: ALTER SYSTEM SWITCH LOGFILE;  If group still active, force checkpoint: ALTER SYSTEM CHECKPOINT;  An alternative to dropping a corrupt group and recreating the members: ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP <n>;
  • 26. Oracle9i Database Administrator: Implementation and Administration 26 Archiving a Redo Log Group Advantages of archiving redo log groups:  Point-in-time recovery to a point earlier than online redo log files contain  The ability to query archived log files with LogMiner  The ability to set up and maintain a standby database
  • 27. Oracle9i Database Administrator: Implementation and Administration 27 Finding Redo Log Information in Data Dictionary Views States of a redo log group:  UNUSED  CURRENT  ACTIVE  CLEARING  CLEARING_CURRENT  INACTIVE
  • 28. Oracle9i Database Administrator: Implementation and Administration 28 Viewing Control File Data
  • 29. Oracle9i Database Administrator: Implementation and Administration 29 Chapter Summary  Redo log files primarily contain information on database changes  A database has at least two redo log groups  A redo log group has at least one member  Redo log files support automatic recovery from minor failures  A redo log group with multiple files is multiplexed
  • 30. Oracle9i Database Administrator: Implementation and Administration 30 Chapter Summary  The SCN is incremented at a checkpoint  Maintenance you can do with redo log files and groups:  Add a new file (member) to a group  Add a new group  Rename or relocate a member  Drop a member  Drop a group  Clear a group
  • 31. Oracle9i Database Administrator: Implementation and Administration 31 Chapter Summary  Placing a database in ARCHIVELOG mode causes redo log files to be archived after a log switch  Many initialization parameters set the behavior of the archiving function  The V$LOG and V$LOGFILES dynamic performance views display information about redo log groups and members