Oracle 10g误删除数据文件

删除表空间过程报错,因为之前误删除该表空间的一个数据文件

SQL> drop tablespace ceshi;
drop tablespace ceshi
*
ERROR at line 1:
ORA-01122: database file 5 failed verification check
ORA-01110: data file 5: '/oradata/orcl/ceshi01.dbf'
ORA-01210: data file header is media corrupt

因为数据文件在没有被offline的情况下实物理删除了,导致oracle的数据不一致,因此启动失败

解决方法

SQL> alter database datafile '/oradata/orcl/ceshi01.dbf' offline drop;

Database altered.

SQL> drop tablespace ceshi;

Tablespace dropped.

SQL> 

  

原文地址:https://www.cnblogs.com/hanglinux/p/9811107.html