您的位置:首页 > 数据库

修改数据库控制文件多路径启库时出现ORA-00214

2017-12-20 14:31 399 查看
故障描述:

使用 alter system set    control_files='/u01/app/oracle/oradata/PROD1/control01.ctl','/u01/app/oracle/fast_recovery_area/control02.ctl','/u01/app/oracle/oradata/PROD1/control03.ctl' scope=spfile;

System altered.

不知道怎么回事     数据库库连nomount状态  都没法启动    到相应的目录下查看    发现 参数文件都没有  手工创建了参数文件,将数据库启动到nomount  状态

启动数据库导mount状态时出现

ORACLE instance started.

Total System Global Area 1071333376 bytes

Fixed Size                  1349732 bytes

Variable Size             620758940 bytes

Database Buffers          444596224 bytes

Redo Buffers                4628480 bytes

ORA-00205: error in identifying control file, check alert log for more info,

又使用

 alter system set  control_files='/u01/app/oracle/oradata/PROD1/control01.ctl'   scope=spfile;

System altered.

有使用startup启动数据库

 ORACLE instance started.

Total System Global Area 1071333376 bytes

Fixed Size                  1349732 bytes

Variable Size             620758940 bytes

Database Buffers          444596224 bytes

Redo Buffers                4628480 bytes

Database mounted.

Database opened.

数据库起来了   又开始做控制文件多路径

 alter system set control_files='/u01/app/oracle/oradata/PROD1/control01.ctl','/u01/app/oracle/oradata/PROD1/control02.ctl','/u01/app/oracle/fast_recovery_area/control03.ctl'  scope=spfile;

shutdown   immediate

startup

报错:

ORACLE instance started.

Total System Global Area 1071333376 bytes

Fixed Size                  1349732 bytes

Variable Size             620758940 bytes

Database Buffers          444596224 bytes

Redo Buffers                4628480 bytes

ORA-00214: control file '/u01/app/oracle/oradata/PROD1/control01.ctl' version

1121 inconsistent with file '/u01/app/oracle/oradata/PROD1/control02.ctl'

version 1098

百度 发现  别人给的解释:

根据错误提示为控制文件版本不一致导致。控制文件原理为维护数据库的当前物理状态,为二进制的文件,数据库打开的时候控制文件一致变化。主要记录数据库名字、标示、当前日志SCN、表空间信息等。理论上3个控制文件应该一致。因为版本不一致,且控制文件1版本最新为version

因为版本不一致,且控制文件1版本最新为version
因为版本不一致,且控制文件2版本最新为version 1121.

解决方案:

在操作系统上,备份所有控制文件,同时使用控制文件control01.ctl覆盖重命名control02.ctl、control03.ctl,保证版本一致

数据库启动完成

 ORACLE
instance started.

Total System Global Area 1071333376 bytes

Fixed Size                  1349732 bytes

Variable Size             620758940 bytes

Database Buffers          444596224 bytes

Redo Buffers                4628480 bytes

Database mounted.

Database opened.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: