rman
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rman [2019/10/18 14:30] – z0hpvk | rman [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 45: | Line 45: | ||
==== Incremental Recovery ==== | ==== Incremental Recovery ==== | ||
+ | This procedure is useful if a standby database has missing archive logs. \\ | ||
< | < | ||
- | Missing archive logs | ||
- | |||
COL CURRENT_SCN FORMAT 999999999999999 | COL CURRENT_SCN FORMAT 999999999999999 | ||
SELECT CURRENT_SCN FROM V$DATABASE; | SELECT CURRENT_SCN FROM V$DATABASE; | ||
SELECT MIN(FHSCN) FROM X$KCVFH; | SELECT MIN(FHSCN) FROM X$KCVFH; | ||
- | + | </ | |
- | Example lowest number is 12010222653623 | + | Example lowest number is 123456 |
- | + | < | |
- | RMAN> BACKUP INCREMENTAL FROM SCN 12010248705171 | + | RMAN> BACKUP INCREMENTAL FROM SCN 123456 |
- | + | </ | |
- | Copy to the standby database server | + | Copy backup file to the standby database server. \\ |
+ | < | ||
RMAN> CATALOG START WITH ' | RMAN> CATALOG START WITH ' | ||
RMAN> RECOVER DATABASE NOREDO; | RMAN> RECOVER DATABASE NOREDO; | ||
+ | </ | ||
+ | Backup the control file on the primary server. \\ | ||
+ | < | ||
RMAN> BACKUP CURRENT CONTROLFILE FOR STANDBY FORMAT ' | RMAN> BACKUP CURRENT CONTROLFILE FOR STANDBY FORMAT ' | ||
- | + | </ | |
- | Copy to the standby server | + | Copy control file backup |
If database locations are different on the standby server record the names ... | If database locations are different on the standby server record the names ... | ||
+ | < | ||
RMAN> REPORT SCHEMA; | RMAN> REPORT SCHEMA; | ||
Line 78: | Line 79: | ||
RMAN> CATALOG START WITH '< | RMAN> CATALOG START WITH '< | ||
RMAN> SWITCH DATABASE TO COPY; | RMAN> SWITCH DATABASE TO COPY; | ||
+ | </ | ||
- | If this is a Data Guard configuration then clear the standby redo log groups | + | |
- | SQL> ALTER DATABASE CLEAR LOGFILE GROUP 10; | + | If this is a Data Guard configuration then clear the standby redo log groups. \\ |
+ | < | ||
+ | SQL> ALTER DATABASE CLEAR LOGFILE GROUP < | ||
</ | </ | ||
rman.1571409043.txt.gz · Last modified: 2025/03/08 22:23 (external edit)