Set the Oracle database to non-Archive

Source: Internet
Author: User
In archive log mode, there may be an annoying ORA-00257 error when the size of the archive log exceeds the maximum, as we have discussed how to increase the archive log space. However

In archive log mode, there may be an annoying ORA-00257 error when the size of the archive log exceeds the maximum, as we have discussed how to increase the archive log space. However

In archive log mode, there may be an annoying ORA-00257 error when the size of the archive log exceeds the maximum, as I mentioned above how to increase the archive log space. In a common development environment, there is no need to archive logs. At this time, we disable the archive logs of the database, that is, to change the database to the non-archive log mode, what should I do.

All operations here must be performed on the database's machine. Log On with the SYS user and set the archive process to close.

Alter system set log_archive_start = false scope = spfile;

Close the database.

Shutdown immediate

Then, start the database to the mount mode.

Startup mount

Close the flash back database mode, if not closed, there will be a nasty ORA-38774 error when you close archiving logs later.

Alter database flashback off

Change the database to non-archive mode.

Alter database noarchivelog;

After modification, open the database

Alter database open;

Check the space of archived logs.

Select * from v $ recovery_file_dest;

Next, let's take a look at the log status.

Select * from v $ log;

Check the usage of the flash back log.

Select * from v $ flash_recovery_area_usage;

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.