我总是在我们的所有Oracle数据库中使用以下错误DB_RECOVERY_FILE_DEST_SIZE
100%
。作为一种解决方法,我尝试增加目标大小并删除RMAN
中的归档日志,直到sysdate-1
,因为它有3-4
天的时间。以下是RMAN
的配置:
具有db_unique_name的数据库的RMAN配置参数为:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\APP\ORAADMIN\PRODUCT\12.2.0\DBHOME_1\DATABASE\SNC.ORA'; # default
有没有一种方法可以使RMAN安装程序在不需要脚本或需要创建脚本来计划删除的情况下删除物理存档日志?我在Windows中运行Oracle 12c。
CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS;
===>如果我将其设置为2天,是否会删除2天之前的文件?或需要在RMAN中为过期的归档日志调用delete
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
===>如果我设置此删除策略并将备份备份到sbt,它将主动删除磁盘中的文件吗?