av激情亚洲男人的天堂国语,日韩欧美精品一中文字幕,无码av一区二区三区无码,国产又色又爽又刺激的a片,国产又色又爽又刺激的a片

Oracle數(shù)據(jù)庫rman恢復(fù)之system表空間恢復(fù)詳解

Oracle數(shù)據(jù)庫rman恢復(fù)system表空間恢復(fù)是本文我們主要要介紹的內(nèi)容,system表空間存放著數(shù)據(jù)字典的信息。當(dāng)數(shù)據(jù)庫處于open狀態(tài),如果system表空間所對(duì)應(yīng)的數(shù)據(jù)文件出現(xiàn)介質(zhì)失敗,那么當(dāng)在其數(shù)據(jù)文件上執(zhí)行I/O操作時(shí),數(shù)據(jù)庫會(huì)自動(dòng)關(guān)閉;當(dāng)數(shù)據(jù)庫處于關(guān)閉狀態(tài)時(shí),如果system表空間所對(duì)應(yīng)的數(shù)據(jù)文件出現(xiàn)介質(zhì)失敗,數(shù)據(jù)庫將不能打開。恢復(fù)system表空間必須在mount狀態(tài)下進(jìn)行。

創(chuàng)新互聯(lián)公司是一家專業(yè)提供滁州企業(yè)網(wǎng)站建設(shè),專注與網(wǎng)站建設(shè)、成都做網(wǎng)站、HTML5、小程序制作等業(yè)務(wù)。10年已為滁州眾多企業(yè)、政府機(jī)構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)絡(luò)公司優(yōu)惠進(jìn)行中。

示例一:system表空間的數(shù)據(jù)文件被誤刪除備份數(shù)據(jù)庫。

刪除system表空間對(duì)應(yīng)的數(shù)據(jù)文件。啟動(dòng)數(shù)據(jù)庫到mount狀態(tài)。使用restore datafile轉(zhuǎn)儲(chǔ)數(shù)據(jù)文件,并使用recover datafile命令應(yīng)用歸檔日志,***使用alter database open打開數(shù)據(jù)庫。

--備份數(shù)據(jù)庫(略)   

--刪除system表空間對(duì)應(yīng)的數(shù)據(jù)文件   

 
 
 
  1. RMAN> host rm $ORACLE_BASE/product/10.2.0/oradatabak/system01.dbf    
  2. RMAN> startup    
  3. connected to target database (not started)    
  4. Oracle instance started    
  5. database mounted    
  6. RMAN-00571: ===========================================================    
  7. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============    
  8. RMAN-00571: ===========================================================    
  9. RMAN-03002: failure of startup command at 08/22/2011 21:56:39    
  10. ORA-01157: cannot identify/lock data file 1 - see DBWR trace file    
  11. ORA-01110: data file 1: '/oracle/10g/oracle/product/10.2.0/oradatabak/system01.dbf'    
  12. SQL> select file#,error from v$recover_file;    
  13. FILE# ERROR    
  14. ---------- -----------------------------------------------------------------     
  15. 1 FILE NOT FOUND    
  16. SQL> select file#,name from v$datafile where file#=1;    
  17. FILE# NAME    
  18. ---------- ------------------------------------------------------------------------------------------------------------------------     
  19. 1 /oracle/10g/oracle/product/10.2.0/oradatabak/system01.dbf   

--啟動(dòng)數(shù)據(jù)庫到mount狀態(tài)并進(jìn)行恢復(fù)   

 
 
 
  1. RMAN> run {    
  2. 2> startup force mount;    
  3. 3> restore datafile 1;    
  4. 4> recover datafile 1;    
  5. 5> sql 'alter database open';    
  6. 6> }   

示例二:system表空間數(shù)據(jù)文件所在磁盤出現(xiàn)故障

備份數(shù)據(jù)庫(略)刪除system表空間對(duì)應(yīng)的數(shù)據(jù)文件。啟動(dòng)數(shù)據(jù)庫到mount狀態(tài)。在restore database之前,執(zhí)行set newname為數(shù)據(jù)文件指定新的位置。在restore database之后,執(zhí)行switch datafile改變控制文件中數(shù)據(jù)文件位置和名稱。之后通過執(zhí)行recover database應(yīng)用歸檔日志。***執(zhí)行alter database open打開數(shù)據(jù)庫。

--備份數(shù)據(jù)庫(略)   

--刪除system表空間對(duì)應(yīng)的數(shù)據(jù)文件   

 
 
 
  1. RMAN> host 'rm /oracle/10g/oracle/product/10.2.0/oradatabak/system01.dbf'    
  2. 2> ;   

--啟動(dòng)數(shù)據(jù)庫到mount狀態(tài)并進(jìn)行恢復(fù)(為數(shù)據(jù)文件指定新位置,轉(zhuǎn)儲(chǔ)數(shù)據(jù)文件,恢復(fù)數(shù)據(jù)文件,打開數(shù)據(jù)庫)   

 
 
 
  1. RMAN> run {    
  2. 2> startup force mount;    
  3. 3> set newname for datafile 1 to '/oracle/10g/oracle/product/10.2.0/oradata/oralife/system01.dbf';    
  4. 4> restore datafile 1;    
  5. 5> switch datafile 1;    
  6. 6> recover datafile 1;    
  7. 7> sql 'alter database open';    
  8. 8> }   

關(guān)于Oracle數(shù)據(jù)庫rman恢復(fù)之system表空間恢復(fù)的相關(guān)知識(shí)就介紹到這里了,希望本次的介紹能夠?qū)δ兴斋@!

【編輯推薦】

  1. SSIS工程師為您揭秘SQL Server數(shù)據(jù)流
  2. SQL Server 2008 MDX學(xué)習(xí)筆記之理解元數(shù)組
  3. SQL Server數(shù)據(jù)庫DataRelation的應(yīng)用示例詳解
  4. SQL Server 2005/2008中的CTE應(yīng)用之遞歸查詢
  5. SQL Server 2008數(shù)據(jù)庫學(xué)習(xí)筆記之MDX查詢示例

本文名稱:Oracle數(shù)據(jù)庫rman恢復(fù)之system表空間恢復(fù)詳解
文章出自:http://uogjgqi.cn/article/ccopjhd.html
掃二維碼與項(xiàng)目經(jīng)理溝通

我們?cè)谖⑿派?4小時(shí)期待你的聲音

解答本文疑問/技術(shù)咨詢/運(yùn)營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流