ORA-00376: file 21 cannot be read at this time



RAJ> select count(1) from working_lines;
select count(1) from working_lines
*
ERROR at line 1:
ORA-00376: file 21 cannot be read at this time
ORA-01110: data file 21: '/dev/rtraidx2_2.dbf'
 



RAJ> select * from v$recover_file;

        21 OFFLINE OFFLINE

RAJ> alter database datafile 21 online;
alter database datafile 21 online
*
ERROR at line 1:
ORA-01113: file 21 needs media recovery
ORA-01110: data file 21: '/dev/rtraidx2_2.dbf'

Recovered by the dba

SQL> RECOVER DATAFILE 21;

enter AUTO

Recovered

RAJ> ALTER DATABASE DATAFILE 21 ONLINE;

Database altered.
 

Post a Comment

And that's all there is to it!

If anyone has any other questions or requests for future How To posts, you can either ask them in the comments or email me. Please don't feel shy at all!

I'm certainly not an expert, but I'll try my hardest to explain what I do know and research what I don't know.

Previous Post Next Post