For one of database we were getting backup failure alerts where the backup was configured on standby database.
We saw below Error messsages in backup-log :
RMAN-08591:
WARNING: invalid archived log deletion policy
-
Cause: If archive log location is set to FRA, then there might be a
chance of the deleting the archives automatically when the space pressure in
FRA.
In
that case at least one of the destination standby must be set as a
"MANDATORY" destination.
Solution: To eliminate the RMAN warning message, at least one archive
destination must be set as a mandatory destination.
1.
Log in to the broker command line utility
[oracle@host1 log]$ dgmgrl / DGMGRL for Linux: Version 12.1.0.2.0 - 64bit Production Copyright (c) 2000, 2013, Oracle. All rights reserved. Welcome to DGMGRL, type "help" for information. Connected as SYSDG. DGMGRL> show configuration Configuration – primdb1 Protection Mode: MaxPerformance Members: primdb1 - Primary database bcpdb1 - Physical standby database Fast-Start Failover: DISABLED Configuration Status: SUCCESS (status updated 7 seconds ago)
2.
For the standby site check the "Binding" property
DGMGRL> show database verbose bcpdb1 Database - bcpdb1 Role: PHYSICAL STANDBY Intended State: APPLY-ON Transport Lag: 11 minutes (computed 0 seconds ago) Apply Lag: 0 seconds (computed 0 seconds ago) Average Apply Rate: 625.00 KByte/s Active Apply Rate: 523.00 KByte/s Maximum Apply Rate: 18.62 MByte/s Real Time Query: ON Instance(s): bcpdb1
Properties:
---------- ----------Binding = 'optional' ---------- ----------
3. Set the "binding" Property as - MANDATORY
//This parameter controls whether the destination is mandatory or not
DGMGRL> edit database bcpdb1 set property Binding='mandatory'; Property "binding" updated DGMGRL> exit
Once
the broker configuration has set a standby site as a mandatory destination, the
RMAN configuration can be altered to set the archivelog deletion policy to
applied on standby.
RMAN>
configure archivelog deletion policy to applied on standby;
Reference: Data Guard Physical Standby - RMAN configure archivelog deletion
policy reports RMAN-08591 (Doc ID 1984064.1)
-
Read more
Configure Streaming Replication in PostgreSQL
Installation and configure Postgres 13 on RHEL
All about Physical Replication and Log shipping in Postgres
Possible ways to recover space from deleted rows with insufficient disk space
Streaming-Replication Sync and Async, benefits of streaming replication over Log-shipping