Oracle數據庫啓動時出現ORA-01157和ORA-01110問題

今天遇到Oracle啓動報ORA-01157和ORA-01110的錯誤

sql>startup mount;

sql>alter database open;

RA-01157: 無法標識/鎖定數據文件 10 - 請參閱 DBWR 跟蹤文件ORA-01110: 數據文件 10: 'D:\ORACLE\ORADATA\ORCL\USERS02.DBF'

解決過程如下:

1. startup mount

2. alter database open

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

ORA-01110: data file 12: '/oradata/orcldata/sacproduce02.dbf'

3. cd /oradata

4. cd orcldata

報錯信息爲不能進行讀寫操作,哈哈。找到原因了,掛載的硬盤不能進行讀寫操作了。要打開數據庫,只能將該文件進行離線操作了。

5. archive log list

歸檔模式下

alter database datafile '/oradata/orcldata/sacproduce02.dbf' offline

非歸檔模式下

alter database datafile '/oradata/orcldata/sacproduce02.dbf'offline drop

6. 到此,數據庫就可以open了。但是文件中還有需要的數據,接下來就是掛載硬盤,online數據文件,open數據庫。

alter database datafile '/oradata/orcldata/sacproduce02.dbf' online;

ORA-01113: file 12 needs media recovery

ORA-01110: data file 12: '/oradata/orcldata/sacproduce02.dbf'

recover datafile '/oradata/orcldata/sacproduce02.dbf'

alter database datafile '/oradata/orcldata/sacproduce02.dbf' online;

alter database open;

OK,問題解決^_^


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章