介質(zhì)恢復(fù)和實(shí)例恢復(fù)-創(chuàng)新互聯(lián)

介質(zhì)恢復(fù) 和 實(shí)例恢復(fù)

創(chuàng)新互聯(lián)建站從2013年成立,是專(zhuān)業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目做網(wǎng)站、成都做網(wǎng)站網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢(mèng)想脫穎而出為使命,1280元銅川做網(wǎng)站,已為上家服務(wù),為銅川各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話(huà):028-86922220

以下全是個(gè)人理解,不代表oracle 官方意思.請(qǐng)仔細(xì)考慮.有錯(cuò)誤請(qǐng)指正.兩個(gè)名詞個(gè)人意思解析:什么是介質(zhì)恢復(fù):什么是介質(zhì),介質(zhì)就是數(shù)據(jù)文件.介質(zhì)恢復(fù)就是對(duì)數(shù)據(jù)文件恢復(fù).什么實(shí)例恢復(fù): 什么是實(shí)例,實(shí)例就是內(nèi)存和進(jìn)程.就是數(shù)據(jù)庫(kù)把redo中需要恢復(fù)的數(shù)據(jù)讀入內(nèi)存.數(shù)據(jù)文件可能不變化.當(dāng)然也有可能變化.

1、系統(tǒng)正常關(guān)閉:
system scn=datafile scn=start scn=stop scn
1)system scn=datafile scn=start scn,不需要介質(zhì)恢復(fù)
2)stopscn not null,不需要實(shí)例恢復(fù)

2、系統(tǒng)異常關(guān)閉:
system scn=datafile scn=start scn,stop scn null
1)system scn=datafile scn=start scn,不需要介質(zhì)恢復(fù)
2)stopscn null,需要實(shí)例恢復(fù)((說(shuō)白了就是可能要去讀在線(xiàn)日志進(jìn)行前滾)

3、舊數(shù)據(jù)文件
system scn=datafile scn>start scn,stop scn null/notnull
1)system scn=datafile scn>start scn,需要介質(zhì)恢復(fù)成system scn=datafile scn=start scn((說(shuō)白很有可能用的是備份控制文件.或者控制文件是最新的,但是數(shù)據(jù)文件是從全備份恢復(fù)的.)
2)stopscn null,需要實(shí)例恢復(fù),not null 不需要實(shí)例恢復(fù)

4、備份控制文件
system scn=datafile scn<=start scn(當(dāng)數(shù)據(jù)文件為舊的相等),stop scn notnull/null
1)system scn=datafile scn<=start scn,需要使用using backup controlfile介質(zhì)恢復(fù)成system scn=datafile scn=start scn=current log scn(當(dāng)前日志大SCN)
2)為保證上一次恢復(fù)沒(méi)有用到log日志不被使用,必須resetlogs
5、重建noresetlogs控制文件控制文件中 datafile Checkpoint來(lái)自O(shè)nline logs中的Current log頭
current log scn=system scn=datafile scn>=start scn,stop scn not null/null
1)current log scn=system scn=datafile scn>=start scn,需要介質(zhì)恢復(fù)成system scn=datafile scn=start scn=redolog scn(當(dāng)前日志大SCN),stop scn not null
2)stopscn not null 不需要實(shí)例恢復(fù)

6、重建resetlogs控制文件控制文件中datafile Checkpoint來(lái)自各數(shù)據(jù)文件頭。
system scn>=datafile scn=start scn,stop scn not null/null
1)system scn>=datafile scn=start scn,需要使用using backup controlfile介質(zhì)恢復(fù)成system scn=datafile scn=start scn(當(dāng)前日志大SCN),stop scn not null


新聞名稱(chēng):介質(zhì)恢復(fù)和實(shí)例恢復(fù)-創(chuàng)新互聯(lián)
標(biāo)題來(lái)源:http://muchs.cn/article34/heese.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供自適應(yīng)網(wǎng)站、App設(shè)計(jì)、靜態(tài)網(wǎng)站、關(guān)鍵詞優(yōu)化、動(dòng)態(tài)網(wǎng)站、網(wǎng)站營(yíng)銷(xiāo)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都app開(kāi)發(fā)公司