By default, an Oracle database runs in NOARCHIVELOG mode, which limits recovery to the point of the last backup. To support incremental backups and point-in-time recovery with Cloud Backup, switch the database to ARCHIVELOG mode before enabling backup.
Log in to the Oracle database as a sysdba.
-
Run the
ARCHIVE LOG LISTSQL command to check the current archive status.Database log mode No Archive Mode #NOARCHIVELOG mode Automatic archival Disabled Archive destination USE_DB_RECOVERY_FILE_DEST Oldest online log sequence 1 Current log sequence 2NoteIf the
Database log modeparameter showsArchive Mode, ARCHIVELOG mode is already enabled. No further steps are needed. -
ARCHIVELOG mode cannot be enabled while the database is in the
OPENstate. Run theSHUTDOWN IMMEDIATESQL command to shut down the database.ImportantPerform this operation during off-peak hours.
Run the
STARTUP MOUNTSQL command to start the database in MOUNT state.Run the
ALTER DATABASE ARCHIVELOGSQL command to enable ARCHIVELOG mode.-
Run the
ARCHIVE LOG LISTSQL command again to verify that ARCHIVELOG mode is enabled.Database log mode Archive Mode #ARCHIVELOG mode Automatic archival Enabled Archive destination USE_DB_RECOVERY_FILE_DEST Oldest online log sequence 1 Next log sequence to archive 2 Current log sequence 2NoteAfter enabling ARCHIVELOG mode, the default log archive path is the fast recovery area ($ORACLE_BASE/fast_recovery_area). This directory has a default size of 4 GB and is shared with backup files and flashback logs. To prevent disk exhaustion from causing database outages, increase the directory size or change the log archive path.
Run the
ALTER DATABASE OPENSQL command to open the database.