Archive Enabled
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 393
Current log sequence 395
SQL> alter system set log_archive_dest_1=’LOCATION=/oracle/app/archivelogs’ scope=spfile;
ORACLE instance started.
Total System Global Area 801701888 bytes
Fixed Size 2232640 bytes
Variable Size 524291776 bytes
Database Buffers 268435456 bytes
Redo Buffers 6742016 bytes
Database mounted.
Database altered.
Once the mode has been switch to archive log, we can open the database.
Database altered.
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /oracle/app/archivelogs
Oldest online log sequence 393
Next log sequence to archive 395
Current log sequence 395
System altered.
SQL> !ls -ltr /oracle/app/archivelogs
total 7432
-rw-rw—-. 1 oracle oracle 7607296 May 22 09:15 1_395_809518082.dbf
Hope the steps provided will help everyone in remembering how to place a database into archive log mode. Enjoy!
Current Oracle Certs
Bobby Curtis
I’m Bobby Curtis and I’m just your normal average guy who has been working in the technology field for awhile (started when I was 18 with the US Army). The goal of this blog has changed a bit over the years. Initially, it was a general blog where I wrote thoughts down. Then it changed to focus on the Oracle Database, Oracle Enterprise Manager, and eventually Oracle GoldenGate.
If you want to follow me on a more timely manner, I can be followed on twitter at @dbasolved or on LinkedIn under “Bobby Curtis MBA”.