Time for action – fixing NOLOGGING changes in the standby database with incremental database backups
Determine the SCN that we'll use in the RMAN incremental database backup by querying the minimum
FIRST_NONLOGGED_SCN
column of theV$DATAFILE
view in the standby database:SQL> SELECT MIN(FIRST_NONLOGGED_SCN) FROM V$DATAFILE WHERE FIRST_NONLOGGED_SCN>0; MIN(FIRST_NONLOGGED_SCN) ------------------------ 20606544
Stop Redo Apply on the standby database:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
Now we'll take an incremental backup of the database using the
FROM SCN
keyword. The SCN value will be the output of the execution of the query in the first step. Connect to the primary database as the RMAN target and execute the following RMANBACKUP
statement:RMAN> BACKUP INCREMENTAL FROM SCN 20606344 DATABASE FORMAT '/data/DB_Inc_%U' TAG 'FOR STANDBY';
Copy the backup files from the primary site to the standby site with FTP or SCP:
scp /data/DB_Inc_...