http://blog.itpub.net/26655292/viewspace-2131269/

########Q&A

issue1:
ORA-01180: can not create datafile 1
ORA-01110: data file 1: '/u01/system01.dbf'

solution:
rman target / catalog rman11g/rman11g@cat11g

##########

[root@SsevendbS01 rman]# su - oracle
[oracle@SsevendbS01 ~]$ rman target /
 
Recovery Manager: Release 11.2.0.3.0 - Production on Fri Sep 19 09:47:47 2014
 
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
 
connected to target database: sevendb (not mounted)
 
RMAN> restore controlfile from '/usr/openv/rman/control.sevendb';
 
Starting restore at 19-SEP-14
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=461 device type=DISK
 
channel ORA_DISK_1: copied control file copy
output file name=/oradata/sevendb/control01.ctl
output file name=/oradata/sevendb/control02.ctl
Finished restore at 19-SEP-14
 
RMAN> alter database mount;
 
database mounted
released channel: ORA_DISK_1
 
RMAN> list incarnation of database;
 
 
List of Database Incarnations
DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1       1       sevendb    1917838411       PARENT  1          25-OCT-12
2       2       sevendb    1917838411       CURRENT 7906931    17-JAN-13
 
RMAN> run {
2> set until time "to_date ('09/18/2014 18:30:00', 'MM/DD/YYYY HH24:MI:SS' )";
3> allocate channel c1 type sbt;
4> send 'NB_ORA_CLIENT=PsevendbS01' ;
5> restore database;
6> recover database;
7> release channel c1;
8> }
 
executing command: SET until clause
 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on c1 channel at 09/19/2014 09:48:27
ORA-19554: error allocating device, device type: SBT_TAPE, device name: 
ORA-27211: Failed to load Media Management Library
Additional information: 2
 
RMAN>
 
 
 
[oracle@SsevendbS01 trace]$ cat sevendb_ora_13171.trc
Trace file /oracle/app/oracle/diag/rdbms/sevendb/sevendb/trace/sevendb_ora_13171.trc
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /oracle/app/oracle/product/11.2.0/dbhome_1
System name:    Linux
Node name:      SsevendbS01
Release:        2.6.18-194.el5
Version:        #1 SMP Tue Mar 16 21:52:39 EDT 2010
Machine:        x86_64
Instance name: sevendb
Redo thread mounted by this instance: 1
Oracle process number: 23
Unix process pid: 13171, image: oracle@SsevendbS01 (TNS V1-V3)
 
 
*** 2014-09-19 10:04:04.632
*** SESSION ID:(461.19) 2014-09-19 10:04:04.632
*** CLIENT ID:() 2014-09-19 10:04:04.632
*** SERVICE NAME:() 2014-09-19 10:04:04.632
*** MODULE NAME:(rman@SsevendbS01 (TNS V1-V3)) 2014-09-19 10:04:04.632
*** ACTION NAME:(0000001 STARTED1) 2014-09-19 10:04:04.632
 
SKGFQ OSD: Error in function sbtinit on line 2734
SKGFQ OSD: Look for SBT Trace messages in file /oracle/app/oracle/diag/rdbms/sevendb/sevendb/trace/sbtio.log
SBT Initialize failed for oracle.static
[oracle@SsevendbS01 trace]$ which sbttest
/oracle/app/oracle/product/11.2.0/dbhome_1/bin/sbttest
[oracle@SsevendbS01 lib]$ sbttest /etc/hosts
The sbt function pointers are loaded from oracle.static library.
libobk.so could not be loaded.  Check that it is installed
 
