解决ORA-01157问题



SQL> startup
ORACLE instance started.

Total System Global Area 1233125376 bytes
Fixed Size                  1250476 bytes
Variable Size             142609236 bytes
Database Buffers         1082130432 bytes
Redo Buffers                7135232 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 9 - see DB
ORA-01110: data file 9: 'D:\TABLESPACE\EASYUI.DBF'


SQL> ALTER SYSTEM SET "_allow_resetlogs_corruption"=TRUE SCOPE=SPFILE;

System altered.


SQL> shutdown
ORA-01109: database not open


Database dismounted.
ORACLE instance shut down.

SQL> startup mount
ORACLE instance started.

Total System Global Area 1233125376 bytes
Fixed Size                  1250476 bytes
Variable Size             142609236 bytes
Database Buffers         1082130432 bytes
Redo Buffers                7135232 bytes
Database mounted.


SQL> alter database datafile 'D:\TABLESPACE\EASYUI.DBF' offline drop;

Database altered.


SQL> shutdown
ORA-01109: database not open


Database dismounted.
ORACLE instance shut down.




你可能感兴趣的:(oracle)