ORA-01172,ORA-01151
數(shù)據(jù)庫服務(wù)器突然掉電,導(dǎo)致數(shù)據(jù)庫不能正常打開,在open數(shù)據(jù)庫時報如下錯誤:
ORA-01172: recovery of thread 1 stuck at block 272 of file 3
ORA-01151: use media recovery to recover block, restore backup if needed
這里file 3對應(yīng)的undo表空間。在打開數(shù)據(jù)庫時,需要用到undo block 272來回滾沒有提交的事務(wù),但block 272這個塊有問題,提示需要恢復(fù)。
SQL> recover datafile 3;
接著嘗試打開數(shù)據(jù)庫
SQL>alter database open;
到此數(shù)據(jù)庫打開,不過會沒有完
在進行數(shù)據(jù)泵導(dǎo)出時,報如下錯誤
ORA-01552: cannot use system rollback segment for non-system tablespace 'TEMP'
還是跟undo表空間有關(guān)的
重新創(chuàng)建一個undo表空間
SQL> create undo tablespace undotbs2 datafile '' size 500M autoextend on ;
SQL> alter system set undo_tablespace='UNDOTBS2';
重啟數(shù)據(jù)庫并刪除原來的表空間及數(shù)據(jù)文件
SQL> drop tablespace undotbs1 including contents and datafiles;
轉(zhuǎn)載于:https://blog.51cto.com/718693/1757289
總結(jié)
以上是生活随笔為你收集整理的ORA-01172,ORA-01151的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一行命令让ElasticSearch支持
- 下一篇: Cocos2d 3.0继承自Sprite