Home > Oracle > ORA-01157: cannot identify/lock data file

ORA-01157: cannot identify/lock data file

Problem:

 

SQL> alter database open;
alter database open

ERROR at line 1:
ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
ORA-01110: data file 7: '/u01/app/oracle/product/11.2.0/db_1/dbs/soe.dbf'

If you come across the above  error and the datafile does not exist on the filesystem and you cant open the database , either recover the datafile using rman or so the following

Solution:


SQL>alter database datafile 7 OFFLINE DROP;
SQL>alter database open;

Advertisements
Categories: Oracle
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: