linux oracle 01157,Oracle数据库启动时出现ORA-01157和ORA-01110问题
今天遇到Oracle啟動(dòng)報(bào)ORA-01157和ORA-01110的錯(cuò)誤
sql>startup mount;
sql>alter database open;
RA-01157: 無(wú)法標(biāo)識(shí)/鎖定數(shù)據(jù)文件 10 - 請(qǐng)參閱 DBWR 跟蹤文件ORA-01110: 數(shù)據(jù)文件 10: 'D:\ORACLE\ORADATA\ORCL\USERS02.DBF'
解決過(guò)程如下:
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
報(bào)錯(cuò)信息為不能進(jìn)行讀寫操作,哈哈。找到原因了,掛載的硬盤不能進(jìn)行讀寫操作了。要打開(kāi)數(shù)據(jù)庫(kù),只能將該文件進(jìn)行離線操作了。
5. archive log list
歸檔模式下
alter database datafile '/oradata/orcldata/sacproduce02.dbf' offline
非歸檔模式下
alter database datafile '/oradata/orcldata/sacproduce02.dbf'offline drop
6. 到此,數(shù)據(jù)庫(kù)就可以open了。但是文件中還有需要的數(shù)據(jù),接下來(lái)就是掛載硬盤,online數(shù)據(jù)文件,open數(shù)據(jù)庫(kù)。
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,問(wèn)題解決^_^
總結(jié)
以上是生活随笔為你收集整理的linux oracle 01157,Oracle数据库启动时出现ORA-01157和ORA-01110问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 安全和连接是IoT联网设备2大挑战
- 下一篇: linux 其他常用命令