Archived Redo Log File Conventions in Oracle RAC

For any archived redo log configuration, uniquely identify the archived redo logs with the LOG_ARCHIVE_FORMAT parameter.

The format of this parameter is operating system-specific and the format can include text strings, one or more variables, and a file name extension.

Table: Archived Redo Log File Name Format Parameters

ParameterDescriptionExample
%rResetlogs identifier, not paddedlog_1_62_23452345
%RResetlogs identifier, left-zero-paddedlog_1_62_0023452345
%sLog sequence number, not paddedlog_251
%SLog sequence number, left-zero-paddedlog_0000000251
%tThread number, not paddedlog_1
%TThread number, left-zero-paddedlog_0001

All of the file name format parameters for the archive redo logs, in either upper or lowercase, are mandatory for Oracle RAC. These parameters enable Oracle AI Database to create unique names for archive logs across the incarnation. This requirement is in effect when the COMPATIBLE parameter is set to 10.0 or greater.

Use the %R or %r parameters to include the resetlogs identifier to avoid overwriting the logs from a previous incarnation. If you do not specify a log format, then the default is operating system-specific and includes %t, %s, and %r.

As an example, if the instance associated with redo thread number 1 sets LOG_ARCHIVE_FORMAT to log_%t_%s_%r.arc, then its archived redo log files are named:

log_1_1000_23435343.arc
log_1_1001_23452345.arc
log_1_1002_23452345.arc
...

Related Topics