ORA-19599报错处理

今在进行rman备份时出现了以下报错:
RMAN> run
2> {
3> allocate channel c0  type disk;
4> backup database format 'db_%u_%d_%s';
5>  backup format 'log_t%t_s%s_p%p'
6> (archivelog all);
7> }
allocated channel: c0
channel c0: sid=135 devtype=DISK
Starting backup at 31-MAR-10
channel c0: starting full datafile backupset
channel c0: specifying datafile(s) in backupset
input datafile fno=00001 name=/u02/oradata/db01/system01.dbf
input datafile fno=00003 name=/u02/oradata/db01/sysaux01.dbf
input datafile fno=00005 name=/u02/oradata/db01/example.dbf
input datafile fno=00006 name=/u02/oradata/db01/catalog_rman.dbf
input datafile fno=00002 name=/u02/oradata/db01/undotbs01.dbf
input datafile fno=00004 name=/u02/oradata/db01/users01.dbf
channel c0: starting piece 1 at 31-MAR-10
channel c0: finished piece 1 at 31-MAR-10
piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/db_09l9ulom_DB01_9 tag=TAG20100331T105310 comment=NONE
channel c0: backup set complete, elapsed time: 00:01:28
Finished backup at 31-MAR-10
Starting backup at 31-MAR-10
current log archived
channel c0: starting archive log backupset
channel c0: specifying archive log(s) in backup set
input archive log thread=1 sequence=1 recid=1 stamp=714910422
input archive log thread=1 sequence=2 recid=2 stamp=714910592
input archive log thread=1 sequence=3 recid=3 stamp=714911166
input archive log thread=1 sequence=4 recid=4 stamp=714933890
input archive log thread=1 sequence=5 recid=5 stamp=715081478
input archive log thread=1 sequence=6 recid=6 stamp=715085322
input archive log thread=1 sequence=7 recid=7 stamp=715085683
channel c0: starting piece 1 at 31-MAR-10
released channel: c0
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on c0 channel at 03/31/2010 10:54:51
ORA-19599: block number 13717 is corrupt in archived log /u02/flash_recovery_area/DB01/archivelog/2010_03_29/o1_mf_1_1_5v036kx5_.arc
解决办法如下:
删除/u02/flash_recovery_area/DB01/archivelog/2010_03_29/o1_mf_1_1_5v036kx5_.arc文件后,就可以进行备份了。
RMAN> delete force archivelog like '/u02/flash_recovery_area/DB01/archivelog/2010_03_29/o1_mf_1_1_5v036kx5_.arc';
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=135 devtype=DISK
List of Archived Log Copies
Key     Thrd Seq     S Low Time  Name
------- ---- ------- - --------- ----
1       1    1       A 14-MAR-10 /u02/flash_recovery_area/DB01/archivelog/2010_03_29/o1_mf_1_1_5v036kx5_.arc
Do you really want to delete the above objects (enter YES or NO)? yes
deleted archive log
archive log filename=/u02/flash_recovery_area/DB01/archivelog/2010_03_29/o1_mf_1_1_5v036kx5_.arc recid=1 stamp=714910422
Deleted 1 objects
RMAN> run
2> {
3> allocate channel c0  type disk;
4> backup database format 'db_%u_%d_%s';
5> backup format 'log_t%t_s%s_p%p'
6> (archivelog all);
7> }
released channel: ORA_DISK_1
allocated channel: c0
channel c0: sid=135 devtype=DISK
Starting backup at 31-MAR-10
channel c0: starting full datafile backupset
channel c0: specifying datafile(s) in backupset
input datafile fno=00001 name=/u02/oradata/db01/system01.dbf
input datafile fno=00003 name=/u02/oradata/db01/sysaux01.dbf
input datafile fno=00005 name=/u02/oradata/db01/example.dbf
input datafile fno=00006 name=/u02/oradata/db01/catalog_rman.dbf
input datafile fno=00002 name=/u02/oradata/db01/undotbs01.dbf
input datafile fno=00004 name=/u02/oradata/db01/users01.dbf
channel c0: starting piece 1 at 31-MAR-10
channel c0: finished piece 1 at 31-MAR-10
piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/db_0bl9um4s_DB01_11 tag=TAG20100331T105940 comment=NONE
channel c0: backup set complete, elapsed time: 00:01:26
Finished backup at 31-MAR-10
Starting backup at 31-MAR-10
current log archived
channel c0: starting archive log backupset
channel c0: specifying archive log(s) in backup set
input archive log thread=1 sequence=2 recid=2 stamp=714910592
input archive log thread=1 sequence=3 recid=3 stamp=714911166
input archive log thread=1 sequence=4 recid=4 stamp=714933890
input archive log thread=1 sequence=5 recid=5 stamp=715081478
input archive log thread=1 sequence=6 recid=6 stamp=715085322
input archive log thread=1 sequence=7 recid=7 stamp=715085683
input archive log thread=1 sequence=8 recid=8 stamp=715086072
channel c0: starting piece 1 at 31-MAR-10
channel c0: finished piece 1 at 31-MAR-10
piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/log_t715086072_s12_p1 tag=TAG20100331T110112 comment=NONE
channel c0: backup set complete, elapsed time: 00:00:17
Finished backup at 31-MAR-10
Starting Control File and SPFILE Autobackup at 31-MAR-10
piece handle=/u02/flash_recovery_area/DB01/autobackup/2010_03_31/o1_mf_s_715086089_5v5gr9x3_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 31-MAR-10
released channel: c0
验证下归档日志:
RMAN> crosscheck archivelog all;
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=135 devtype=DISK
validation succeeded for archived log
archive log filename=/u02/flash_recovery_area/DB01/archivelog/2010_03_29/o1_mf_1_2_5v03d0g4_.arc recid=2 stamp=714910592
validation succeeded for archived log
archive log filename=/u02/flash_recovery_area/DB01/archivelog/2010_03_29/o1_mf_1_3_5v03xxgp_.arc recid=3 stamp=714911166
validation succeeded for archived log
archive log filename=/u02/flash_recovery_area/DB01/archivelog/2010_03_29/o1_mf_1_4_5v0t3t6k_.arc recid=4 stamp=714933890
validation succeeded for archived log
archive log filename=/u02/flash_recovery_area/DB01/archivelog/2010_03_31/o1_mf_1_5_5v5b84jk_.arc recid=5 stamp=715081478
validation succeeded for archived log
archive log filename=/u02/flash_recovery_area/DB01/archivelog/2010_03_31/o1_mf_1_6_5v5g074b_.arc recid=6 stamp=715085322
validation succeeded for archived log
archive log filename=/u02/flash_recovery_area/DB01/archivelog/2010_03_31/o1_mf_1_7_5v5gcm62_.arc recid=7 stamp=715085683
validation succeeded for archived log
archive log filename=/u02/flash_recovery_area/DB01/archivelog/2010_03_31/o1_mf_1_8_5v5gqqor_.arc recid=8 stamp=715086072
Crosschecked 7 objects
删除失效的归档日志,可以使用以下命令:
RMAN> delete expired archivelog all;
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值