自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle數(shù)據(jù)庫RMAN不完全恢復(fù)之基于SCN恢復(fù)

數(shù)據(jù)庫 Oracle
本文我們主要介紹了Oracle數(shù)據(jù)庫RMAN不完全恢復(fù)之基于SCN恢復(fù)的相關(guān)知識,希望能夠?qū)δ兴鶐椭?/div>

之前我們介紹了:Oracle數(shù)據(jù)庫RMAN不完全恢復(fù)之基于時間恢復(fù),本文我們介紹一下Oracle數(shù)據(jù)庫RMAN不完全恢復(fù)的基于SCN恢復(fù)的相關(guān)知識,希望能夠?qū)δ兴鶐椭?/p>

基于SCN恢復(fù)是指當(dāng)出現(xiàn)用戶錯誤(例如誤刪除表、誤截斷表)時,恢復(fù)到指定SCN點(diǎn)的恢復(fù)。

模擬誤刪除表t_user。

執(zhí)行rman,啟動數(shù)據(jù)庫到mount狀態(tài)。

使用set until scn命令指定要恢復(fù)到的scn點(diǎn)。

轉(zhuǎn)儲、恢復(fù)數(shù)據(jù)庫,并使用resetlogs選項打開數(shù)據(jù)庫。

--模擬誤刪除表t_user。   

  1. SQL> select count(*) from t_user;    
  2. COUNT(*)    
  3. ----------     
  4. 2    
  5. SQL> insert into t_user select 'spring mvc_' from dual;    
  6. 1 row created.    
  7. SQL> commit;    
  8. Commit complete.    
  9. SQL> alter system switch logfile;    
  10. System altered.    
  11. SQL> alter system checkpoint;    
  12. System altered.    
  13. SQL> select current_scn from v$database;    
  14. CURRENT_SCN    
  15. -----------     
  16. 1214281    
  17. SQL> drop table t_user;    
  18. Table dropped.  

--恢復(fù)   

  1. [oracle@localhost ~]$ rman target sys/oracle@oralife nocatalog    
  2. RMAN> run {    
  3. 2> startup force mount;    
  4. 3> set until scn=1214281;    
  5. 4> restore database;    
  6. 5> recover database;    
  7. 6> sql 'alter database open resetlogs';    
  8. 7> } 

--已恢復(fù)   

  1. SQL> select count(*) from t_user;    
  2. COUNT(*)    
  3. ----------     

在實(shí)際環(huán)境下,應(yīng)該使用LogMiner確定誤操作SCN點(diǎn)。

在執(zhí)行了不完全恢復(fù)之后,推薦刪除早期所有備份,重新備份數(shù)據(jù)庫。

以上就是Oracle數(shù)據(jù)庫RMAN不完全恢復(fù)之基于SCN恢復(fù)的全部內(nèi)容,本文我們就介紹到這里了,希望本次的介紹能夠?qū)δ兴斋@!

【編輯推薦】

  1. Oracle數(shù)據(jù)庫PL/SQL快捷鍵設(shè)置詳解
  2. Oracle數(shù)據(jù)庫學(xué)習(xí)筆記之表的聯(lián)合查詢
  3. 一個Oracle數(shù)據(jù)庫執(zhí)行存儲過程的錯誤解決
  4. Oracle數(shù)據(jù)庫日期范圍搜索的兩種方法簡介
  5. Oracle數(shù)據(jù)庫RMAN恢復(fù)之?dāng)?shù)據(jù)文件的恢復(fù)詳解
責(zé)任編輯:趙鵬 來源: CSDN博客
相關(guān)推薦

2011-08-30 09:35:10

OracleRMAN不完全恢復(fù)基于時間恢復(fù)

2011-08-30 10:02:18

OracleRMAN不完全恢復(fù)基于日志序列號恢復(fù)

2017-04-13 08:46:41

oracle數(shù)據(jù)挖掘

2011-08-23 11:09:36

Oraclerman恢復(fù)system表空間恢復(fù)

2011-08-29 16:41:14

OracleRMAN恢復(fù)數(shù)據(jù)文件的恢復(fù)

2011-08-29 17:00:47

Oracle數(shù)據(jù)庫RM表空間數(shù)據(jù)塊介質(zhì)

2010-03-31 10:39:40

RMANOracle

2011-08-03 18:42:21

Oracle數(shù)據(jù)庫重做日志

2009-11-20 13:29:59

Oracle數(shù)據(jù)庫恢復(fù)

2011-02-28 13:31:17

Oracle數(shù)據(jù)庫

2011-05-26 09:36:07

Oracle數(shù)據(jù)庫Redo故障

2011-08-01 12:44:25

Oracle基于用戶管理備份與恢復(fù)

2011-03-04 14:59:16

Raidoracle數(shù)據(jù)庫

2009-04-03 10:54:49

Oracle備份恢復(fù)

2011-03-24 17:21:42

Oracle數(shù)據(jù)庫Redo故障

2010-04-26 10:52:46

Oracle 數(shù)據(jù)庫

2011-05-11 13:25:57

Oracle數(shù)據(jù)庫后備恢復(fù)

2021-05-20 11:45:16

數(shù)據(jù)庫中間件架構(gòu)

2021-02-09 00:46:45

區(qū)塊鏈加密貨幣工具

2024-01-02 16:43:58

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號