生產環境資料庫恢復一例
恢復過程如下......
現場情況:startup nomout/mount出現ora-600錯誤。警告日誌檔案沒有具體的錯誤資訊。初步估計是spfile的問題,用create spfile from pfile=‘
備份完畢後,在資料庫open狀態下,新建undo表空間,用alter system 把回滾表空間切換到該表空間上;shutdown並startup資料庫,想把原來的回滾表空間用drop tablespace來清掉的時候,出現回滾段有活動事務的錯誤,諮詢oracle支援,據oracle工程師的說法,需要新建資料庫並把原來的業務資料重新import到資料庫中。於是重建資料庫,建立與原來資料庫使用者一致的使用者名稱,用imp的使用者模式把原業務資料重新imp到新資料庫中。附件表資料用4月30號的備份來匯入。
修改中介軟體伺服器資料來源的sid,指向新資料庫,並測試透過。最後開啟業務應用,確認應用可以連線資料庫,操作一切正常,恢復完成。
附件1
執行指令碼
create spfile from pfile=’
startup mount;
alter database datafile ‘
alter database open;
-- 此時進行exp
create undo tablespace undo_tbs datafile ‘
alter system set undo_tablespace = undo_tbs scope = both;
shutdown immediate;
startup;
drop tablespace undotbs1 including contents and datafiles;
-- 出錯!只能重建資料庫並匯入
-- 新建資料庫,並用imp匯入業務使用者資料
附件2:
oracle支援工程師提出的解決方案
When the undo tablespace corrupted, there are some active transaction on the undo segment.Since the data file of the undo tablespace have been lost and you have no any backup of them, you have to do a full export of the current database and then create a new database, import the data back into the new database.
You'd better do backup and run the database in archive mode, this can help avoid losting data and recover fast.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/6906/viewspace-21551/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 使用RMAN將生產庫資料恢復到另外環境追溯先前的資料資料恢復
- [MySQL生產環境資料恢復]innobackupex: fatal error: OR no 'datadir'MySql資料恢復Error
- MySQL資料庫生產環境安全規範MySql資料庫
- 【資料庫資料恢復】LINUX環境下ORACLE資料庫誤刪除的資料恢復資料庫資料恢復LinuxOracle
- 成功恢復無備份RAC環境資料庫資料庫
- 【伺服器虛擬化資料恢復】Xen Server環境下資料庫資料恢復案例伺服器資料恢復Server資料庫
- RAC環境利用備份恢復RAC資料庫(五)資料庫
- RAC環境利用備份恢復RAC資料庫(四)資料庫
- RAC環境利用備份恢復RAC資料庫(三)資料庫
- RAC環境利用備份恢復RAC資料庫(二)資料庫
- RAC環境利用備份恢復RAC資料庫(一)資料庫
- 生產環境搭建高可用Harbor(包括恢復演練實操)
- Elasticsearch系列---生產資料備份恢復方案Elasticsearch
- 單例項環境利用備份恢復RAC資料庫(四)單例資料庫
- 單例項環境利用備份恢復RAC資料庫(三)單例資料庫
- 單例項環境利用備份恢復RAC資料庫(二)單例資料庫
- 單例項環境利用備份恢復RAC資料庫(一)單例資料庫
- RMAN備份恢復——RAC環境資料庫的備份(zt)資料庫
- RMAN備份恢復--RAC環境資料庫的備份(十)資料庫
- RMAN備份恢復——RAC環境資料庫的備份(一)資料庫
- 【RMAN】RAC資料恢復至單機環境資料恢復
- 生產庫的恢復目錄被RMAN恢復出來的資料庫庫使用後出現的問題資料庫
- 【資料庫資料恢復】SAP資料庫資料恢復案例資料庫資料恢復
- 寶塔資料庫恢復 mysql資料庫丟失恢復 mysql資料庫刪除庫恢復 寶塔mysql資料庫恢復資料庫MySql
- 【資料庫資料恢復】Sql Server資料庫資料恢復案例資料庫資料恢復SQLServer
- 生產環境資料遷移問題彙總
- 恢復資料庫資料庫
- 【伺服器資料恢復】AIX系統環境下LV被破壞如何恢復資料?伺服器資料恢復AI
- 【資料庫資料恢復】透過恢復NDF檔案修復資料庫的資料恢復過程資料庫資料恢復
- redmine生產環境搭建
- Django生產環境搭建Django
- 【資料庫資料恢復】如何恢復Oracle資料庫truncate表的資料資料庫資料恢復Oracle
- 【資料庫資料恢復】windows server下SqlServer資料庫的資料恢復資料庫資料恢復WindowsServerSQL
- RAC環境備份歸檔日誌和RMAN恢復啟動資料庫資料庫
- 【伺服器資料恢復】AIX環境下誤刪除邏輯卷的資料恢復方案伺服器資料恢復AI
- 使用恢復建議恢復資料庫資料庫
- 【資料庫資料恢復】Oracle資料庫誤truncate table的資料恢復案例資料庫資料恢復Oracle
- 【資料庫資料恢復】oracle資料庫誤truncate table怎麼恢復資料?資料庫資料恢復Oracle