查了很多资料发现:
导致上述结果的原因是Oracle没有和NBU做链接,
cd $ORACLE_HOME/lib
ln /usr/openv/netbackup/bin/libobk.so
操作后重新测试SBTTEST:
[oracle@SsevendbS01 lib]$ sbttest /etc/hosts
The sbt function pointers are loaded from libobk.so library.
-- sbtinit succeeded
-- sbtinit (2nd time) succeeded
sbtinit: Media manager supports SBT API version 2.0
sbtinit: Media manager is version 5.0.0.0
sbtinit: vendor description string=Veritas NetBackup for Oracle - Release 7.5 (2013061020)
sbtinit: allocated sbt context area of 8 bytes
sbtinit: proxy copy is supported
-- sbtinit2 succeeded
-- regular_backup_restore starts ................................
OK,配置成功。
 
 
 
[oracle@SsevendbS01 lib]$ ls -lrt /oracle/app/oracle/product/11.2.0/dbhome_1/lib/libobk.so64 
ls: /oracle/app/oracle/product/11.2.0/dbhome_1/lib/libobk.so64: No such file or directory
[oracle@SsevendbS01 lib]$ 
[oracle@SsevendbS01 lib]$ 
[oracle@SsevendbS01 lib]$ pwd
/oracle/app/oracle/product/11.2.0/dbhome_1/lib
[oracle@SsevendbS01 lib]$ cp /usr/openv/netbackup/bin/libobk.so64 libobk.so64
[oracle@SsevendbS01 lib]$ pwd
/oracle/app/oracle/product/11.2.0/dbhome_1/lib
[oracle@SsevendbS01 lib]$ ls -lrt /oracle/app/oracle/product/11.2.0/dbhome_1/lib/libobk.so64 
-r-xr-xr-x 1 oracle oinstall 1511982 Sep 19 10:03 /oracle/app/oracle/product/11.2.0/dbhome_1/lib/libobk.so64
[oracle@SsevendbS01 lib]$ 
[oracle@SsevendbS01 lib]$ 
[oracle@SsevendbS01 lib]$ rman target /
 
Recovery Manager: Release 11.2.0.3.0 - Production on Fri Sep 19 10:04:01 2014
 
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
 
connected to target database: sevendb (DBID=1917838411, not open)
 
RMAN> run {
2> set until time "to_date ('09/18/2014 18:30:00', 'MM/DD/YYYY HH24:MI:SS' )";
3> allocate channel c1 type sbt;
4> send 'NB_ORA_CLIENT=PsevendbS01';
5> restore database;
6> recover database;
7> release channel c1;
8> }
 
executing command: SET until clause
 
using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on c1 channel at 09/19/2014 10:04:04
ORA-19554: error allocating device, device type: SBT_TAPE, device name: 
ORA-27211: Failed to load Media Management Library
Additional information: 2
 
RMAN> exit
 
 
Recovery Manager complete.
 
[oracle@SsevendbS01 lib]$ mv libobk.so64 libobk.so
需要将libobk.so64改为libobk.so。
[oracle@SsevendbS01 lib]$ rman target /
 
Recovery Manager: Release 11.2.0.3.0 - Production on Fri Sep 19 10:04:26 2014
 
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
 
connected to target database: sevendb (DBID=1917838411, not open)
 
RMAN> run {
2> set until time "to_date ('09/18/2014 18:30:00', 'MM/DD/YYYY HH24:MI:SS' )";
3> allocate channel c1 type sbt;
4> send 'NB_ORA_CLIENT=PsevendbS01';
5> restore database;
6> recover database;
7> release channel c1;
8> }
 
executing command: SET until clause
 
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=461 device type=SBT_TAPE
channel c1: Veritas NetBackup for Oracle - Release 7.5 (2013061020)
 
sent command to channel: c1
 
Starting restore at 19-SEP-14
 
