Good Team Plays Hard
In: Oracle
13 Oct 2008Today when I try to restore the database from the cold backup, I was hit with error ORA-01157: cannot identify/lock data file 4 – see DBWR trace file & ORA-01110: data file 4: ‘/database/u01/app/oracle/oradata/SID/users01.dbf’. Below is the console output of how I solve this problem:
oracle@qhms_scripts> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 – Production on Thu Feb 8 14:54:38 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 236404368 bytes
Fixed Size 724624 bytes
Variable Size 201326592 bytes
Database Buffers 33554432 bytes
Redo Buffers 798720 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 11 – see DBWR trace file
ORA-01110: data file 4: ‘/database/u01/app/oracle/oradata/SID/users01.dbf’
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 236404368 bytes
Fixed Size 724624 bytes
Variable Size 201326592 bytes
Database Buffers 33554432 bytes
Redo Buffers 798720 bytes
Database mounted.
SQL> alter database datafile ‘/database/u01/app/oracle/oradata/SID/users01.dbf‘ offline drop;
Database altered.
SQL> alter database open;
Database altered.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 236404368 bytes
Fixed Size 724624 bytes
Variable Size 201326592 bytes
Database Buffers 33554432 bytes
Redo Buffers 798720 bytes
Database mounted.
Database opened.
SQL>
This is a place I create just for fun and to write down some experience and notes for myself. So feel free to enjoy and drop any comments you have. I had been employed as Programmer, System Analysts, System Administrator, DBA and Project Manager. I will share some of my case study here as well. Enjoy!
6 Responses to Solution for ORA-01157 and ORA-01110
khaishen
May 6th, 2009 at 12:04 pm
Thanks man, this is helpful.
noor
June 24th, 2009 at 5:29 pm
Thank you,,
this is what i need.
this is saved my lot of time.
kitty
June 30th, 2009 at 5:45 pm
ths is gud one..bt how vl i recover datafile?
vpire
June 30th, 2009 at 7:51 pm
Can you elaborate your question in more detail, like which datafile, whether is cold back or hot backup….
mike
July 21st, 2010 at 7:02 pm
thank you so much. it helped solve my error.
kc
August 10th, 2010 at 4:07 pm
great.. it solved my issue … thnks a lot…