In order to switch to ARCHIVELOG mode from NOARCHIVELOG mode do the following:
edit your init.ora or spfile with the following information
1. create a archive log directory in a path and specify it in init.ora file.
log_archive_dest="/oradata/archlog"
log_archive_format="%t_%s.dbf"
log_archive_start=true
2. Once specifying the path-shut down the database and follow below steps:
shutdown database;
startup mount;
alter database archivelog;
alter database open;
Now, the database is in archivelog. Check it using
SELECT LOG_MODE FROM SYS.V$DATABASE;
edit your init.ora or spfile with the following information
1. create a archive log directory in a path and specify it in init.ora file.
log_archive_dest="/oradata/archlog"
log_archive_format="%t_%s.dbf"
log_archive_start=true
2. Once specifying the path-shut down the database and follow below steps:
shutdown database;
startup mount;
alter database archivelog;
alter database open;
Now, the database is in archivelog. Check it using
SELECT LOG_MODE FROM SYS.V$DATABASE;