rman
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rman [2019/08/08 13:46] – [RMAN Commands] z0hpvk | rman [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 42: | Line 42: | ||
| select * from V$RECOVERY_AREA_USAGE; | select * from V$RECOVERY_AREA_USAGE; | ||
| + | </ | ||
| + | |||
| + | ==== Incremental Recovery ==== | ||
| + | This procedure is useful if a standby database has missing archive logs. \\ | ||
| + | < | ||
| + | COL CURRENT_SCN FORMAT 999999999999999 | ||
| + | SELECT CURRENT_SCN FROM V$DATABASE; | ||
| + | SELECT MIN(FHSCN) FROM X$KCVFH; | ||
| + | </ | ||
| + | Example lowest number is 123456 | ||
| + | < | ||
| + | RMAN> BACKUP INCREMENTAL FROM SCN 123456 DATABASE FORMAT ' | ||
| + | </ | ||
| + | Copy backup file to the standby database server. \\ | ||
| + | < | ||
| + | RMAN> CATALOG START WITH ' | ||
| + | RMAN> RECOVER DATABASE NOREDO; | ||
| + | </ | ||
| + | Backup the control file on the primary server. \\ | ||
| + | < | ||
| + | RMAN> BACKUP CURRENT CONTROLFILE FOR STANDBY FORMAT ' | ||
| + | </ | ||
| + | Copy control file backup to the standby server. \\ | ||
| + | If database locations are different on the standby server record the names ... | ||
| + | |||
| + | < | ||
| + | RMAN> REPORT SCHEMA; | ||
| + | |||
| + | RMAN> SHUTDOWN IMMEDIATE ; | ||
| + | RMAN> STARTUP NOMOUNT; | ||
| + | RMAN> RESTORE STANDBY CONTROLFILE FROM ' | ||
| + | |||
| + | SQL> SHUTDOWN; | ||
| + | SQL> STARTUP MOUNT; | ||
| + | |||
| + | RMAN> CATALOG START WITH '< | ||
| + | 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 < | ||
| </ | </ | ||
rman.1565271996.txt.gz · Last modified: (external edit)
