修改数据库控制文件多路径启库时出现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.
使用 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.
相关文章推荐
- 解决Oracle 11g修改多路复用控制文件后出现ORA-01507/ORA-00105
- 修改SQL Server 2005/2008 用户数据库文件默认路径和默认备份路径
- ORA-00214 ORA-02095 控制文件损坏的恢复实战经验
- Oracle创建表空间报错,ORA-01119: 创建数据库文件;ORA-27040:文件创建错误, 无法创建文件;O/S-Error: (OS 3) 系统找不到指定的路径。
- ORA-00214 控制文件版本不一致恢复过程
- ORA-00214: control file 控制文件版本不一致
- SQL Server 2005/2008 用户数据库文件默认路径和默认备份路径修改方法
- centos7修改mariadb数据库文件的路径
- ORA-00214 控制文件版本不一致
- ORA-00214 控制文件版本不一致恢复过程
- 修改mongodb 默认数据库文件路径
- ORA-00214 控制文件版本不一致恢复过程
- SQL Server 2005/2008 用户数据库文件默认路径和默认备份路径修改方法
- SQL Server 2005/2008 用户数据库文件默认路径和默认备份路径修改方法
- ORA-00214控制文件版本不一致
- Oracle 修改了 listener.ora 文件 在windows中的服务中启动,但是 lsnrctl status没有监听到数据库 xe或者是 orcl
- 修改sqlserver2008默认的数据库文件保存路径
- rman复制数据库ORA-01547ORA-01194ORA-01110,强制打开并修改日志文件
- SQL Server 2005/2008 用户数据库文件默认路径和默认备份路径修改方法
- ORA-00214 控制文件版本不一致恢复过程