ORA-01137: data file string is still in the middle of going offline ORACLE 报错 故障修复 远程处理

文档解释

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;


数据运维技术 » ORA-01137: data file string is still in the middle of going offline ORACLE 报错 故障修复 远程处理