Oracle資料庫啟動時出現ORA-01157和ORA-01110問題

來源:互聯網
上載者:User

今天遇到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,問題解決^_^

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.