This document describes how to enable and disable the Oracle archive mode for a database. 1. shutdown normal or shutdown immediate disable database oracle Training
1 .oracle@jumper oracle]$ sqlplus "/ as sysdba" 2.SQL*Plus: Release 9.2.0.4.0 - Production on Sat Oct 15 15:48:36 2005 3.Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. 4.Connected to: 5.Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production 6.With the Partitioning option 7.JServer Release 9.2.0.4.0 - Production 8.SQL> shutdown immediate; 9.Database closed. 10.Database dismounted. 11.ORACLE instance shut down.
2. Start the database to the mount status
1.SQL> startup mount; 2.ORACLE instance started. 3.Total System Global Area 101782828 bytes 4.Fixed Size 451884 bytes 5.Variable Size 37748736 bytes 6.Database Buffers 62914560 bytes 7.Redo Buffers 667648 bytes 8.Database mounted.
Iii. Enable or stop archive mode if you want to enable the Oracle archive mode, use
1. alter database archivelog command. 2. SQL> alter database archivelog; 3. database altered. 4. SQL> alter database open; 5. database altered. 6. SQL> archive log list; 7. database log mode Archive Mode 8. automatic archival Enabled 9. archive destination/opt/oracle/oradata/conner/archive 10. oldest online log sequence 148 11. next log sequence to archive 151 12. current log sequence 151