How to modify an Oracle database as a non-archive mode

Source: Internet
Author: User
Tags oracle database sqlplus

Action steps are as follows:

Step 1 Log on to the server with an Oracle user and execute the following command into Sqlplus.

Oracle@smgwrpt:~> sqlplus "/as sysdba"

Step 2 View the current archive mode for the database.

Sql> Archive Log List

Database Log Mode Archive mode

Automatic Archival Enabled

Archive Destination Use_db_recovery_file_dest

Oldest online log sequence 2

Next log sequence to archive 2

Current Log Sequence 4

From the above information, the database is currently in archive mode (the screen display information is for informational purposes only).

If the database is not currently in archive mode, you can skip the following action.

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

Step 3 Before you modify the database archive mode, you need to close the database.

sql> shutdown Immediate

You cannot use abort or power off to close the database here.

Step 4 Starts the database in the Mount state again.

Sql> Startup Mount

Step 5 After you successfully start the database, modify the database to be not in archive mode.

sql> ALTER DATABASE Noarchivelog;

Database altered.

Learn from the above information that the database archive schema has been modified successfully.

Step 6 enables the database to work properly.

sql> ALTER DATABASE open;

Database altered.

Learn from the above information that the database was enabled successfully.

Step 7 View the current archive mode of the validation database again.

Sql> Archive Log List

Database log mode No Archive mode

Automatic Archival Disabled

Archive Destination Use_db_recovery_file_dest

Oldest online log sequence 3

Current log Sequence 5

From the above information to know that the database is currently in a non-archive mode, the modification succeeded.

This article is from "Richard's notes-accumulate micro Cheng" blog, please be sure to keep this source http://zxf261.blog.51cto.com/701797/762043

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.