First, we connect to the node where the database is located with ssh.
After loading the database’s profile, we connect to RMAN with the command below.
rman target /
You can read the following articles to load profiles and connect to RMAN.
The following command displays all rman configurations.
We change the backup retention with the following command.
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
Then, with the following command, we do the necessary checks to delete metadata information in the control file that has metadata information but has not a backup file in RMAN.
The following command also deletes metadata information detected by crosscheck from the control file.
delete expired backupset;
Then we delete all backups that can be deleted with the following command.
delete obsolete device type disk;