Switching between Oracle archive mode and non-archive mode

Source: Internet
Author: User
Tags oracle database installation

Oracle never archives logs to archive log:

sql> shutdown immediate;

The database is closed.

The database has been uninstalled.

The Oracle routine has been closed.

sql> startup Mount;

The Oracle routine has been started.

The database is loaded.

sql> ALTER DATABASE Archivelog;

The database has changed.

sql> ALTER DATABASE open;

The database has changed.

Create an archive path (Oracle installation user right), for Linux environments, created under root or Oracle database installation User:

After logging in to the database, use the following command to modify the path:

Sql>alter system set log_archive_dest_1= ' Location=/oracle/app/arch ' scope =both; (Modify archive path)

sql> archive log list; (see if the archive path was modified successfully)

Oracle changes from archived logs to non-archived logs:

Sql>archive log list;

sql> shutdown immediate;

The database is closed.

The database has been uninstalled.

The Oracle routine has been closed.

sql> startup Mount;

The Oracle routine has been started.

The database is loaded.

sql> ALTER DATABASE Noarchivelog;

The database has changed.

Sql>archive log list;

sql> ALTER DATABASE open;

The database has changed.

Switching between Oracle 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.