首页 > 数据库 > Oracle > rman backup遇到ORA-19811
An archival backup is self-contained because is contains all files necessary to restore the backup and recover it to a consistent state. If the database is open during the backup, then RMAN automatically generates and backs up the archived redo log files needed to make the database backup consistent (see ).
RMAN does not consider backup pieces with the KEEP option when computing the retention policy. If available, RMAN uses these backups for disaster recovery restore operations, but their purpose is to produce a snapshot of the database that can be restored on another system for testing or historical usage.
Note: You cannot use KEEP to override the retention policy for files stored in the fast recovery area. If you specify KEEP when backing up to the recovery area, then RMAN issues an error.
When KEEP is specified, RMAN creates multiple backup sets. RMAN backs up data files, archived redo log files, the control file, and the server parameter file with the options specified in the first backupOperand. Since a backup of the control file is created, an autobackup of the control file is not created. RMAN uses the FORMAT, POOL, and TAG parameters for all the backups. For this reason, the FORMAT string must allow for the creation of multiple backup pieces. Specifying is the easiest way to meet this requirement.
See Also: and Oracle Database Backup and Recovery User's Guide to learn more about autobackup of the control file.
When KEEP is specified with INCREMENTAL LEVEL, the parent backup must be a KEEP backup and have the same TAG string. Unless both these criteria are met, the backup cannot be created. Backups that meet these criteria do not interfere with other nightly or archival backup tasks.
Note: A recovery catalog is only required for KEEP FOREVER. No other KEEP options require a catalog.
根据上述提示,可以修改备份文件的存储位置可以解决这个问题
run {
allocate channel ch1 device type disk;
allocate channel ch2 device type disk;
backup as backupset tag 'full-base-line'
format '/oracle/dbbackup/whole-%s-%t-%u'
keep forever restore point 'full' database plus archivelog;
crosscheck backupset;
release channel ch1;
release channel ch2;
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21754115/viewspace-1064149/ ,如需转载,请注明出处,否则将追究法律责任。