--------Characteristics:
Recored all changes made to data.
Provide a recovery mechanism.
Can be organized into group.
At least two group required.
--------Online Redo Log File Groups
A set of identical copies of online redo log files is called an online redo log file group.
The LGWR background process concurrently writes the same information to all online redo log files in a group.
The oracle server needs a minimum of two online redo log file groups for the normal operation of a data base.
--------Online Redo log File Members
Each online redo log file in a group is called a member.
Each member is a group has identical log sequence numbers and are of the same size.
The LSN(log sequence number) is assigned each time that the Oracle server writes to a log group to uniquely identify each online redo log file.
--------How Redo Filew Work
Online Redo log files are used in cyclic fashion.
When a online redo log file is full,LGWR will move to the next log group.
Called a log switch
Checkpoint operation also occurs
Information written to the control file
--------Log switch
The act of switching from one log file group to the other is called a log switch.
--------Checkpoint
A checkpoint is the writing of dirty(modified) blocks from the buffer cache to disk.
--------When will LGWR write redo?
When a transaction commits.
Every three seconds.
When the Redo Log Buffer becomes one-third full.
When there is more than a megabyte of changed records in the Redo Log Buffer.
Before the DBWn writes modified blocks in the Database Buffer Cahce to the data files.
--------强制切换日志
alter system switch logfile;
--------强制checkpoint的发生
fast_start_mttr_target(0-3600)
alter system set fast_start_mttr_target=300 scope=spfile|both|pfile;alter system checkpoint;
--------管理Redo log files
alter database add logfile group 3('$HOMR/oradata/u01/log3a.rdo','$HOMR/oradata/u01/log3b.rdo') size 100m;
select * from v$logfile;
alter database add logfile member '$HOMR/oradata/u04/log1c.log' to group 1,'$HOMR/oradata/u04/log2c.log' to group 2,'$HOMR/oradata/u04/log3c.log' to group 3;
--------Drop Redo File Members:
alter database drop logfile member '$HOME/ORADATA/U04/log3c.rdo';
--------Drop Redo Files Groups
alter database drop logfile group 4;
--------Relocate & Rename
alter database rename file 'path and name1' to 'path and name2';
--------清空redo log file
alter database clear logfile group 2;
alter database clear unarchived logfile group 2;
--------
Archived Redo Log Files
--------
总结:oracle redo log file至少两组,每组至少两个,每组的重做日志文件放到不同的磁盘里(应对单点故障,提高安全性)。
分享到:
相关推荐
思科认证2010版CCNP教材---Troubleshooting_and_Maintaining_Cisco_IP_Networks_(TSHOOT)_Foundation_Learning_Guide.pdf
matlab导入excel代码utl_maintaining_numeric_significance_when_exporting_and_importing_excel_workbooks 导出和导入excel工作簿时保持数字重要性。 关键字:sas sql join合并大数据分析宏oracle teradata mysql ...
Maintaining Redo Log Files 维护redo日志文件需要检查redo日志文件状态、备份redo日志文件等。 Managing Tablespaces and Data Files 管理表空间和数据文件需要检查表空间状态、管理数据文件等。 Managing ...
Chapter 2 Oracle System Files What’s in the Files? The Instance and the Database: Starting an Oracle Database Types of Database Files Chapter 3 Oracle Database Objects The User Interface: User ...
6. **Maintaining Redo Log Files**: - 重做日志文件记录了所有事务对数据库的改变,用于在系统崩溃或介质故障后恢复数据。 - 保持至少两个重做日志文件以保证连续写入和容错能力。 7. **Managing Tablespaces ...
ORACLE的UNDO表空间是Oracle数据库中一个非常重要的组件,playing a crucial role in maintaining data consistency and providing a way to undo changes made to the database. 在本节中,我们将了解UNDO表空间的...
Oracle数据库教程第03章 本章节主要介绍了Oracle数据库管理工具,包括企业管理器(Enterprise Manager)、...通过学习本章节,读者可以了解Oracle数据库管理工具的使用方法和基本概念,为后续的学习和工作奠定基础。
Over 60 simple and easy-to-follow recipes to perform various Goldengate administration tasks such as installing, configuring, and maintaining Goldengate replication Overview Various recipes that ...
Oracle EBS 11.5.10 FOR linux 中文 patch 的安装方法 Oracle EBS 11.5.10 FOR linux 中文 patch 的安装方法是一个复杂的过程,需要多个步骤来完成。在这个过程中,我们需要注册中文语言包、修改 multilingual ...
Oracle 官方数据仓库指南,讲解透彻,知识权威,强烈推荐! Oracle® Database Data Warehousing Guide 10g Release 2 (10.2) Contents: Part I Concepts 1 Data Warehousing Concepts Part II Logical Design 2 ...
从查询结果中,我们可以看到当前读写的 redolog 日志组初始时间为 08-JAN-19,即“2019-01-08”。为了恢复数据库,我们需要恢复到该时间点: SQL>recover database until time ‘2019-01-08’; 最后,以 resetlogs...
A+ Guide to Managing and Maintaining Your PC
Expert Oracle Indexing and Access Paths helps by bringing together information on indexing and how to use it into one blissfully short volume that you can read quickly and have at your fingertips for...
you may only use these constants *after* the line that loads the extension. ;;;;;;;;;;;;;;;;;;; ; About this file ; ;;;;;;;;;;;;;;;;;;; ; ...
Oracle Applications Maintenance Procedures for Release 11i (11.5.10.2) is a comprehensive guide that outlines essential steps and best practices for maintaining and managing an Oracle-based enterprise...