为什么db2 restore databasedatabase 会报06026

博客访问: 7083
博文数量: 5
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Oracle
将系统备份,准备恢复至备机上,将spfile,备份拷贝至备机,
1.删除备机的现有库
sql>shutdown
sql>startup
mount restrict
2.使用spfile创建pfile
sql>create
pfile from spfile='/home/oracle//spfileogg.ora';
3.修改pfile,并使用pfile启动数据库至nomount
sql>startup nomount pfile='PFILE路径';
4.使用rman恢复控制文件,并启动至mount状态
rman> restore controlfile from 'controlfile备份';
'alter database mount';
rman>catalog start with '备份位置';
5.恢复数据文件时遇到如下报错:
RMAN-06026: some
targets not found - aborting restore
RMAN-06023: no
backup or copy of datafile 4 found to restore
RMAN-06023: no
backup or copy of datafile 3 found to restore
RMAN-06023: no
backup or copy of datafile 2 found to restore
RMAN-06023: no
backup or copy of datafile 1 found to restore
从网上找了一些解决方法,多数是oracle9i版本的,使用dbms包来解决,因为我的库是11g的,没有能解决问题。
还有个朋友有同样的问题,是个别数据文件的路径不对,经检查我这里的路径也不存在问题。
最后通过itpub的的解决方案解决,
List of Database
Incarnations
DB Key& Inc Key DB Name& DB ID&&&&&&&&&&& STATUS& Reset SCN&
Reset Time
------- -------
-------- ---------------- --- ---------- ----------
1&&&&&& 1&&&&&&
OGG&&&&& &&&&&& PARENT&
1&&&&&&&&& 17-SEP-11
2&&&&&& 2&&&&&&
OGG&&&&& &&&&&& PARENT&
995548&&&& 24-FEB-14
3&&&&&& 3&&&&&&
OGG&&&&& &&&&&& CURRENT 1070775&&& 26-FEB-14
rman>reset
database to& incarnation 2;
rman>restore
rman>recover
恢复完成,以resetlogs参数open成功。
恢复后查找了一些incarnation的资料
官方解释如下:
Listing Database Incarnations
Each time an OPEN RESETLOGS operation is performed on a
database, this operation creates a new
the database. Database incarnations and their effect on database recovery are
explained in .
Incarnations
A database
incarnation is created whenever you open the database with the
RESETLOGS option.
After complete recovery, you can resume normal operations
without an OPEN
RESETLOGS. After a DBPITR or recovery with a backup control file,
however, you must
open the database with the RESETLOGS option, thereby creating a
new incarnation of
the database. The database requires a new incarnation to avoid
confusion when two
different redo streams have the same SCNs, but occurred at
different times. If
you apply the wrong redo to your database, then you corrupt it.
The existence of
multiple incarnations of a single database determines how RMAN
treats backups that
are not in the current incarnation path. Usually, the current
database incarnation
is the correct one to use. Nevertheless, in some cases resetting the
database to a
previous incarnation is the best approach. For example, you may be
dissatisfied with
the results of a point-in-time recovery that you have performed and
want to return the
database to a time before the RESETLOGS. An understanding of
incarnations is helpful to prepare for such situations.
总结了一下,主要是首次恢复至catalog
start with时因为工作的时候,没有继续进行,第二次又重新备份,重新复制了备份文件,造成此问题,所以将incarnation恢复至之前一个就正常了。
阅读(570) | 评论(0) | 转发(0) |
上一篇:没有了
相关热门文章
给主人留下些什么吧!~~
请登录后评论。RMAN Restore异常终止,报错:Cannot allocate memory_数据库技术_Linux公社-Linux系统门户网站
你好,游客
RMAN Restore异常终止,报错:Cannot allocate memory
来源:Linux社区&
作者:zhou1862324
RMAN restore过程中报Cannot allocate memory
现象:channel ORA_DISK_1: restoring datafile 00030 to +TESTDG/rac/datafile/users.292.channel ORA_DISK_1: reading from backup piece /UNID/full_eaope61n.bakchannel ORA_DISK_1: ORA-19870: error while restoring backup piece /UNID/full_eaope61n.bakORA-19501: read error on file "/UNID/full_eaope61n.bak", block number 6610944 (block size=8192)ORA-27072: File I/O errorLinux-x86_64 Error: 12: Cannot allocate memoryAdditional information: 4Additional information: 6610944Additional information: -1
failover to previous backup
RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of restore command at 11/21/:50RMAN-06026: some targets not found - aborting restoreRMAN-06023: no backup or copy of datafile 4 found to restore
连续几次都报Linux-x86_64 Error: 12: Cannot allocate memory
RMAN Restore脚本极其简单:restore command: nohup rman target / cmdfile=/home//rman log=/home/oracle/rman.log &
[oracle@rac1 ~]$ cat /home/oracle/rman [oracle@rac1 ~]$
分析:1、RMAN原库与恢复目的库配置相差较大:source:[oracle@JOADBTEST01 ~]$ free -g&total used free shared buffers cachedMem: 15 15 0 0 0 6-/+ buffers/cache: 9 6Swap: 17 1 15
target:[root@rac1 ~]# free -g&total used free shared buffers cachedMem: 3 3 0 0 0 2-/+ buffers/cache: 0 3Swap: 5 1 42、客户备份脚本非常简单:cat backup.cmd没有限制backup piece大小,200多G的库最后只备份成了1个备份结果文件:所有的备数据文件都备份到了一个大文件中,该文件大小为90多G。诊断为:超大的备份结果文件和目的主机超低的配置导致了内存出现瓶颈,导致了RMAN无法继续工作,异常退出。
解决方法:1.重新进行备份,限制backup piece大小为2G。2.目的主机为虚拟机,调高配置。
推荐阅读:
RMAN 配置归档日志删除策略
Oracle基础教程之通过RMAN复制数据库
RMAN备份策略制定参考内容
RMAN备份学习笔记
Oracle数据库备份加密 RMAN加密
更多Oracle相关信息见 专题页面
相关资讯 & & &
& (02月17日)
& (01月19日)
& (03月10日)
& (01月19日)
& (12/21/:27)
图片资讯 & & &
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款博客访问: 1563729
博文数量: 442
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Linux
Oracle数据库使用RMAN备份的时候,会把归档日志压成备份集(backup set),而有时候我们为了恢复数据的需要可能需要从这些备份集中解析出归档日志(archive log),这时可以用restore这个命令。该命令的参数可以用SCN、SEQUENCE、TIME等,也可以附加preview参数先查看计划,该参数和list backup of archivelog是等效的。1、根据时间查看需要的备份集:ERPDB1@/orabak>rman target /Recovery Manager: Release 10.2.0.3.0 - Production on Mon Jun 29 16:20:40 2009Copyright (c) , Oracle. All rights reserved.connected to target database: ERPDB (DBID=)RMAN> list backup of archivelog time between "to_date(' 08:00:00','yyyy-mm-dd hh24:mi:ss')" and "to_date(' 13:00','yyyy-mm-dd hh24:mi:ss')";以下是示例,并非原来的文件列表:BS Key& Size&&&&&& Device Type Elapsed Time Completion Time------- ---------- ----------- ------------ ---------------18021&& 104.97M&&& DISK&&&&&&& 00:00:25&&&& 02-APR-10BP Key: 21243&& Status: AVAILABLE& Compressed: YES& Tag: TAG015Piece Name: /orabak/arch/CNDERPDB_arch_88_1List of Archived Logs in backup set 18021Thrd Seq&&&& Low SCN&&& Low Time& Next SCN&& Next Time---- ------- ---------- --------- ---------- ---------1&&& -APR-10
02-APR-101&&& -APR-10
02-APR-101&&& -APR-10
02-APR-101&&& -APR-10
02-APR-101&&& -APR-10
02-APR-101&&& -APR-10
02-APR-101&&& -APR-10
02-APR-10或者用preview查看:RMAN> restore archivelog time between "to_date(' 08:00:00','yyyy-mm-dd hh24:mi:ss')" and "to_date(' 13:00','yyyy-mm-dd hh24:mi:ss')"也可以先指定时间格式,然后就可以不用to_date函数了:RMAN> SQL 'ALTER SESSION SET NLS_DATE_FORMAT="YYYY-MM-DD:HH24:MI:SS"';RMAN> restore archivelog time between ' 09:00:00' and ' 12:00:00'2、把备份集文件COPY到默认的归档路径中我这里是/orabak/arch,从第一步文件列表的Piece Name也可以看出来归档的路径。否则在restore过程中会报以下错误:channel ORA_DISK_1: reading from backup piece /orabak/arch/ERPDB_arch_53_1ORA-19870: error reading backup piece /orabak/arch/ERPDB_arch_53_1ORA-19505: failed to identify file "/orabak/arch/ERPDB_arch_53_1"ORA-27037: unable to obtain file statusIBM AIX RISC System/6000 Error: 2: No such file or directoryAdditional information: 33、执行restore命令,一般如果是临时需要这些文件,可以指定归档日志恢复到其他的目录,这时必须用run命令:RMAN> run {2> set archivelog destination to '/orabak/testarch';3> SQL 'ALTER SESSION SET NLS_DATE_FORMAT="YYYY-MM-DD:HH24:MI:SS"';4> restore archivelog time between ' 09:00:00' and ' 12:10:00';5> }executing command: SET ARCHIVELOG DESTINATIONusing target database control file instead of recovery catalogsql statement: ALTER SESSION SET NLS_DATE_FORMAT="YYYY-MM-DD:HH24:MI:SS"Starting restore at 29-JUN-09allocated channel: ORA_DISK_1......Finished restore at 29-JUN-09如果我们明确要恢复哪些归档日志,可以用SEQUENCE BETWEEN integer1 AND integer2命令来操作。相关文档:/docs/cd/B19306_01/backup.102/b14194/rcmsynta008.htm#i78730/docs/cd/B19306_01/backup.102/b14194/rcmsynta051.htm#sthref796
阅读(2481) | 评论(0) | 转发(1) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。应对RMAN-06026错误,使用DBMS_BACKUP_RESTORE进行恢复_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
应对RMAN-06026错误,使用DBMS_BACKUP_RESTORE进行恢复
上传于||文档简介
&&应​对​R​M​A​N​-62错​误​,​使​用​D​B​M​S​_​B​A​C​K​U​P​_​R​E​S​T​O​R​E​进​行​恢​复
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩9页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢

我要回帖

更多关于 restore database 的文章

 

随机推荐