Oracle related: Rman Crosscheck Delete invalid Archive

Source: Internet
Author: User

After the archived logs are manually deleted, the Rman backup detects that the logs are missing and cannot be further executed.

Therefore, you need to manually execute the crosscheck process, and then the Rman backup can be restored to normal.

1. Crosscheck log

$ Rman target/
Recovery Manager: Release 9.2.0.4.0-64bit Production
Copyright (c) 1995,200 2, Oracle Corporation. All rights reserved.
Connected to target database: AVATAR2 (DBID = 2480694409)

RMAN> crosscheck archivelog all;



Using target database controlfile instead of recovery catalog

Allocated channel: ORA_DISK_1

Channel ORA_DISK_1: sid = 25 devtype = DISK

Validation failed for archived log

Archive log filename =/opt/oracle/oradata/avatar2/archive/4152714.dbf recid = 2702 stamp = 545107659

Validation failed for archived log

Archive log filename =/opt/oracle/oradata/avatar2/archive/4152715.dbf recid = 2703 stamp = 545108268

...........

Validation failed for archived log

Archive log filename =/opt/oracle/oradata/avatar2/archive/logs 2985.dbf recid = 2973 stamp = 545399327

Validation succeeded for archived log

Archive log filename =/opt/oracle/oradata/avatar2/archive/logs 2986.dbf recid = 2974 stamp = 545400820

Validation succeeded for archived log

Archive log filename =/opt/oracle/oradata/avatar2/archive/logs 2987.dbf recid = 2975 stamp = 545401757

Validation succeeded for archived log

Archive log filename =/opt/oracle/oradata/avatar2/archive/logs 2988.dbf recid = 2976 stamp = 545402716

Validation succeeded for archived log

Archive log filename =/opt/oracle/oradata/avatar2/archive/logs 2989.dbf recid = 2977 stamp = 545403661

Validation succeeded for archived log

Archive log filename =/opt/oracle/oradata/avatar2/archive/4152990.dbf recid = 2978 stamp = 545404946

Validation succeeded for archived log

Archive log filename =/opt/oracle/oradata/avatar2/archive/logs 2991.dbf recid = 2979 stamp = 545406220

Crosschecked 278 objects



RMAN>

2. Run the delete expired archivelog all command to delete all expired archived logs:

RMAN> delete expired archivelog all;



Released channel: ORA_DISK_1

Allocated channel: ORA_DISK_1

Channel ORA_DISK_1: sid = 12 devtype = DISK



List of Archived Log Copies

Key Thrd Seq S Low Time Name

--------------------------------

376 1 2714X23-NOV-04 =/opt/oracle/oradata/avatar2/archive/4152714.dbf

.....

  • 1
  • 2
  • Next Page

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.