oracle ORA-01157: cannot identify/lock data file 64

有人误在RAC端创建本地数据文件
数据库后台告警
Errors in file /orasoft/oracle/diag/rdbms/ptdb/ptdb1/trace/ptdb1_dbw0_4838.trc:
ORA-01157: cannot identify/lock data file 64 - see DBWR trace file
ORA-01110: data file 64: ‘/orasoft/product/11.2.0/db_1/ts_st.dbf’
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory

1.无法正常查询
select file_name,tablespace_name from dba_data_files where tablespace_name=‘TS_ST’;

2.发现该数据文件的物理文件已经被删除
select name from v$datafile;

3.客户确认后 ,进行逻辑删除
alter database datafile 64 offline drop;

4.再次查询发现数据文件的状态为AVAILABLE
select file_name,tablespace_name from dba_data_files where tablespace_name=‘TS_ST’;

5.删除整个表空间及数据文件
drop tablespace TL_SL including contents and datafiles;
正常情况来说,是可以删掉,但是删除表空间出现ORA-22868错误
在当前要删除的表空间中含有大类型比如blob类型的字段,并且该段可能存储于不同的表空间内

6.EVENT_FORM存在bolb类型的字段,drop掉即可
select owner,table_name,tablespace_name from dba_lobs where tablespace_name=‘TS_ST’;

7.drop成功
drop tablespace TS_ST including contents and datafiles;

  • 8
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

汪灵骅

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值