RMAN-06522: KEEP FOREVER option is not supported without the recovery catalog
Cause:
You cannot use keep clause in no catalog database
RMAN> run
2> {
3> backup as compressed backupset database keep forever;
4> backup current controlfile;
5> }
Starting backup at 03-AUG-21
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 08/03/2021 23:19:32
RMAN-06522: KEEP FOREVER option is not supported without the recovery catalog
Workaround:
Connect to a catalog database and use keep clause
[oracle@orcl19x ~]$ rman target / catalog rcat/password@orcl19x1
Recovery Manager: Release 19.0.0.0.0 - Production on Tue Aug 3 23:36:30 2021
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL19X1 (DBID=2012336792)
connected to recovery catalog database
Then backup runs successfully
RMAN> run
{
backup as compressed backupset database keep forever;
backup current controlfile;
}
Below is the message indicate keep clause purpose
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=105 device type=DISK
backup will never be obsolete
archived logs required to recover from this backup will be backed up