# control_file_record_keep_time

> Days RMAN backup and archived log records stay in the control file before those slots are reused.

Source: https://sqlly.app/sql-configuration/oracle/control-file-record-keep-time
Last updated: 2026-11-30
License: Text and data [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (credit SQLly, sqlly.app); code and SQL snippets [MIT](https://opensource.org/license/mit). [Details](https://sqlly.app/license).

**Default**

`7`

**Range**

0 to 365 days

**Restart needed**

No

**Default checked on**

Oracle AI Database 26ai / 23ai

## What it does

When RMAN uses the control file as its repository, records for backups, archived logs and data file copies live in fixed-size circular sections. Records older than this many days are the first overwritten as new backups arrive. 0 means slots are never reused, so the control file only grows.

## Default value

`7`. 7 days (Oracle 23ai/26ai).

## Check the current value

```
SHOW PARAMETER control_file_record_keep_time

SELECT name, value, isdefault, issys_modifiable, isses_modifiable, ispdb_modifiable
FROM v$parameter
WHERE name = 'control_file_record_keep_time';
```

## Change it

```
ALTER SYSTEM SET control_file_record_keep_time = 35 SCOPE=BOTH;
```

No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. It is instance-wide: set it from CDB$ROOT, because a PDB gets ORA-65040.

## When to change it

Above the longest retention RMAN keeps, for example a 30-day recovery window plus margin, so the repository outlives the backups it describes.

## What can go wrong

Too low and RMAN forgets backups that are still on disk or tape, leaving them unusable through the repository; with a recovery catalog this matters much less.

## Questions about control_file_record_keep_time

### What is the default value of control_file_record_keep_time in Oracle?

7. 7 days (Oracle 23ai/26ai).

### Does changing control_file_record_keep_time require a restart?

No. No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. It is instance-wide: set it from CDB$ROOT, because a PDB gets ORA-65040.

### When should I change control_file_record_keep_time?

Above the longest retention RMAN keeps, for example a 30-day recovery window plus margin, so the repository outlives the backups it describes.

Back to all [Oracle settings](https://sqlly.app/sql-configuration/oracle), or check the [Oracle manual](https://docs.oracle.com/en/database/oracle/oracle-database/23/refrn/initialization-parameters.html) for every option.

## Related Oracle settings

- [`db_recovery_file_dest_size` Space limit for the fast recovery area (archived logs, flashback logs, RMAN backups).](https://sqlly.app/sql-configuration/oracle/db-recovery-file-dest-size)

## Related on SQLly

- [When a fast query turns slow Performance guide](https://sqlly.app/sql-performance/sudden-slowdown)
- [Oracle query performance troubleshooting Performance guide](https://sqlly.app/sql-performance/oracle)
