his is a two-step process. email if you have questions: fayoubi@gmail.com
STEP ONE : Modify your initSID.ora
Modify your initSID.ora to include the following three lines:
log_archive_start = true
log_archive_dest = /mount_point/oradata/SID/ARCHIVE/arch
log_archive_format = _%s.arc
log_archive_start: This parameter specifies whether archiving should be started automatically when the database is started.
log_archive_dest: This value specifies the default location of the file to be used when archiving redo log files.
log_archive_format: This parameter is used to specify the default file name format for the archive log files, this value is appended to the log_archive_dest value ( %s is the log sequence number ).
STEP TWO : Starting archive logging
The final step to starting archive logging, involves an Oracle SQL*DBA command which is run when the database is mounted but not open.
With the database shut down, use one of the many DBA tools available to manually start the database ( I still prefer to use SQL*DBA ) and execute the following sequence of commands:
startup mount exclusive
connect internal
alter database archivelog;
alter database open;
Now check to ensure archive logging is running. Whilst still connected internal, execute the command archive log list as shown below:
SQLDBA> archive log list
Database log mode ARCHIVELOG
Automatic archival ENABLED
Archive destination /mount_point/oradata/SID/ARCHIVE/arch
Oldest online log sequence 2
Current log sequence 3
SQLDBA>