Oracle Error ORA-01157: cannot identify/lock data file string – see DBWR trace file

Oracle Error Message

ORA-01157: cannot identify/lock data file string – see DBWR trace file

Reason for the Error

The background process was either unable to find one of the data files or failed to lock it because the file was already in use. The database will prohibit access to this file but other files will be unaffected. However the first instance to open the database will need to access all online data files. Accompanying error from the operating system describes why the file could not be identified.

Solution

Have operating system make file available to database. Then either open the database or do ALTER SYSTEM CHECK DATAFILES.