// oracle · vacuum, statistics & maintenance

control_file_record_keep_time

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

デフォルト
7
Range
0 to 365 days
Restart needed
いいえ
Default checked on
Oracle AI Database 26ai / 23ai

何ができるか

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.

デフォルト値

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, or check the Oracle manual for every option.

// one client for every engine

Check control_file_record_keep_time on your own server

SQLly runs the query above against Oracle and the other engines in this reference, from one desktop app on macOS, Windows and Linux.

このページのテキストとデータ: CC BY 4.0、出典は SQLly (sqlly.app) と明記してください。 コードと SQL スニペット: MIT. ライセンスの詳細