RMAN恢复报错: ORA-01103: database name 'POWERDES' in control file is not 'PDUNQ'

执行rman恢复的时候报错

 

RMAN> alter database mount;


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 02/03/2016 21:29:13
ORA-01103: database name 'POWERDES' in control file is not 'PDUNQ'


RMAN> exit

 

 

 



解决方案:

 

 

 

SQL> create pfile='/oracle/pfile.12' from spfile;


File created.


SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@pldb1 ~]$ vim /oracle/pfile.12
*.db_name='powerdes'  #这里原来是pdunq,将之换成powerdes即可,然后保存退出


[oracle@pldb1 ~]$ rlwrap sqlplus / as sysdba


SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 3 21:39:56 2016


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




Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


SQL>
SQL> create spfile from pfile='/oracle/pfile.12';


File created.


SQL> startup nomount
ORACLE instance started.


Total System Global Area 1453092864 bytes
Fixed Size		    2213416 bytes
Variable Size		  855640536 bytes
Database Buffers	  587202560 bytes
Redo Buffers		    8036352 bytes
SQL> 





然后重新rman退出登录执行alter操作搞定,可以alter database mount了

 

[oracle@pldb1 ~]$ rlwrap rman target /


Recovery Manager: Release 11.2.0.1.0 - Production on Wed Feb 3 21:40:55 2016


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


connected to target database: POWERDES (not mounted)


RMAN> restore controlfile to '/home/oradata/powerdes/control01.ctl' from '/oracle/c-3391761643-20160203-01';


Starting restore at 03-FEB-16
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=20 device type=DISK


channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
Finished restore at 03-FEB-16


RMAN> restore controlfile to '/oracle/app/oracle/flash_recovery_area/powerdes/control02.ctl' from '/oracle/c-3391761643-20160203-01';


Starting restore at 03-FEB-16
using channel ORA_DISK_1


channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
Finished restore at 03-FEB-16


RMAN> alter database mount;


database mounted
released channel: ORA_DISK_1


RMAN> 

 

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值