SID=TESTDB
For Standby DB
SID=TESTDB
select * from v$logfile where type='ONLINE'
+DATA/testdb_primary/onlinelog/
/u01/app/oracle/oradata/TESTDB/archivelog/TESTDB_PRIMARY/onlinelog/
oracle maintains a 2nd copy at Flash Recovery Destination
If a new online redo log is created, a correspoindg standby redo log must be created on standby.
ALTER DATABASE ADD STANDBY LOGFILE Group 17 SIZE 256000K;
Standby Redo Log Files -- TESTDB_PRIMARY (DB_UNIQUE_NAME) Directory
select * from v$logfile where type='STANDBY'
+DATA/testdb_primary/onlinelog/
oracle maintains a 2nd copy at Flash Recovery Destination
Archive Log Files -- in TESTDB, the default DB_RECOVERY_FILE_DEST
The archive log file is saved in /u01/app/oracle/oradata/TESTDB/archivelog
show parameter DB_RECOVERY_FILE_DEST;
/u01/app/oracle/oradata/TESTDB/archivelog
show parameter log_archive_dest_1;
LOCATION=/u01/app/oracle/oradata/TESTDB/archivelog/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=TESTDB_PRIMARY
TESTDB_STANDBY DATABASE FILES
select * from v$logfile where type='ONLINE'
+DATA/testdb_standby/onlinelog/
/u01/app/oracle/oradata/TESTDB/archivelog/TESTDB_STANDBY/
oracle maintains a 2nd copy at Flash Recovery Destination
If a new online redo log is created on primary, a correspoindg standby redo log must be created on standby.
ALTER DATABASE ADD STANDBY LOGFILE Group 17 SIZE 256000K;
Standby Redo Log Files -- TESTDB_STANDBY(DB_UNIQUE_NAME) Directory
select * from v$logfile where type='STANDBY'
+DATA/testdb_standby/onlinelog/
/u01/app/oracle/oradata/TESTDB/archivelog/TESTDB_STANDBY/
oracle maintains a 2nd copy at Flash Recovery DestinationArchive Log Files -- shipped archives are in TESTDB folder, standby archives are in TESTDB_STANDBY
The archive log file is saved in /u01/app/oracle/oradata/TESTDB/archivelog
show parameter DB_RECOVERY_FILE_DEST;
/u01/app/oracle/oradata/TESTDB/archivelog
show parameter log_archive_dest_1;
LOCATION=/u01/app/oracle/oradata/TESTDB/archivelog/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=TESTDB_STANDBY
when it is in standby role, this destination stores the archive shipped from primary
select * from V$PARAMETER where name = 'log_archive_dest_2'
LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(STANDBY_LOGFILE,STANDBY_ROLE)
This uses DB_RECOVERY_FILE_DEST which is
/u01/app/oracle/oradata/TESTDB/archivelog
when it is in standby role with real time log apply, the primary online log is applied to standby redo log and then is archved to this destination.
Backupset and Autobackups
When fast recovery area is defined, RMAN automatically saves backupset and autobackups in the fast recovery area, when the fast recovery area is full, RMAN auto deletes obseletes,expired to make room available.
No comments:
Post a Comment