ORA-01157: cannot identify/lock data file

I got ” ORA-01157: cannot identify/lock data file ” error in Oracle.

 

ORA-01157: cannot identify/lock data file

 

Details of error are as follows.

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

Cause: 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.

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

 

 

cannot identify/lock data file

This ORA-01157 errors are related with 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.

Mostly if the specified datafile is deleted or corrupt or renamed or moved,  you will get this error.

If the datafile is deleted or corrupt, you need to restore it from backup.

If the datafile is renamed or moved to another location, rename the controlfile using the following post.

 

How to Move, Rename and Relocate Datafiles in Oracle

 

 

 

Or if the Mount point is incorrect, you will get this error. To solve this error, fix the mount point.
Or if there is  read or write permission on datafile, you will get this error. To solve this error, give the 755 permission or oracle:oinstall ownership.

 

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *