• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archived Redo File Conventions in Oracle RAC

by admin

Archived Redo File Conventions in RAC

Variable Description Example
%t Thread number, not padded log_1
%T Thread number, left-zero-padded log_0001
%s Log sequence number, not padded log_251
%S Log sequence number, left-zero-padded log_0000000251
%r Resetlogs identifier log_23452345
%R Padded resetlogs identifier log_0023452345
%t_%s_%r Using multiple variables log_1_251_23452345

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 it can include text strings, one or more variables, and a file name extension.

All of the thread parameters, in either uppercase or lowercase, are mandatory for RAC. This enables the Oracle 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 parameter to include the resetlogs identifier to avoid overwriting the logs from a previous incarnation. If you do not specify a log format, 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 as:

log_1_1000_23435343.arc
log_1_1001_23452345.arc
log_1_1002_23452345.arc
...
Note: The LOG_ARCHIVE_FORMAT parameter will have no effect if Oracle Managed Files (OMF) has been implemented for the Oracle RAC database.

Filed Under: oracle, oracle 12c, RAC

Some more articles you might also be interested in …

  1. How to resize an OCFS2 filesystem on Linux
  2. Understanding Flashback Table Feature in Oracle Database
  3. Oracle Database Environment Variables and Their Functions
  4. Oracle Software Group Accounts OSDBA, OSOPER, Oracle Inventory group
  5. Oracle GoldenGate: GLOBALS Sample Parameter File
  6. How to move spfile from ASM to filesystem
  7. How to move ASM spfile to a shared device in RAC
  8. Using Rule Sets in Oracle Database Vault
  9. PL/SQL: Factorial Program
  10. Empty Directories in the Flash Recovery Area (FRA) are not deleted

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright