Oracle Database archive mode switching

Source: Internet
Author: User
In the development and testing environments of Oracle databases, the log mode and automatic archiving mode of databases are generally not set, which is conducive to the adjustment of system applications and does not require

In the development and testing environments of Oracle databases, the log mode and automatic archiving mode of databases are generally not set, which is conducive to the adjustment of system applications and does not require

In the development and testing environments of Oracle databases, the log mode and automatic archiving mode of databases are generally not set, which is conducive to the adjustment of system applications, the generation of a large number of archive log files will consume a lot of disk space. However, when the system goes online and becomes a production environment, it is very important to set it to log mode and automatically archive it, because this is an important measure to ensure the security of the system and effectively prevent disasters. In this way, the log files between the regular backup database and the two backup intervals can effectively restore the data at any point in time during this period, data loss can be recovered in many cases or minimized. Although the log mode and automatic archiving settings of the Oracle database are not complex, some of the concepts and operations are confusing. Based on my experience, the analysis is as follows, the environment used is UNIX (HPUX, SOLARIES, AIX, TRU64UNIX) and Oracle8.

First, to enable the OARCLE database to automatically Archive logs, you need to do two things: first, set the database log mode (the database log Mode can be Archive Mode and No Archive mode ), in addition, you can set the Automatic archive mode (for Enabled and Disabled ). 2. How to view the current log and automatic archiving Mode settings of the database:

You can use the archive log list command to view logs.

For example:

The database system running in log automatic archiving mode displays the following results (generally in the production environment)

SVRMGR> archive log list

Database log mode Archive Mode

Automatic archival Enabled

Archive destination/backup/archivelog

Oldest online log sequence 2131

Next log sequence to archive 2133

Current log sequence 2133

The following figure shows the results of the database system that does not start the Database Log mode or automatically archive (usually the test environment)

SVRMGR> archive log list

Database log mode No Archive Mode

Automatic archival Disabled

Archive destination/u01/app/Oracle/product/8.0.5/dbs/arch

Oldest online log sequence 194

Current log sequence 196

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.