ORA-01137: data file string is still in the middle of going offline
Cause: It was not possible to get the lock for a file that is offline when attempting to bring it online. The most likely cause is that the lock is still held by the instance that is took it offline.
Action: Wait a bit and try to online the file again.
ORA-01137 是Oracle 数据库错误代码,表示数据库文件无法完全下线,系统正在文件下线过程中发生了一些问题。
1. 首先诊断当前数据库状态,查看究竟是哪一个数据文件没有完全下线。
SQL> select file#,name,status from v$datafile;
2. 然后,将该数据库文件状态置为AVAILABLE,强制离线:
SQL> alter database datafile ‘&datafile_name’ offline;
3. 将该数据文件上线:
SQL> alter database datafile ‘&datafile_name’ online;
4. 最后,检查数据库文件状态是否正常。
SQL> select file#,name,status from v$datafile;