ORA-01157: cannot identify/lock data file
๋ฐ์ดํ ํ์ผ์ ์ค์๋ก ์ญ์ ํด๋ฒ๋ ธ๋ค๊ฐ DB์ฌ์์ํ๊ฒ๋๋ฉด ์๋์ฒ๋ผ ์ค๋ฅ๊ฐ ๋ฐ์ํ๊ฒ ๋๋ค.
๋ด๊ฐ ์๋ ๋๊ตฐ๊ฐ๊ฐ dbf์์ฑํ๋ค๊ฐ drop๋ช ๋ น์ ์ฐ์ง์๊ณ unix ์ฝ์์์ dbfํ์ผ์ ์ญ์ ํ๊ฒ ๋๋ฉด ๋ฐ์ํ๊ฒ๋๋ ์ค๋ฅ์ธ๋ฐ ์๊ฐ๋ณด๋ค ์ฝ๊ฒ ํด๊ฒฐํ ์ ์์ต๋๋ค.
ERROR at line 1:
ORA-01157: cannot identify/lock data file 29 - see DBWR trace file
ORA-01110: data file 29:
'/opt/oracle/product/oracle9i/dbs/C:oracleproduct10.2.0oradatapentahoptho_ts.dbf
'
from
above datafile name you have realized that its a kinda jerk :s someone
has made a datafile with no sense and then he/she have removed the file
by O.S command, but he/she did'nt updated database about it !
So during the test when we were starting this database it came untill mount stage and then got stuck !!! i.e.
Problem:
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 29 - see DBWR trace file
ORA-01110: data file 29:
'/opt/oracle/product/oracle9i/dbs/C:oracleproduct10.2.0oradatapentahoptho_ts.dbf
'
so to fix it, i did following:
Solution:
SQL>alter database datafile 29 OFFLINE DROP;
SQL>alter database open;
์ถ์ฒ : http://nayyares.blogspot.kr/2009/08/ora-01157-cannot-identifylock-data-file.html