Init parameterRedo, undo & archiving
LOG_ARCHIVE_FORMAT
What it controls
File name pattern for archived logs written to a plain directory.
Know this before you change it
Ignored for the Fast Recovery Area and ASM, which use Oracle-managed names. Keep %t, %s and %r so names stay unique across threads and resetlogs.
Default: %t_%s_%r.dbf
Check and change it
1-- Current value on every instance2SELECT inst_id, name, value, isdefault, ismodified3FROM gv$parameter4WHERE name = 'log_archive_format';5 6-- Value stored in the spfile7SELECT sid, value FROM v$spparameter WHERE name = 'log_archive_format' AND isspecified = 'TRUE';8 9-- Static: saved in the spfile, takes effect after a restart10ALTER SYSTEM SET log_archive_format = '%t_%s_%r.arc' SCOPE = SPFILE SID = '*';11 12-- Remove it from the spfile to go back to the default at the next restart13ALTER SYSTEM RESET log_archive_format SCOPE = SPFILE SID = '*';Open in the parameter referenceOracle's reference
More in Redo, undo & archiving
- UNDO_RETENTIONSeconds of committed undo Oracle tries to keep, for long queries and Flashback Query.
- UNDO_TABLESPACEWhich undo tablespace the instance uses. Each RAC instance has its own.
- LOG_ARCHIVE_DEST_NWhere archived redo goes: a local location or a Data Guard standby service. Numbered 1 to 31.
- ARCHIVE_LAG_TARGETForces a log switch after this many seconds, even when the database is quiet.
- LOG_BUFFERSize of the redo log buffer.
- FAST_START_MTTR_TARGETTarget seconds for crash recovery. Oracle writes dirty blocks early enough to meet it.