linux oracle 01157,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,問題解決^_^
總結
以上是生活随笔為你收集整理的linux oracle 01157,Oracle数据库启动时出现ORA-01157和ORA-01110问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 安全和连接是IoT联网设备2大挑战
- 下一篇: oracle audit文件,[2019