Oracle 11g correctly deletes the archive log method

Source: Internet
Author: User

1. Landing Rman with Oracle users

rman>RMAN target/

2. List and confirm the archive log path

rman>list archivelog all;

3. Delete archived logs from 7 days ago

rman> DELETE ARCHIVELOG all completed before ' SYSDATE-7 ';

Description

SYSDATA-7, which indicates that the current system time is 7 days ago, the Before keyword represents the archive log 7 days ago.

In the same way, you can delete all logs from 7 days ago to the present, but this command should be considered clearly, after this deletion, it is best to make full backup database immediately

DELETE ARCHIVELOG from time ' SYSDATE-7 '; Delete all logs from 7 days ago to the present, with caution

4. Check the archive log

rman>crosscheck archivelog all;

5. Delete the failed archive log

rman>Delete expired archivelog all;

6, if the log burst, with the above command may not work, you can use the following command to forcibly delete all logs

rman>Delete noprompt force archivelog all;


This article is from "I'm Still alive" blog, please be sure to keep this source http://hujizhou.blog.51cto.com/514907/1876780

Oracle 11g correctly deletes the archive log method

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.