Why ?
You will need to enable archivelog mode if you need any one of the below ::
To restore your DB to last change occur in case of failure in the case of an operating system or disk failure.
To take online backup -hot backup- backup while database is open.
To use Data guard feature (standby DB) you need to enable this as well.
- To check current archive log status
archive log list;
alter system set log_archive_dest_1='LOCATION=/disk/archive' scope=spfile ;NOARCHIVELOG to ARCHIVELOG:Shut down the database instance.
SHUTDOWN immediate ;
Start a new instance and mount, but do not open, the database.
STARTUP MOUNT;
To enable or disable archiving, the database must be mounted but not open.
Change the database archiving mode. Then open the database for normal operations.
ALTER DATABASE ARCHIVELOG; ALTER DATABASE OPEN;
** In case you need to stop archive log mode, in mount state you may use the below :
ALTER DATABASE NOARCHIVELOG;
No comments:
Post a Comment