千家信息网

Oracle ORA-08591告警

发表于:2024-11-18 作者:千家信息网编辑
千家信息网最后更新 2024年11月18日,进行归档恢复的时候数据库报以下错误:RMAN-08591: WARNING: invalid archived log deletion policy查看ORA错误解释:[oracle@021Y-SH
千家信息网最后更新 2024年11月18日Oracle ORA-08591告警

进行归档恢复的时候数据库报以下错误:

RMAN-08591: WARNING: invalid archived log deletion policy

查看ORA错误解释:

[oracle@021Y-SH-BKAP ~]$ oerr rman 85918591, 3, "WARNING: invalid archived log deletion policy"// *Cause: An invalid ARCHIVELOG DELETION POLICY was supplied. The archived//         log deletion policy was APPLIED but there was no mandatory//         archived log destinations.// *Action: One of the following://          1) Change archived log deletion policy using CONFIGURE command//          2) Make one or more of standby destination as MANDATORY.

说明这是由于备库是从主库获取的日志归档,而不是归档的传输者,因此该策略部符合该库的角色,进入rman工具:

[oracle@021Y-SH-BKAP ~]$ rman target /Recovery Manager: Release 11.2.0.1.0 - Production on Mon Feb 2 13:59:10 2015Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORCL (DBID=1394247230)RMAN> show all;using target database control file instead of recovery catalogRMAN configuration parameters for database with db_unique_name ORCL are:CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # defaultCONFIGURE BACKUP OPTIMIZATION OFF; # defaultCONFIGURE DEFAULT DEVICE TYPE TO DISK; # defaultCONFIGURE CONTROLFILE AUTOBACKUP ON;CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/DBBK/oracle/backup/control%F.bkp';CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # defaultCONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # defaultCONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # defaultCONFIGURE MAXSETSIZE TO UNLIMITED; # defaultCONFIGURE ENCRYPTION FOR DATABASE OFF; # defaultCONFIGURE ENCRYPTION ALGORITHM 'AES128'; # defaultCONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # defaultCONFIGURE ARCHIVELOG DELETION POLICY TO SHIPPED TO STANDBY; # defaultCONFIGURE SNAPSHOT CONTROLFILE NAME TO '/DBBK/oracle/product/11.2.0.1.0/dbs/snapcf_orcl.f'; # default

修改RMAN配置

RMAN> configure ARCHIVELOG DELETION POLICY clear;
0