Two types of Oracle archive Mode

Source: Internet
Author: User

The following articles mainly describe how to correctly start or disable the Oracle archive mode. We all know that the Oracle database runs in two modes, mainly implementing the Oracle archive mode (archivelog) non-archive mode (noarchivelog ).

The Oracle archive mode can improve the recoverability of Oracle databases. Production Databases should all run in this mode. The Archive mode should be combined with the corresponding backup policies, only when the archive mode does not have a corresponding backup policy will it be troublesome.

This article briefly introduces how to enable and disable the Oracle archiving mode for databases.

1. shutdown normal or shutdown immediate

 
 
  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.  

3. Enable or stop archive Mode

To enable the Oracle archiving 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

The above content is an introduction to how to enable or disable the Oracle archive mode.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.