Oracle recommends turning on the archive mode. The reason is: after turning on the archive, RMAN can back up the data in real time. The archive mode must be turned on when configuring DataGuard. The database can basically guarantee zero loss. Steps to turn on the archive mode: 1. Set the archive path; 2. Close the database and open it to the mount state; 3. Turn on the archive mode and open the database to open; 4. Check the archive status and switch the log.
#The operating environment of this article: Windows 10 system, Oracle version 19c, dell g3 computer.
Oracle recommends turning on the archive mode and archiving the records of database operations to local log files!
You can check whether archiving is enabled by using the following command:
archive log list
After enabling archiving, you can back up data in real time with RMAN. The archiving mode must be enabled when configuring DataGuard. The database can basically guarantee zero loss!
The disadvantages may be:
1. Taking up a lot of disk space 2. Occupy some system resources 3. If the archive space is full, it may cause database downtime
In general, the advantages outweigh the disadvantages. Who needs less disk space and system resources now? Right!
Steps to enable archive mode:
1. Set the archive path
alter system set log_archive_dest_1='LOCATION=/archivelog';
2. Close the database and open it to the mount state
shutdown immediate startup mount
If it is a rac cluster environment, use srvctl to close all node databases, and then open a node to the mount state!
3. Turn on the archive mode and open the database to open
alter database archivelog; alter database open;
4. Check the archive status and switch the log
archive log list alter system switch logfile;
The above is the detailed content of Does oracle enable archive mode?. For more information, please follow other related articles on the PHP Chinese website!