channel c1: starting datafile backup set restore
channel c1: specifying datafile(s) to restore from backup set
channel c1: restoring datafile 00002 to /oradata/sevendb/sysaux01.dbf
channel c1: restoring datafile 00004 to /oradata/sevendb/users01.dbf
channel c1: restoring datafile 00005 to /oradata/sevendb/tivoliorts01.dbf
channel c1: restoring datafile 00006 to /oradata/sevendb/TS_CIM_DATA_01.dbf
channel c1: restoring datafile 00009 to /oradata/sevendb/TS_ETL_IND_01.dbf
channel c1: reading from backup piece bk_4975_1_858258002
channel c1: ORA-19870: error while restoring backup piece bk_4975_1_858258002
ORA-19507: failed to retrieve sequential file, handle="bk_4975_1_858258002", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
   Backup file <bk_4975_1_858258002> not found in NetBackup catalog
 
channel c1: starting datafile backup set restore
channel c1: specifying datafile(s) to restore from backup set
channel c1: restoring datafile 00001 to /oradata/sevendb/system01.dbf
channel c1: restoring datafile 00003 to /oradata/sevendb/undotbs01.dbf
channel c1: restoring datafile 00007 to /oradata/sevendb/TS_CIM_IND_01.dbf
channel c1: restoring datafile 00008 to /oradata/sevendb/TS_ETL_DATA_01.dbf
channel c1: reading from backup piece bk_4976_1_858258148
channel c1: ORA-19870: error while restoring backup piece bk_4976_1_858258148
ORA-19507: failed to retrieve sequential file, handle="bk_4976_1_858258148", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
   Backup file <bk_4976_1_858258148> not found in NetBackup catalog
 
failover to previous backup
 
channel c1: starting datafile backup set restore
channel c1: specifying datafile(s) to restore from backup set
channel c1: restoring datafile 00002 to /oradata/sevendb/sysaux01.dbf
channel c1: restoring datafile 00004 to /oradata/sevendb/users01.dbf
channel c1: restoring datafile 00005 to /oradata/sevendb/tivoliorts01.dbf
channel c1: restoring datafile 00006 to /oradata/sevendb/TS_CIM_DATA_01.dbf
channel c1: restoring datafile 00009 to /oradata/sevendb/TS_ETL_IND_01.dbf
channel c1: reading from backup piece bk_4894_1_857653202
channel c1: ORA-19870: error while restoring backup piece bk_4894_1_857653202
ORA-19507: failed to retrieve sequential file, handle="bk_4894_1_857653202", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
   Backup file <bk_4894_1_857653202> not found in NetBackup catalog
 
channel c1: starting datafile backup set restore
channel c1: specifying datafile(s) to restore from backup set
channel c1: restoring datafile 00001 to /oradata/sevendb/system01.dbf
channel c1: restoring datafile 00003 to /oradata/sevendb/undotbs01.dbf
channel c1: restoring datafile 00007 to /oradata/sevendb/TS_CIM_IND_01.dbf
channel c1: restoring datafile 00008 to /oradata/sevendb/TS_ETL_DATA_01.dbf
channel c1: reading from backup piece bk_4895_1_857653337
 
以上报错提示找不到备份片,通常此等报错均是跟NBU的media server有关,通过查看/etc/hosts 和 bp.conf 发现没有问题,最终将问题定位到NB_ORA_CLIENT=PsevendbS01上,查看NBU备份脚本,其中client为PsevendbS而不是PsevendbS01,更改恢复脚本后,恢复成功。

