Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

ORACLE archiving and flashback switch

2025-03-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

I. Archived switch

1. Check whether the archive is open:

SQL> archive log list;

2. Set the archive path

SQL> alter system set log_archive_dest_1='location=d:\arch3';

3. Open file

SQL> shutdown immediate; --shutdown database

SQL> startup mount; --Start 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;

II. Switch of flashback zone

1. Check whether the flashback area is opened

SQL> select flashback_on from v$database;

2. Set the size of flashback recovery area

SQL> alter system set db_recovery_file_dest_size=30G scope=both;

3. Set the path of flashback recovery area

SQL> alter system set db_recovery_file_dest='/u01/flashback' scope=both;

4. Start flashback

SQL> shutdown immediate;

SQL> startup mount;

SQL> alter database flashback on; --Enable flashback

SQL> alter database open;

5. Close flashback

SQL> alter database flashback off;

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report