sqlplus以管理员方式接入数据库,启动时出现报错,如下:

> sqlplus "/as sysdba"

SQL> startup

......

ORA-01157: cannot identify/lock data file 8 - see DBWR trace file
ORA-01110: data file 8: '/tmp/test.dbf'

查看数据库日志文件alert_$ORACLE_SID.log,存在对应报错信息:

Errors in file ....../aix85_psp0_454886.trc:

查看此trc文件中记录信息:

*** SERVICE NAME:() 2011-07-18 10:05:00.769
*** SESSION ID:(332.1) 2011-07-18 10:05:00.769
ORA-01157: cannot identify/lock data file 8 - see DBWR trace file
ORA-01110: data file 8: '/tmp/test.dbf'
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
ORA-01110: data file 9: '/tmp/test1.dbf'
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 10 - see DBWR trace file
ORA-01110: data file 10: '/tmp/indx1.dbf'
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 11 - see DBWR trace file
ORA-01110: data file 11: '/tmp/test2.dbf'
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 12 - see DBWR trace file

查询分析:

查看/tmp目录中已经没有任何dbf文件存在,查询确认/tmp目录中的几个dbf是在之前数据库运行过程中添加的测试空间文件,测试完毕已经删除,而且后续没有任何人访问到这几个文件,因此也没有任何数据库报错,直到数据库实例宕掉并重启时出现启动失败。

解决办法:

既然出现报错的几个dbf文件已经不用,则解决办法相对简单,只要将对应的数据文件删除,并继续删除对应新增的表空间即可。操作过程如下:

SQL> shutdown immediate;

SQL> startup mount;

SQL> select file#,name,status from v$datafile;

SQL> alter database datafile '/tmp/test.dbf' offline drop;      //此处若不加drop会报错

再次查看v$datafile表会发现对应的几个dbf文件状态由ONLINE变为RECOVER

SQL> select * from v$tablespace;

SQL> drop tablespace test including contents cascade constraints;

......

删除完毕,再次执行startup成功。

转载于:https://www.cnblogs.com/arcer/archive/2013/06/05/3120209.html

ORA-01157报错cannot identify/lock data file相关推荐

  1. ORA-01157: cannot identify/lock data file 6 - see DBWR trace file

    遇到一个ora-01157的问题记录一下 问题描述:环境是oracle11g,客户重启服务器然后启动数据库报错: ORA-01110: data file 6: '/base/SMSDB_DATA01 ...

  2. ORA-01157: cannot identify/lock data file n 故障一例

    最近在使用swingbench的时候碰到了ORA-01157故障,下面是其具体描述与解决. 1.故障现象 --查询视图dba_data_files时出现ORA-01157故障 SQL> sele ...

  3. oracle dbwr trace文件,ORA-01157: cannot identify/lock data file 19 - see DBWR trace file问题处理...

    ORA-01157: cannot identify/lock data file 19 - see DBWR trace file问题处理 告警信息: ORA-01157: cannot ident ...

  4. ORA-01157 cannot identify/lock data file n 故障一例

    分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! 最近在使 ...

  5. ORA-01157: cannot identify/lock data file处理

    ERROR 2010-12-09 09:24:06,281 OracleProcedure:callProcedure - 执行存储过程:pr_test 失败,原因:ORA-01157: cannot ...

  6. 【Oracle】ORA-01157: cannot identify/lock data file 201 - see DBWR trace file

    今天数据库在查询数据的时候显示了这个错误: ORA-01157: cannot identify/lock data file 201 - see DBWR trace file ORA-01110: ...

  7. oracle+exceeds,oracle 导入报错:field in data file exceeds maximum length

    今天用sqlldr导入数据时候报错: " Record 1: Rejected - Error on table ks_test, column khname. Field in data ...

  8. IDEA配置GitHub报错GitHub Invalid authentication data.404 Not Found-Not Found

    登录账户`GitHub Invalid authentication data.404 Not Found-Not Found`报错及解决办法 1 登录自己的github账号-->头像---&g ...

  9. python3.7运行报错_Python 3.7 环境下运行 scrapy crawl 报错 def write(self, data, async=False)?...

    Python 3.7 环境下运行 scrapy crawl 报错 def write(self, data, async=False),详细报错信息如下: 2018-08-10 15:10:29 [s ...

  10. SVN提交报错 Attempted to lock an already-locked dir

    本文主要介绍SVN报错"Attempted to lock an already-locked dir" 笔者在SVN提交遇到被锁定状态,在该文件的目录下,使用指令 cleanup ...

最新文章

  1. 百度搜索结果 转换_百度搜索搜不到“百度拦截搜索结果”
  2. 即插即用 | S-FPN全新的金字塔网络,更适合轻量化模型的FPN
  3. 大二上学期软件工程概论学习进度表(第十二周)
  4. matlab radn,如何用matlab编写randn函数?
  5. 嵌入式volatile关键字
  6. SAP Spartacus维护CMS Component到Angular Component的源代码位置
  7. jersey 入门示例_Jersey Web Service Hello World Java示例
  8. 为什么要使用 Kubernetes 准入控制器
  9. GoCD notes
  10. Ranger-AdminServer安装(开启Kerberos)
  11. Naive Operations
  12. java设计模式学习 ----- 单例模式(Singleton)
  13. 设计自己的基于Selenium 的自动化测试框架-Java版(3) - 给框架分分层
  14. gvim下用Vundle安装solarized主题的方法
  15. matlab中数字分频器的,一种基于FPGA的数字分频器设计详解
  16. 如何取消excel密码_教你快速设置/取消Excel文件打开密码,工作中经常用到。
  17. yolov4-论文解析(3)
  18. python 马赛克还原_马赛克消除还原工具Depix测试
  19. IOB寄存器的使用:IOB= TRUE 属性
  20. 判断自己的网络是不是公网IP

热门文章

  1. 【vedio】html 视频有声音没有图像
  2. html 图片 滤镜,用Css给你的图片加上Instagram滤镜
  3. 51单片机c语言编写计算器仿真,51单片机实现计算器 proteus仿真及其程序源码 带教程...
  4. 十七、Oracle学习笔记:视图操作和表复制
  5. Servlet期末复习笔记
  6. LINUX当前目录下的文件夹大小
  7. 获取json格式的内容数据时,使用的方法避免空指针
  8. 阶段3 3.SpringMVC·_03.SpringMVC常用注解_5 RequestHeader注解
  9. 阶段1 语言基础+高级_1-3-Java语言高级_05-异常与多线程_第3节 线程同步机制_7_静态同步方法...
  10. UnityWebReqest和WWW,请求web数据打包到Android手机上,报错 Unknown error记录