oracle00205报错,[Oracle] 数据库启动失败报错 ORA-00205: error in identifying control file
有同事问我,他的数据库启动失败,报错如下:
ORA-00205: error in identifying control file, check alert log for more info
这种报错,立刻可以想到的是,控制文件损坏,或者控制文件不存在
我查看了控制文件是存在的,但是控制文件的路径有点奇怪,一个在
/home/oracle/product/oradata/orcl/control01.ctl
另外一个在闪回目录下
于是我创建了一个pfile /home/oracle/zhu.ora
然后修改了里/home/oracle/zhu.ora关于控制文件的指定,只指定一个控制文件,如下
*.control_files='/home/oracle/product/oradata/orcl/control01.ctl'
再尝试启动数据库
SQL>startup pfile='/home/oracle/zhu.ora'
依然报错ORA-00205: error in identifying control file, check alert log for more info
此时我查看了alert文件,发现如下报错信息
ORA-00210: cannot open the specified control file
ORA-00202: control file: '/home/oracle/product/oradata/orcl/control01.ctl'
ORA-27086: unable to lock file - already in use
这个表示控制文件已经被人打开了,我没法再次打开了。
于是 ps -ef | grep oracle 发现很多oracle的进程
oracle 2233 1 0 21:03 ? 00:00:00 ora_pmon_ora11g
oracle 2235 1 0 21:03 ? 00:00:00 ora_psp0_ora11g
oracle 2237 1 0 21:03 ? 00:00:00 ora_vktm_ora11g
oracle 2241 1 0 21:03 ? 00:00:00 ora_gen0_ora11g
oracle 2243 1 0 21:03 ? 00:00:00 ora_diag_ora11g
oracle 2245 1 0 21:03 ? 00:00:00 ora_dbrm_ora11g
oracle 2247 1 0 21:03 ? 00:00:00 ora_dia0_ora11g
oracle 2249 1 0 21:03 ? 00:00:00 ora_mman_ora11g
oracle 2251 1 1 21:03 ? 00:00:01 ora_dbw0_ora11g
这时我怀疑可能是rc.local设置了开机自动
果然
[oracle@V-02-01-00410 etc]$ more /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
su - oracle -c 'dbstart'
su - oracle -c 'lsnrctl start'
于是我将rc.loca里的开机自动启动oracle的功能注释掉了
然后reboot
好了,我这个时候再用zhu.ora启动数据库就OK了
SQL> startup pfile='/home/oracle/zhu.ora'
ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size 2253664 bytes
Variable Size 1006636192 bytes
Database Buffers 587202560 bytes
Redo Buffers 7319552 bytes
Database mounted.
Database opened.
然后我再次关闭数据库,做了如下操作
到/home/oracle/product/oradata/orcl/目录下复制两份控制文件
cp control01.ctl control02.ctl
cp control01.ctl control03.ctl
修改/home/oracle/zhu.ora里面控制文件的说明,增加两个控制文件
*.control_files='/home/oracle/product/oradata/orcl/control01.ctl','/home/oracle/product/oradata/orcl/control02.ctl','/home/oracle/product/oradata/orcl/control03.ctl'
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup pfile='/home/oracle/zhu.ora'
ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size 2253664 bytes
Variable Size 1006636192 bytes
Database Buffers 587202560 bytes
Redo Buffers 7319552 bytes
Database mounted.
Database opened.
SQL> create spfile from pfile='/home/oracle/zhu.ora';
File created.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size 2253664 bytes
Variable Size 1006636192 bytes
Database Buffers 587202560 bytes
Redo Buffers 7319552 bytes
Database mounted.
Database opened.
此时数据库已经能用spfile正常启动了
oracle00205报错,[Oracle] 数据库启动失败报错 ORA-00205: error in identifying control file相关推荐
- 迁移mysql数据库报错_数据库迁移失败报错
1.1.1 问题现象 在 配置外接数据库 时配置 MySQL 数据库,导入数据失败,页面前端报错:could not execute statement:查看%FineBI%/logs/fanruan ...
- STARTUP报错:ORA-00205: error in identifying control file, check alert log for more info
问题描述 startup nomount没有异常 startup mount则出现异常,说明控制文件出错
- oracle数据库启动报错ora-27102
ORACLE启动报错 今天一大早来公司,发现数据库连不上了,重新启动报错 oracle数据库启动报错ora-27102,内存不足 查看操作系统参数: cat /etc/sysctl.conf 发现这里 ...
- 解决espressif-ide启动失败报错Incompatible JVM问题
解决espressif-ide启动失败报错Incompatible JVM问题@ESP IDF Eclipse 开发环境 1.安装ESP-IDF Toolchain on Windows 可选用在线安 ...
- pod挂载nas启动失败报错:unable to mount volume xxxx Timeout waiting for mount paths to be created
深夜你熟睡时,用户打来电话.大哥我在上线我的应用怎么突然起不来了.快帮我看看,再过一个小时店铺就开门了. 核实pod状态 打开电脑登入环境,使用kubectl get pod 查询到用户的pod处于创 ...
- DataNode 启动失败报错 Incompatible clusterIDs
文章目录 DataNode 启动失败报错 Incompatible clusterIDs 信息 报错摘要 问题描述 问题原因 分析步骤 解决办法 参考 DataNode 启动失败报错 Incompat ...
- oracle数据库新增字段报错
oracle数据库新增字段报错 需要在oracle数据库中新增一个字段,并且该字段不能为空,执行新增方法,报错 **因为表里面已经有数据了,就不能添加非空列了,除非指定默认值 **或者先将该字段设置为 ...
- 在使用DBeaver连接虚拟机上的Oracle数据库时,报错IO 错误: The Network Adapter could not establish the connection The Netw
在使用DBeaver连接虚拟机上的Oracle数据库时,报错IO 错误: The Network Adapter could not establish the connection The Netw ...
- oracle asm磁盘标签丢失导致整个集群和数据库启动失败
oracle asm磁盘标签丢失导致整个集群和数据库启动失败 应用环境描述 一.硬件 1. 服务器:2台dell r610-16G内存.2颗6核xeon cpu.2个146G sas盘,做了raid1 ...
最新文章
- 退信之550 5.7.1 Unable to relay for *@*.com
- Git 常用命令清单,掌握这些,轻松驾驭版本管理
- 分布式一致性hash算法
- margin和padding的区别
- 时光手帐如何打印 时光手帐打印的方法
- 软件测试基础:MantisBT的安装配置及使用——BUG管理工具
- 浅析error LNK2001: unresolved external symbol public: __thisc...
- 计算机中的颜色VI——从色相值到纯色的快速计算
- oracle多少条commit比较好,oracle什么时候须要commit
- Word2vector原理
- 计量经济学第6章计算机c4,伍德里奇计量经济学第6章部分计算机习题详解STATA.pdf...
- 浩海技术GHOSTXPSP3_2010浪漫圣诞纯净版
- 经典语音降噪方法-谱减法
- linux ppoe 动态ip,设置路由器时应该选择动态ip,静态ip还是pppoe拨号?
- 计算公民身份号码校验码(C++)
- 邮箱服务器 拦截策略,企业邮箱服务器的安全管理策略
- ArrayList集合源码浅析
- Python爬虫学习实战
- HiveHive的两种访问方式
- 全球与中国尖晶石砖市场现状及未来发展趋势
热门文章
- GIS融合之路(五)给CesiumJS加上体积云(Volumetric Cloud)和高度雾(Height Fog)
- html给图片加描边,PS修图之进行图片描边,教你两种方法
- jQuery效果之滑动退出滑动显示 slideUp、slideDown
- 《无线电发射设备管理规定》解读
- mysql tee使用_MYSQL tee的功能测试
- 网秦公布2.2亿美金私募可转换债券交易
- 牛客- 字符串通配符
- 概要设计说明书评测内容
- 剑桥科学家重新编码细菌基因,可完全抵抗病毒感染 | Science
- 项目实战:51单片机控制的小型PM2.5环境检测系统,附技术文件和源码