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

Oracle數(shù)據(jù)庫(kù)RMAN恢復(fù)之表空間和數(shù)據(jù)塊介質(zhì)的恢復(fù)

之前我們介紹過(guò):Oracle數(shù)據(jù)庫(kù)RMAN恢復(fù)之?dāng)?shù)據(jù)文件的恢復(fù)詳解,本文我們介紹一下Oracle數(shù)據(jù)庫(kù)REMAN恢復(fù)之表空間數(shù)據(jù)塊介質(zhì)的恢復(fù),接下來(lái)我們就開(kāi)始介紹一下這部分內(nèi)容,首先我們先介紹一下恢復(fù)非系統(tǒng)表空間的示例。

創(chuàng)新互聯(lián)服務(wù)項(xiàng)目包括潘集網(wǎng)站建設(shè)、潘集網(wǎng)站制作、潘集網(wǎng)頁(yè)制作以及潘集網(wǎng)絡(luò)營(yíng)銷(xiāo)策劃等。多年來(lái),我們專(zhuān)注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢(shì)、行業(yè)經(jīng)驗(yàn)、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,潘集網(wǎng)站推廣取得了明顯的社會(huì)效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到潘集省份的部分城市,未來(lái)相信會(huì)繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!

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

open狀態(tài)下刪除表空間對(duì)應(yīng)的所有數(shù)據(jù)文件。

在open狀態(tài)下使用alter tablespace ... offline for recover 脫機(jī)表空間。

使用restore tablespace ...轉(zhuǎn)儲(chǔ)表空間所有的數(shù)據(jù)文件。

使用recover tablespace ...應(yīng)用歸檔日志。

最后使用alter tablespace ... online使表空間聯(lián)機(jī)。

--open狀態(tài)下刪除表空間對(duì)應(yīng)的所有數(shù)據(jù)文件。   

[oracle@localhost ~]$ rm /oracle/10g/oracle/product/10.2.0/oradatabak/users01.dbf;  

--恢復(fù)表空間   

 
 
 
  1. [oracle@localhost ~]$ rman target sys/oracle@oralife nocatalog     
  2. RMAN> run {    
  3. 2> sql 'alter tablespace users offline for recover';    
  4. 3> restore tablespace users;    
  5. 4> recover tablespace users;    
  6. 5> sql 'alter tablespace users online';    
  7. 6> }   

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

open狀態(tài)下刪除表空間對(duì)應(yīng)的所有數(shù)據(jù)文件。

在open狀態(tài)下使用alter tablespace ... offline for recover 脫機(jī)表空間。

執(zhí)行set newname為數(shù)據(jù)文件指定新的位置。

使用restore tablespace ...轉(zhuǎn)儲(chǔ)表空間所有的數(shù)據(jù)文件。

執(zhí)行switch datafile改變控制文件中數(shù)據(jù)文件位置和名稱(chēng)。

使用recover tablespace ...應(yīng)用歸檔日志。

最后使用alter tablespace ... online使表空間聯(lián)機(jī)。

--open狀態(tài)下刪除表空間對(duì)應(yīng)的所有數(shù)據(jù)文件。   

 
 
 
  1. [oracle@localhost ~]$ rm /oracle/10g/oracle/product/10.2.0/oradatabak/users01.dbf;    
  2. SQL> select * from t_user;    
  3. select * from t_user    
  4. *    
  5. ERROR at line 1:    
  6. ORA-00376: file 4 cannot be read at this time    
  7. ORA-01110: data file 4:    
  8. '/oracle/10g/oracle/product/10.2.0/oradatabak/users01.dbf'    
  9. SQL> select file#,error from v$recover_file;    
  10. FILE# ERROR    
  11. ---------- -----------------------------------------------------------------     
  12. 4 FILE NOT FOUND    
  13. --恢復(fù)表空間     
  14. [oracle@localhost ~]$ rman target sys/oracle@oralife nocatalog    
  15. run {    
  16. sql 'alter tablespace users offline for recover';    
  17. set newname for datafile 4 to '$ORACLE_BASE/product/10.2.0/oradata/oralife/user01.dbf';    
  18. restore tablespace users;    
  19. switch datafile all;    
  20. recover tablespace users;    
  21. sql 'alter tablespace users online';    
  22. }    
  23. --已恢復(fù)     
  24. SQL> select * from t_user;    
  25. TEXT    
  26. --------------------     
  27. java_    
  28. SQL> select name from v$datafile where file# = 4;    
  29. NAME    
  30. --------------------------------------------------------------------------------     
  31. /oracle/10g/oracle/product/10.2.0/oradata/oralife/user01.dbf 

數(shù)據(jù)塊介質(zhì)恢復(fù)

如果數(shù)據(jù)文件部分?jǐn)?shù)據(jù)塊出現(xiàn)損壞,可以使用blockrecover 命令恢復(fù)損壞數(shù)據(jù)塊。

如:

 
 
 
  1. RMAN> blockrecover device type disk   
  2. 2>datafile 5 block 2,7,88; 

關(guān)于Oracle數(shù)據(jù)庫(kù)RMAN恢復(fù)之表空間和數(shù)據(jù)塊介質(zhì)的恢復(fù)方法就介紹到這里了,希望本次的介紹能夠?qū)δ兴鶐椭?/p>
分享名稱(chēng):Oracle數(shù)據(jù)庫(kù)RMAN恢復(fù)之表空間和數(shù)據(jù)塊介質(zhì)的恢復(fù)
轉(zhuǎn)載注明:http://uogjgqi.cn/article/dhjeihg.html

掃二維碼與項(xiàng)目經(jīng)理溝通

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

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