oracle v rman status,RMAN 中V$ARCHIVED_LOG 中STATUS 为"X" 的文件处理

记录一下[@more@]

今天发现RMAN 中V$ARCHIVED_LOG 中STATUS 为"X" 的文件,想起是因为手动删掉错几个日志造成的,通过如下的方法把RMAN 中的记录也删掉

test:oracle] /oracle/home> rman target /

Recovery Manager: Release 10.2.0.2.0 - Production on Wed Feb 7 14:31:47 2007

Copyright (c) 1982, 2005, Oracle. All rights reserved.

connected to target database: PRD (DBID=2733534212)

RMAN> crosscheck archivelog all;

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=333 devtype=DISK

validation failed for archived log

archive log filename=/testarch2/1_1067_612495174.dbf recid=1032 stamp=61360214

8

validation failed for archived log

archive log filename=/testarch2/1_1068_612495174.dbf recid=1033 stamp=61360250

9

validation failed for archived log

alidation failed for archived log

archive log filename=/testarch2/1_1073_612495174.dbf recid=1038 stamp=61360322

6

validation failed for archived log

archive log filename=/testarch2/1_1074_612495174.dbf recid=1039 stamp=61361285

9

validation failed for archived log

archive log filename=/testarch2/1_1075_612495174.dbf recid=1040 stamp=61361315

1

validation failed for archived log

archive log filename=/testarch2/1_1076_612495174.dbf recid=1041 stamp=61361334

3

validation failed for archived log

archive log filename=/testarch2/1_1077_612495174.dbf recid=1042 stamp=61361389

1

validation failed for archived log

archive log filename=/testarch2/1_1078_612495174.dbf recid=1043 stamp=61361574

1

validation failed for archived log

archive log filename=/testarch2/1_1079_612495174.dbf recid=1044 stamp=61361599

9

RMAN> delete expired archivelog all;

released channel: ORA_DISK_1

allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=333 devtype=DISK

List of Archived Log Copies

Key Thrd Seq S Low Time Name

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

1032 1 1067 X 03-FEB-07 /testarch2/1_1067_612495174.dbf

1033 1 1068 X 03-FEB-07 /testarch2/1_1068_612495174.dbf

1034 1 1069 X 03-FEB-07 /testarch2/1_1069_612495174.dbf

1035 1 1070 X 03-FEB-07 /testarch2/1_1070_612495174.dbf

Do you really want to delete the above objects (enter YES or NO)? YES

deleted archive log

archive log filename=/testarch2/1_1067_612495174.dbf recid=1032 stamp=61360214

8

deleted archive log

archive log filename=/testarch2/1_1068_612495174.dbf recid=1033 stamp=61360250

9

deleted archive log

archive log filename=/testarch2/1_1069_612495174.dbf recid=1034 stamp=61360266

7

RMAN> report obsolete;

RMAN retention policy will be applied to the command

RMAN retention policy is set to recovery window of 28 days

Report of obsolete backups and copies

Type Key Completion Time Filename/Handle

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

Backup Set 19 24-JAN-07

Backup Piece 19 24-JAN-07 arch612727822_21_1

Backup Set 20 24-JAN-07

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值