文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

rman备份恢复到异机报ORA-01110 ORA-01180错误

2024-04-02 19:55

关注

[oracle@server1 ORACLE]$ rman target /


Recovery Manager: Release 10.2.0.5.0 - Production on Thu Jul 31 13:51:40 2014


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


connected to target database (not started)


RMAN> set dbid 1619708557


executing command: SET DBID


RMAN> startup nomount


Oracle instance started


Total System Global Area    8388608000 bytes


Fixed Size                     2109640 bytes

Variable Size               5117054776 bytes

Database Buffers            3221225472 bytes

Redo Buffers                  48218112 bytes


RMAN> restore controlfile from '/home/oracle/orabase/flash_recovery_area/ORACLE/autobackup/2014_07_31/o1_mf_s_854376584_9xmsr8fm_.bkp';


Starting restore at 31-JUL-14

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=1084 devtype=DISK


channel ORA_DISK_1: restoring control file

channel ORA_DISK_1: restore complete, elapsed time: 00:00:01

output filename=/home/oracle/orabase/oradata/ORACLE/control01.ctl

output filename=/home/oracle/orabase/oradata/ORACLE/control02.ctl

output filename=/home/oracle/orabase/oradata/ORACLE/control03.ctl

Finished restore at 31-JUL-14


RMAN> alter database mount;


database mounted

released channel: ORA_DISK_1



RMAN> restore database;


启动 restore 于 31-7月-14

使用通道 ORA_DISK_1


创建数据文件 fno = 1 名称 = /home/oracle/orabase/oradata/ORACLE/system01.dbf

MAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: restore 命令 (在 07/31/2014 12:06:00 上) 失败

ORA-01180: 无法创建数据文件 1

ORA-01110: 数据文件 1: '/home/oracle/orabase/oradata/ORACLE/system01.dbf'


RMAN>


RMAN> crosscheck backupset;


Starting implicit crosscheck backup at 31-JUL-14

allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=1084 devtype=DISK

Crosschecked 10 objects

Finished implicit crosscheck backup at 31-JUL-14


Starting implicit crosscheck copy at 31-JUL-14

using channel ORA_DISK_1

Finished implicit crosscheck copy at 31-JUL-14


searching for all files in the recovery area

cataloging files...

cataloging done


List of Cataloged Files

=======================

File Name: /home/oracle/orabase/flash_recovery_area/ORACLE/archivelog/2014_07_31/o1_mf_1_116_9xm5yprp_.arc

File Name: /home/oracle/orabase/flash_recovery_area/ORACLE/autobackup/2014_07_31/o1_mf_s_854331141_9xlfd5gc_.bkp


using channel ORA_DISK_1

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_29/fulldb_nvpeiou9_1_1.bak recid=3836 stamp=854156234

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_29/arch_o0peir6m_1_1.bak recid=3837 stamp=854158551

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_30/arch_o2peld7e_1_1.bak recid=3839 stamp=854242543

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_30/fulldb_o3peldbg_1_1.bak recid=3840 stamp=854242673

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_30/arch_o4pelfhd_1_1.bak recid=3841 stamp=854244910

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_31/arch_o6peo1hh_1_1.bak recid=3843 stamp=854328882

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_31/fulldb_o7peo1la_1_1.bak recid=3844 stamp=854329003

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_31/arch_o8peo3o2_1_1.bak recid=3845 stamp=854331139

crosschecked backup piece: found to be 'AVAILABLE'

backup piece handle=/home/oracle/orabase/flash_recovery_area/ORACLE/autobackup/2014_07_31/o1_mf_s_854331141_9xlfd5gc_.bkp recid=3846 


stamp=854373190

Crosschecked 9 objects


由于备份集过期导致无法还原数据库,重新注册备份片。

RMAN> catalog backuppiece '/home/oracle/orabackup/rmandata/data/2014_07_31/arch_o6peo1hh_1_1.bak';

cataloged backuppiece

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_31/arch_o6peo1hh_1_1.bak recid=3847 stamp=854373756

RMAN> catalog backuppiece '/home/oracle/orabackup/rmandata/data/2014_07_31/fulldb_o7peo1la_1_1.bak';

cataloged backuppiece

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_31/fulldb_o7peo1la_1_1.bak recid=3848 stamp=854373783

RMAN> catalog backuppiece '/home/oracle/orabackup/rmandata/data/2014_07_31/arch_o8peo3o2_1_1.bak';

cataloged backuppiece

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_31/arch_o8peo3o2_1_1.bak recid=3849 stamp=854373809



注册成功之后再次查看

RMAN> crosscheck backupset;


allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=1087 devtype=DISK

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_29/fulldb_nvpeiou9_1_1.bak recid=3836 stamp=854156234

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_29/arch_o0peir6m_1_1.bak recid=3837 stamp=854158551

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_30/arch_o2peld7e_1_1.bak recid=3839 stamp=854242543

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_30/fulldb_o3peldbg_1_1.bak recid=3840 stamp=854242673

crosschecked backup piece: found to be 'EXPIRED'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_30/arch_o4pelfhd_1_1.bak recid=3841 stamp=854244910

crosschecked backup piece: found to be 'AVAILABLE'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_31/arch_o6peo1hh_1_1.bak recid=3847 stamp=854373756

crosschecked backup piece: found to be 'AVAILABLE'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_31/fulldb_o7peo1la_1_1.bak recid=3848 stamp=854373783

crosschecked backup piece: found to be 'AVAILABLE'

backup piece handle=/home/oracle/orabackup/rmandata/data/2014_07_31/arch_o8peo3o2_1_1.bak recid=3849 stamp=854373809

crosschecked backup piece: found to be 'AVAILABLE'

backup piece handle=/home/oracle/orabase/flash_recovery_area/ORACLE/autobackup/2014_07_31/o1_mf_s_854331141_9xlfd5gc_.bkp recid=3846 


stamp=854373190

Crosschecked 9 objects


还原数据库

RMAN> restore database;

恢复数据库到指定序列。

RMAN> recover database until sequence 13908

恢复结束后,启动数据库。

RMAN> alter database open resetlogs


阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     813人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     354人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     318人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     435人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     224人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-数据库
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