当前位置:网站首页>RMAN backup database_ Restart RMAN backup

RMAN backup database_ Restart RMAN backup

2022-06-25 18:20:00 Count words and lines

Use restartable backup features ,RMAN Back up only those files that have not been backed up after the specified date .

1. About restartable backups

The smallest restartable unit is a data file . However , If the backup set contains a backup slice and if the backup slice contains blocks from multiple data files , The restartable unit is the backup disk . The restartable unit of the image copy is a data file .

The benefit of a restartable backup is that if the backup produces multiple backup sets , Then the successfully completed backup set does not need to be rerun . However , If the entire database is written to a backup set and if the backup fails halfway , Then the entire backup must be restarted .

When reading a data file or writing to a backup slice or image copy ,RMAN Any I/O Mistakes can cause RMAN Terminate the backup job in progress . for example , If RMAN Try backing up the data file , But the data file is not on disk , that RMAN Terminate backup . If you are using multiple channels or creating redundant copies of backups , that RMAN It may be possible to continue the backup without user intervention .

RMAN Only those files that have not been backed up after a specified period of time can be backed up . Use this feature to back up the missing part of the database after the backup fails .

You can specify BACKUP In the command SINCE TIME The sub statement restarts the backup . If SINCE TIME Later than the most recent backup , that RMAN Back up this file . If you use BACKUP DATABASE NOT BACKED UP Without SINCE TIME Parameters , that RMAN Only back up files that have never been backed up .


2. Restart backup after partial completion

Use BACKUP Ordered SINCE TIME Parameter to specify a date , Ask for a new backup after it .

Only back up files that have not been backed up after the specified date :
1) start-up RMAN, Connect to the target database and recovery Directory ( If used ).
2) perform BACKUP … NOT BACKED UP SINCE TIME command .
stay SINCE TIME Parameter to specify a valid date . The following example uses the default configuration channel to back up on 2 All database files and archives that have not been backed up in the past week redo journal :
BACKUP
 NOT BACKED UP SINCE TIME ‘SYSDATE-14’
 DATABASE PLUS ARCHIVELOG;



source :《Oracle Database Backup and Recovery User’s Guide,19c》

原网站

版权声明
本文为[Count words and lines]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206251812221878.html