- Show the original RMAN configuration.
- Modify RMAN configuration and show all.
- Show configuration before the catalog resynchronizes with the standby database.
- Resynchronize with the standby database and show configuration.
- Show configuration after the catalog resynchronizes with the standby database.
[oracle@primary01 ~]$ rman catalog catowner/password@smalldb target sys/password@primdb1
...
connected to target database: COMPDB (DBID=841830157)
connected to recovery catalog database
RMAN> show all;
RMAN configuration parameters for database with db_unique_name PRIMDB are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
...
Our goal is to modify RETENTION POLICY. The above setting is the default one.
RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 32 DAYS;
new RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 32 DAYS;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete
RMAN> show all;
RMAN configuration parameters for database with db_unique_name PRIMDB are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 32 DAYS;
...
You have noticed that we have changed RETENTION POLICY to recovery window of 32 days.
[oracle@standby01 ~]$ rman target /
...
connected to target database: COMPDB (DBID=841830157, not open)
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name STANDB are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
...
Since the catalog have not resynchronized with the standby database, RETENTION POLICY is still the default setting.
[oracle@primary01 ~]$ rman catalog catowner/password@smalldb target sys/password@standb1
...
connected to target database: COMPDB (DBID=841830157, not open)
connected to recovery catalog database
RMAN> show all;
RMAN configuration parameters for database with db_unique_name STANDB are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 32 DAYS;
...
New configuration is resynchronized with the catalog.
[oracle@standby01 ~]$ rman target /
...
connected to target database: COMPDB (DBID=841830157, not open)
RMAN> show all;
RMAN configuration parameters for database with db_unique_name STANDB are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 32 DAYS;
...
Now, RMAN configuration is resynchronized and reposited in the controlfile of the standby database.