freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

oracle數(shù)據(jù)庫管理知識及rman概念-資料下載頁

2025-01-10 00:35本頁面
  

【正文】 6 (archivelog from time ?sysdate1? all delete input)。 7 release channel dev1。 8 } RMAN的增量備份 在 RMAN中還可以通過增量備份的方式對整個(gè)數(shù)據(jù)庫、單獨(dú)的表空間或單獨(dú)的數(shù)據(jù)文件進(jìn)行備份。如果數(shù)據(jù)庫運(yùn)行在不歸檔模式下,那么只能在數(shù)據(jù)庫干凈關(guān)閉的狀態(tài)下進(jìn)行一致性的增量備份,而如果數(shù)據(jù)庫運(yùn)行在歸檔模式下,那么既可以在數(shù)據(jù)庫關(guān)閉狀態(tài)下進(jìn)行增量備份,也可以在數(shù)據(jù)庫打開狀態(tài)下進(jìn)行增量備份。 ? 數(shù)據(jù)庫一級增量 、 不積累備份 run{ a11ocate channel dev1 type disk。 backup format ‘ c:\oracle\backup\b_%u_%S_%p‘ incremental level 1 (database include current controlfile)。 release channel dev1。 } ?數(shù)據(jù)庫積累備份 run{ allocate channel deve1 type disk format 39。E:\ORACLE\backup\b_%u_%s_%p‘ 。 backup incremental level 1 cumulative (database include current contro1file)。 backup(archivelog all delete input)。 } ?表空間增量、不積累備份,含所有日志 run{ allocate channel deve1 type disk format 39。E:\ORACLE\backup\b_%u_%s_%p39。; backup incremental level 2 (tablespace 39。CFW_DAT39。, 39。TEMP39。 include current controlfile)。 backup(archivelog all delete input); } ?數(shù)據(jù)文件增量備份,包含日志文件 run{ allocate channel deve1 type disk format 39。E:\ORACLE\backup\b_%u_%s_%p39。 backup incremental level 2 ( d a t a f i l e 39。D: \ D A T A \ C F W _ I D X 2 . O R A 39。 , 39。E:\ORAClE\DATABASE\39。 include current controlfile); backup (archivelog all delete input); } 注意: 對日志文件不能進(jìn)行增量備份 。 基于 RMAN的數(shù)據(jù)庫恢復(fù) 使用 RMAN備份的數(shù)據(jù)庫只能使用 RMAN提供的恢復(fù)命令進(jìn)行恢復(fù)。與用戶自定義方式類似, RMAN的數(shù)據(jù)庫恢復(fù)操作也分為兩個(gè)步驟:首先修復(fù)數(shù)據(jù)庫,然后再進(jìn)行恢復(fù)操作。在 RMAN中使用 RESTORE命令進(jìn)行數(shù)據(jù)庫修復(fù),RESTORE命令利用硬盤中的備份集或鏡像復(fù)制來修復(fù)數(shù)據(jù)文件、控制文件以及歸檔重做日志文件;使用 RECOVER命令進(jìn)行數(shù)據(jù)庫恢復(fù), RECOVER命令對修復(fù)后的數(shù)據(jù)文件應(yīng)用聯(lián)機(jī)或歸檔重做日志,從而將它們更新到當(dāng)前時(shí)刻或指定時(shí)刻下的狀態(tài)。 完全數(shù)據(jù)庫恢復(fù) 如果數(shù)據(jù)庫所有的數(shù)據(jù)文件都被損壞,那么必須利用 RMAN修復(fù)所有的數(shù)據(jù)文件,然后再對數(shù)據(jù)庫進(jìn)行一次完全介質(zhì)恢復(fù)。要對數(shù)據(jù)庫進(jìn)行完全恢復(fù),則目標(biāo)數(shù)據(jù)庫必須運(yùn)行在歸方式下。 進(jìn)行恢復(fù)之前,需要把數(shù)據(jù)庫設(shè)置為加載但不打開狀態(tài)。 RMANrun{ 2allocate channel deve1 3type disk; 4restore database; 5recover database; 6} 恢復(fù)完后用 ALTER DATABASE OPEN語句來打開數(shù)據(jù)庫。 表空間恢復(fù) 在恢復(fù)表空間之前,先將要恢復(fù)的表空間離線,然后實(shí)施表空間恢復(fù),恢復(fù)之后再將表空間聯(lián)機(jī)。 RMAN run { 2 allocate channel dev1 type disk。 3 sql “alter tablespace users offline immediate”。 4 restore tablespace users。 5 recover tablespace users。 6 sql “alter tablespace users online”。 7 release channel dev1。 8 } 注意:如果還原系統(tǒng)表空間文件,數(shù)據(jù)庫必須關(guān)閉,因?yàn)橄到y(tǒng)表空間不可以脫機(jī)。 數(shù)據(jù)文件恢復(fù) 數(shù)據(jù)文件的恢復(fù)與表空間的恢復(fù)比較類似,數(shù)據(jù)庫必須處于歸檔日志模式,而且數(shù)據(jù)庫必須打開。 RMAN run { 2 allocate channel dev1 type disk。 3 sql alter tablespace users offline immediate。 4 restore datafile 4。 5 recover datafile 4。 6 sql alter tablespace users online。 7 release channel dev1。 8 } 控制文件恢復(fù) 控制文件破壞時(shí),數(shù)據(jù)庫只能啟動(dòng)到 NOMOUNT狀態(tài)下,即只啟動(dòng)數(shù)據(jù)庫實(shí)例。在實(shí)例啟動(dòng)后,將控制文件復(fù)制回相應(yīng)目錄,實(shí)施恢復(fù)即可。恢復(fù)控制文件的過程如下。 RMANrun{ 2 startup nomount; 3 allocate channel deve1 4type disk; 5 restore controlfile; 6 alter database mount; 7restore database; 8recover database; 9 alter database open resetlogs; 10 } 不完全介質(zhì)恢復(fù) 不完全數(shù)據(jù)庫恢復(fù)的結(jié)果使數(shù)據(jù)庫恢復(fù)到過去的某一個(gè)時(shí)間點(diǎn)。在實(shí)施不完全恢復(fù)時(shí),可以使用參數(shù) SET UNTIL命令設(shè)置恢復(fù)終止標(biāo)記,然后再分別使用 RESTORE和 RECOVER命令進(jìn)行數(shù)據(jù)庫修復(fù)和恢復(fù)。其中,終止標(biāo)記可以是時(shí)間, SCN或者是日志順序號。 下面是使用不完全數(shù)據(jù)庫恢復(fù)方法,將數(shù)據(jù)庫恢復(fù)到 2023年 10月 15日 09:00:00的例子。恢復(fù)結(jié)束時(shí),使用 RESETLOGS打開數(shù)據(jù)庫,則日志全部清零。 RMANrun{ 2set until time 39。20231015 09:00:0039。; 3restore database; 4recover database; 5 alter database open resetlogs; 6} 若以 SCN或日志順序號為恢復(fù)終止標(biāo)記,則示例如下: RMANrun{ 2 set until s 1000; 3restore database; 4recover database; 5 alter database open resetlogs; 6} 或 RMANrun{ 2set until sequence 121; 3restore database; 4recover database; 5 alter database open resetlogs; 6} 演講完畢,謝謝觀看!
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1