RMAN restore fails with ORA-01180: can not create datafile 1 (文档 ID 1265151.1)的更多相关文章

  1. RMAN restore fails with ORA-01180: can not create datafile 1

      最近在验证.测试备份有效性时,遇到了"ORA-01180: can not create datafile 1"这个错误,顺便结合metalink的官方文档"RMAN ...

  2. 11i - 12 Gather Schema Statistics fails with Ora-20001 errors after 11G database Upgrade (文档 ID 781813.1)

    11i - 12 Gather Schema Statistics fails with Ora-20001 errors after 11G database Upgrade (文档 ID 7818 ...

  3. Getting Started with Recovery Manager (RMAN) (文档 ID 360416.1)

    In this Document Purpose Scope Details Overview of the RMAN EnvironmentDeciding Whether to Use a Fla ...

  4. rman restore spfile from backup

    spfile一般在$ORACLE_HOME/dbs(linux)目录,如果你丢失了spfile并不会引起实例立刻停掉,你的实例可以继续操作,尽管当你restore spfile的时候需要关闭重启实例, ...

  5. How To Restore Rman Backups On A Different Node When The Directory Structures Are Different (Doc ID 419137.1)

    How To Restore Rman Backups On A Different Node When The Directory Structures Are Different (Doc ID ...

  6. 11g RMAN Restore archivelog用法

    I.备份所有归档日志文件 RMAN> BACKUP FORMAT '/u01/backup/arch_%U_%T' skip inaccessible filesperset 5 ARCHIVE ...

  7. Oracle 12c: RMAN restore/recover pluggable database

    查看数据库状态 运行在归档模式,可拔插数据库name=pdborcl SQL> archive log list; Database log mode Archive Mode Automati ...

  8. RMAN Restore, Recovery

    Complete recovery: rman target / nocatalog startup mount; restore database; recover database; alter ...

  9. Checklist for an RMAN Restore (Doc ID 1554636.1)

    Checklist for an RMAN Restore (Doc ID 1554636.1) APPLIES TO: Oracle Database - Enterprise Edition - ...

随机推荐

  1. CSS:word-wrap/overflow/transition

    一 自动换行:一个div有固定宽高,如果其内容很长,必须两行以上才能显示完整的时候,有两种情况要留意 1 默认如果其内容都是中文,那么内容是可以自适应,而不会溢出div 2 如果内容除了中文之外,还有 ...

  2. idea-spark-sbt 打包jar

    1.打开idea下的terminal窗口 2.只打包部分项目 sbt insight-import/clean  insight-import/assembly 这表示只打包主目录下的insight- ...

  3. 发布倒计时!JDK11为我们带来哪些新特性?

    今年7月底,JDK11已经进入了Rampdown Phase Two阶段,这标志着该版本所有特性已经被冻结,不会有新的JEP会加入版本中. 这一阶段将会修复P1–P2级BUG,之后,JDK11预定于今 ...

  4. spring 学习 requestMapping

    1:    @RequestMapping:处理请求地址映射的请求,有6个属性? `         value:   URL 地址  method:   GET/POST/PUT/DELETE co ...

  5. 三 volatile关键字

    一:内存模型: 大家都知道,计算机在执行程序时,每条指令都是在CPU中执行的,而执行指令过程中,势必涉及到数据的读取和写入.由于程序运行过程中的临时数据是存放在主存(物理内存)当中的,这时就存在一个问 ...

  6. union联合体学习

    union,中文名“联合体.共用体”,在某种程度上类似结构体struct的一种数据结构,共用体(union)和结构体(struct)同样可以包含很多种数据类型和变量. 不过区别也挺明显: 结构体(st ...

  7. js数组中的reverse()方法

    reverse方法是将数组中的元素的顺序进行反转,在原数组上操作,然后返回原数组.由于本人是学习js的新人,对reverse函数进行了几个小实验,以下实验均在Chrome浏览器上运行 实验一:reve ...

  8. 【253】◀▶IEW-Unit18

    Unit 18 International Events 1.model1对应题目分析 The Olympic Games is a major international sporting even ...

  9. [计数问题dp]子数列的个数

    http://www.51nod.com/tutorial/course.html#!courseId=15 解题关键:主要是一种思想 $dp[i] = dp[i - 1]*2$ 如果a[i]不在之前 ...

  10. 使用PM2管理nodejs进程分享

    摘要:pm2 是一个带有负载均衡功能的Node应用的进程管理器.本文主要介绍了详解使用PM2管理nodejs进程,小编觉得挺不错的,现在分享给大家,也给大家做个参考.一起跟随小编过来看看吧,希望能帮助 ...