Oracle数据库启动报错,找不到数据文件(ORA-01157和ORA-01110)
数据库报了ORA-01157和ORA-01110错误,提示找不到一个数据文件。
1.启动数据库报错
在启动数据库过程中,报了ORA-01157和ORA-01110错误,提示找不到数据文件。
SQL> startup ORACLE instance started. Total System Global Area 1.0021E+10 bytes Fixed Size 2215944 bytes Variable Size 7717523448 bytes Database Buffers 2281701376 bytes Redo Buffers 19939328 bytes Database mounted. ORA-01157: Ϟ·¨±늶/̸¶¨˽¾ގļþ 43 - ȫ²ϔ DBWR ¸¼þ ORA-01110: ˽¾ގļþ 43: '/home/oracle/data/SCHCY.dmp'
SQL> select status from v$instance; STATUS ------------ MOUNTED
2.重启数据库到mount状态,删除数据文件
启动数据库时, mount状态读取控制文件,在mount状态下可以删除数据文件。
SQL> alter database datafile '/home/oracle/data/SCHCY.dmp' offline drop; Database altered.
启动数据库
SQL> startup ORACLE instance started. Total System Global Area 1.0021E+10 bytes Fixed Size 2215944 bytes Variable Size 7717523448 bytes Database Buffers 2281701376 bytes Redo Buffers 19939328 bytes Database mounted. Database opened.