Log_Files
Log_Files
A set of files that record all changes made to an Oracle database. The LGWR process writes
information from redo log buffer to the redo log files. A database MUST have at least two
redo log files. Log files can be multiplexed on multiple disks to ensure that they will not get
lost.
CURRENT: Redo records are currently being written to the group.Only one group is current at a time.
ACTIVE: Redo group that contains redo's of a dirty buffer (not yet committed transaction).
LGWR writes both uncommitted and committed transactions from the log buffer to the online
redo log files under below conditions:
COMMIT
1/3 Redo buffer is full.
1MB of new redo in the log buffer.
Every 3 seconds.
Before DBWR writes to the database files.
1
REDOLOG FILES.
2
REDOLOG FILES.
5. Adding Member:--
6. Dropping Group:-
Point to remember over here is, when log member is dropped it is removed from Database
but you need to physically drop it at OS level.
3
REDOLOG FILES.
4
REDOLOG FILES.
Now, you created one log group without specifying any member details. In this scenario if your
DB_CREATE_ONLINE_LOG_DEST_n is set , Oracle will take care for new members location as well
as naming convention.
In below output , you can see 3 members are created as our 3 destinations were set.
DB_CREATE_ONLINE_LOG_DEST_1 , DB_CREATE_ONLINE_LOG_DEST_2 and
DB_CREATE_ONLINE_LOG_DEST_3 .Also name is dynamically allocated by oracle.
========================================================================