Time for action – the recommended configuration for archived log maintenance on a standby database
Let's see an example of configuring automatic maintenance of the archived logs on a standby database:
- Enable the fast recovery area on the standby database by setting the
DB_RECOVERY_FILE_DEST
andDB_RECOVERY_FILE_DEST_SIZE
parameters:SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='/data/FRA'; SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=500G;
If we're using ASM, we can specify a disk group as
DB_RECOVERY_FILE_DEST
.SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='+FRA';
- Set the
LOG_ARCHIVE_DEST_1
parameter as follows so that the archived logfiles will be created at theDB_RECOVERY_FILE_DEST
parameter:SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='LOCATION=USE_DB_RECOVERY_ ...
Get Oracle Data Guard 11gR2 Administration Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.