Oracle控制文件出错导致启动不到mount状态
2017-12-03 14:55
447 查看
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 217157632 bytes
Fixed Size 2251816 bytes
Variable Size 159384536 bytes
Database Buffers 50331648 bytes
Redo Buffers 5189632 bytes
SQL> start
SP2-1506: START, @ or @@ command has no arguments
SQL>
SQL> alter database mount;
alter database mount
*
ERROR at line 1:
ORA-00205: error in identifying control file, check alert log for more info
Oracle可以启动到nomount状态,但是启动不到mount状态,通过上面提示可以确定在启动到mount状态的时候,控制文件出错了。这样可能是参数文件里面控制文件的路径出现了错误。
db_name=ordb
control_files='/u01/app/oracle/oradata/oradb/control01.ctl','/u01/app/oracle/oradata/oradb/control02.ctl'
参数文件里的内容。
实际控制文件所在路径
[oracle@oracle11g oradata]$ cd oradb/
[oracle@oracle11g oradb]$ ls
ctl01.ctl ctl02.ctl redo01.log redo02.log redo03.log sysaux01.dbf system01.dbf temp01.dbf undotbs01.dbf
可以看到参数文件里面控制的路径和实际控制文件路不一样。通过修改参数文件之后。
SQL> create spfile from pfile='/home/oracle/initoradb.txt';
create spfile from pfile='/home/oracle/initoradb.txt'
*
ERROR at line 1:
ORA-32002: cannot create SPFILE already being used by the instance
可以看到当前实例正在使用之前错误的参数文件,先将实例关闭了。
SQL> shutdown immediate;
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> create spfile from pfile='/home/oracle/initoradb.txt';
File created.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 217157632 bytes
Fixed Size 2251816 bytes
Variable Size 159384536 bytes
Database Buffers 50331648 bytes
Redo Buffers 5189632 bytes
SQL> alter database mount;
Database altered.
SQL> alter database open;
Database altered.
上面错误中可以看到实例启动的过程当中是先去读取参数文件,如果参数文件中控制文件的路径出现问题会导致无法启动到mount状态。
ORACLE instance started.
Total System Global Area 217157632 bytes
Fixed Size 2251816 bytes
Variable Size 159384536 bytes
Database Buffers 50331648 bytes
Redo Buffers 5189632 bytes
SQL> start
SP2-1506: START, @ or @@ command has no arguments
SQL>
SQL> alter database mount;
alter database mount
*
ERROR at line 1:
ORA-00205: error in identifying control file, check alert log for more info
Oracle可以启动到nomount状态,但是启动不到mount状态,通过上面提示可以确定在启动到mount状态的时候,控制文件出错了。这样可能是参数文件里面控制文件的路径出现了错误。
db_name=ordb
control_files='/u01/app/oracle/oradata/oradb/control01.ctl','/u01/app/oracle/oradata/oradb/control02.ctl'
参数文件里的内容。
实际控制文件所在路径
[oracle@oracle11g oradata]$ cd oradb/
[oracle@oracle11g oradb]$ ls
ctl01.ctl ctl02.ctl redo01.log redo02.log redo03.log sysaux01.dbf system01.dbf temp01.dbf undotbs01.dbf
可以看到参数文件里面控制的路径和实际控制文件路不一样。通过修改参数文件之后。
SQL> create spfile from pfile='/home/oracle/initoradb.txt';
create spfile from pfile='/home/oracle/initoradb.txt'
*
ERROR at line 1:
ORA-32002: cannot create SPFILE already being used by the instance
可以看到当前实例正在使用之前错误的参数文件,先将实例关闭了。
SQL> shutdown immediate;
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> create spfile from pfile='/home/oracle/initoradb.txt';
File created.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 217157632 bytes
Fixed Size 2251816 bytes
Variable Size 159384536 bytes
Database Buffers 50331648 bytes
Redo Buffers 5189632 bytes
SQL> alter database mount;
Database altered.
SQL> alter database open;
Database altered.
上面错误中可以看到实例启动的过程当中是先去读取参数文件,如果参数文件中控制文件的路径出现问题会导致无法启动到mount状态。
相关文章推荐
- 在windows下把Oracle启动到nomount状态 注意问题
- 启动监听oracle,libclntsh.so.10.1文件出错
- 删除数据文件导致oracle系统无法启动
- oracle-dba-控制文件和数据库启动
- Oracle因删除库数据文件导致服务无法启动的处理方法
- oracle 10G控制文件因介质失败导致全部不可用的恢复
- centos6.x中fstab配置文件出错导致无法启动及忘记root密码解决方法
- oracle 11g 表空间的存储文件错误,导致数据库不能启动
- Oracle数据库案例整理-Oracle系统运行时故障-断电导致数据文件状态变为RECOVER
- oracle 11g 文件管理(启动,参数,密码,控制,日志)
- eclipse+tomcat,缓存文件导致tomcat启动项目出错
- 手动修改spfile.ora文件导致oracle启动不了的解决办法
- shell脚本格式问题导致读取不到文件状态
- Oracle 11g R2 DBA 操作指南(10) 控制文件和数据库启动
- oracle可执行文件s位导致的Cluster资源组无法正常启动的问题解决
- oracle 日志文件无法归档导致的数据库无法启动
- oracle数据文件强制删除导致无法启动的解决办法
- 异常断电导致ORACLE控制文件等受到破坏的处理
- oracle可执行文件s位导致的Cluster资源组无法正常启动的问题解决
- 【Oracle】数据库启动阶段参数文件、控制文件的问题处理