Oracle archiving and Flash back switches

Source: Internet
Author: User
Tags switches

First, the archived switch

1. Check if the archive is open:

sql> archive log list;

2. Set the archive path

Sql> alter system set log_archive_dest_1= ' LOCATION=D:\ARCH2 ';

3. Open Archive

sql> shutdown immediate; --Close the database

sql> startup Mount; --Boot to Mount state

sql> ALTER DATABASE Archivelog; --Open Archive

sql> ALTER DATABASE open; --Open Database

4. Close the Database archive

sql> shutdown immediate;

sql> startup Mount;

sql> ALTER DATABASE Noarchivelog;

sql> ALTER DATABASE open;


Second, the flash back area of the switch

1. Check if the Flash back zone is open

Sql> select flashback_on from V$database;

2, set the size of the flash recovery area

Sql> alter system set db_recovery_file_dest_size=30g Scope=both;

3. Set the Flash Recovery zone path

Sql> alter system set db_recovery_file_dest= '/u01/flashback ' Scope=both;

4. Turn on flash back

sql> shutdown immediate;

sql> startup Mount;

Sql> ALTER DATABASE flashback on; --Turn on flash back

sql> ALTER DATABASE open;

5. Turn off flash back

Sql> ALTER DATABASE flashback off;

This article is from the "Luoyangzhigui" blog, make sure to keep this source http://luoyangzhigui.blog.51cto.com/9207064/1793622

Oracle archiving and Flash back switches

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.