ORACLE报错 ORA-00201: control file version 11.2.0.4.0 incompatible with ORACLE version 11.2.0.0.0

本文介绍了解决Oracle数据库在异机恢复过程中遇到的控制文件版本不兼容问题的方法。通过调整参数文件中的兼容设置,成功实现了不同版本间的数据库恢复。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述:Oracle异机恢复,恢复完控制文件,将数据库mount时报错,ORA-00201: control file version 11.2.0.4.0 incompatible with ORACLE version 11.2.0.0.0,如下:
RMAN> 
run{
RESTORE CONTROLFILE from '/orcl_cntrol_37432_1_173132134';
alter database mount;
}

using target database control file instead of recovery catalog
...

Starting restore at 2018-03-20:09:40:33

channel ch00: restoring control file
channel ch00: restore complete, elapsed time: 00:01:36
output file name=/oracledata/orcl/control01.ctl
output file name=/oracledata/orcl/control02.ctl
output file name=/oracledata/orcl/control03.ctl
Finished restore at 2018-03-20:09:42:09

released channel: ch00
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 03/20/2018 09:42:09
ORA-00201: control file version 11.2.0.4.0 incompatible with ORACLE version 11.2.0.0.0
ORA-00202: control file: '/oracledata/orcl/control01.ctl'


Recovery Manager complete.

======
原因:这是因为源数据库的oracle版本和目标机不同

解决方法:由于使用的是spfile,需要先生成一个pfile,修改pfile的compatible部分,然后再由这个pfile生成新的spfile:
SQL> show parameter spfile;

NAME     TYPE        VALUE
-------- ----------- ------------------------------
spfile   string      /oracle/product/11.2.0/dbs/spfileorcl.ora
 
SQL> create pfile='/tmp/mqs20180320/orcl/initpfile.ora' from spfile;

File created.

修改 /tmp/mqs20180320/orcl/initpfile.ora 文件,将
*.compatible='11.2.0'
改为

*.compatible='11.2.0.4'


SQL> shutdown immediate
SQL> create spfile from pfile='/tmp/mqs20180320/orcl/initpfile.ora';
SQL> startup nomount  
SQL> alter database mount;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值