你好,游客 登录 注册 搜索
背景:
阅读新闻

RMAN恢复数据库ORA-01861错误

[日期:2012-07-01] 来源:Linux社区  作者:mikixiyou [字体:大 中 小]

Cause

Bug 8513905 : ORA-1861 DURING RMAN RECOVERY

Backuppieces in the controlfile have an invalid date. To check if you are hitting this bug query the controlfile:

SQL> alter session set nls_date_format='dd-mon-rr hh24:mi:ss'; 
SQL> select recid, status, device_type, handle, completion_time from
v$backup_piece where completion_time > '<date>';

Use '<date>' to limit the output to those backuppieces being used during recovery and check for invalid dates.   In this case, completion_time for the backuppiece was 04/31/2009 00:57:33 (April only has 30 days).

If the SQL above raises ORA-1861, dump the controlfile and find the trace file in target udump directory :

SQL> alter session set events 'immediate trace name controlf level 20';

Look for a the BACKUP PIECE RECORDS section eg

 *************************************************************************** 
  BACKUP PIECE RECORDS 
  *************************************************************************** 
  ... 
  RECID #68030 Recno 5688 Record timestamp 06/30/09 16:32:01 piece #1 copy 
  #1 pool 0 
  Backup set key: stamp=690857355, count=69079 
  V$RMAN_STATUS: recid=1152921504606803592, stamp=1152921504606803584 
  Flags: <concurrent access> <compressed> 
  Device: DISK 
  Handle: /orashare/backup/S_DBARCLG_BCK_enkir9cb_1_1 
  Media-Handle: 
  Comment: 
  Tag: S_DBARCLG_Q1QSST1_300609_0015 
  Completion time 06/31/09 11:43:20 <<<

在doc中说,影响到的数据库版本从10.2.0.3到10.2.0.5。

这下麻烦大了。

参照 doc 一步一步去解决吧。

第一种解决方法,重建控制文件。

第二种,第三种,请参考官方doc,ID 852723.1

linux
相关资讯       oracle数据库教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款