Set the Oracle database to archive mode and non-archive mode

Source: Internet
Author: User

first, set the Oracle database to archive mode

1) Sql>shutdown normal/immediate;
2) Sql>startup Mount;
3) Sql>alter database archivelog;
4) Sql>alter database open;
5) archive log list;

Note: Show parameter log_archive_dest see where the archive logs are stored.

Second, set the Oracle database to non-archive mode
1), Close the database
Shutdown immediate
2), and then back up the database to mount mode
Startup Mount
3), turn off Flash Flash database mode, if not closed, when you close the archive log when there will be a nasty ora-38774 error.
ALTER DATABASE Flashback off
4), then change the database to non-archive mode
ALTER DATABASE Noarchivelog;
5), all modified later, and then open the database
ALTER DATABASE open;
6), look at the size of the archive log space
SELECT * from V$recovery_file_dest;
Then look at the status of log logs
SELECT * from V$log;
And look at the flashback log usage.
SELECT * from V$flash_recovery_area_usage;

Set the Oracle database to archive mode and non-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.