Oracle 11g R2 Management archive log files

Source: Internet
Author: User

There are two ways to run an Oracle database: Archive (ARCHIVELOG) and non-archive (NO ARCHIVELOG). In non-archive mode, the log switch overwrites the previous redo log files directly and does not generate an archive log. The database runs under archive mode, and after the log switchover, the arch process archives The full redo log file, which, by default, runs in a non-archive mode, primarily because of the performance issues that the archiving system brings. The arch process exists only when the database is running in the archive mode. The arch process is an optional background process for Oracle, which archives the logs to save all changes to the database. This allows the database administrator to recover the database to the state at the time of the failure, even if the data file disk is damaged.

Configuring the Database archive log

The way to configure the database archive log consists of the following 3 steps:

Query how the database is archived and determine how it is not currently archived

Connect the target database with the SYS user as SYSDBA, and then execute the archivelog List command to view the database archive mode:

Close the database and start the database to Mount state

Use the ALTER DATABASE Archivelog command to set the database to archive mode and verify that the archive mode of the database has changed

Get archived log information

The data dictionary view helps you get database configuration information. Users get archived log information by using the V$archive_dest and V$archive_log views

V$archive_dest: Displays all current archive log storage locations and their status

V$archive_log: Displaying historical archive log information

How to view all valid archive log file storage directories

Gets the information of the archived log file, which copies the online redo log files to an archive log file after each log switchover, resulting in a sequential sequence of log files that can be used to restore a backup. The names and locations of these log files are controlled by a number of initialization parameters.

If you have any questions about this article, please add the following discussion

Oracle 11g R2 Management archive log files

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.