denrepo

Oracle error

ORA-01113

ORA-01113: file %s needs media recovery

What usually causes it

A datafile is older than the rest of the database: it was restored, taken offline, or left in backup mode.

What to check first

RECOVER DATAFILE n (in RMAN or SQL*Plus), then bring it online. After a crash during a user-managed hot backup, ALTER DATABASE END BACKUP clears it.

Scripts that help

Open in the error lookupOracle's reference