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

對(duì)數(shù)據(jù)庫恢復(fù)的理解

數(shù)據(jù)庫
數(shù)據(jù)庫是按照數(shù)據(jù)結(jié)構(gòu)來組織、存儲(chǔ)和管理數(shù)據(jù)的倉庫,如今數(shù)據(jù)庫恢復(fù)技術(shù)應(yīng)用的很多,下文中將為大家講解對(duì)數(shù)據(jù)庫恢復(fù)飛理解是怎樣的。

導(dǎo)讀:如果我們指定以alter database openresetlogs打開數(shù)據(jù)庫,那么我們當(dāng)前onlineline日志的sequencenumber會(huì)歸為1,并且之前的日志信息都會(huì)被拋棄。這時(shí)就要用到數(shù)據(jù)庫的恢復(fù)技術(shù)。

  以下條件需要使用resetlog

  1)在不完全恢復(fù)(介質(zhì)恢復(fù))

  2)使用備份控制文件(backup的控制文件一般從日志文件和數(shù)據(jù)庫的信息以及SCN的信息,相比目前的狀態(tài)都已經(jīng)過期了)

  使用resetlogs打開數(shù)據(jù)庫(logsequencenumber變?yōu)?)后無必完整地備份一次數(shù)據(jù)庫。而且這一操作會(huì)拋棄所有在上一次恢復(fù)沒有用到的日志信息,確保不被重新用與恢復(fù)。

  在重建控制文件的時(shí)候需要注意:

  create controlfile resetlogs/noresetlogs

  1).用noresetlogs重建控制文件時(shí),控制文件中 datafile checkpointscn來自onlinelogs中的Current log頭

  2).用resetlogs重建控制文件時(shí),控制文件中datafile CheckpointSCN來自各數(shù)據(jù)文件頭(StartSCN)。

  如果system checkpoint scn,datafile checkpoint scn,startscn不全相等,需要介質(zhì)恢復(fù).

  如果stopscn null需要實(shí)例恢復(fù)

  小小的總結(jié)一下各種情況:

  1、系統(tǒng)正常關(guān)閉:

  會(huì)使得:system checkpoint scn = datafile checkpoint scn = start scn=stop scn

  1)system checkpoint scn = datafile checkpoint scn =startscn,不需要介質(zhì)恢復(fù)

  2)stop scn is not null = start SCN,不需要實(shí)例恢復(fù)

  2、系統(tǒng)異常關(guān)閉:

  會(huì)使得:system checkpoint scn = datafile checkpoint scn = start scn=stop scn

  1)system checkpoint scn = datafile checkpoint scn =startscn,不需要介質(zhì)恢復(fù)

  2)stop scn is null,需要實(shí)例恢復(fù)

【編輯推薦】

  1. Oracle數(shù)據(jù)庫Redo故障的恢復(fù)
  2. 怎么修復(fù)sql2005數(shù)據(jù)庫
  3. 如何緊急恢復(fù)SQL Server數(shù)據(jù)庫文件

 

責(zé)任編輯:迎迎 來源: IT專家網(wǎng)
相關(guān)推薦

2024-09-20 07:38:00

數(shù)據(jù)庫性能策略

2011-05-18 10:49:53

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

2011-03-24 09:45:34

SQL Server數(shù)恢復(fù)

2018-07-30 15:00:05

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

2011-08-03 14:02:02

數(shù)據(jù)庫連接ACCESS

2017-04-19 11:15:01

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

2020-11-11 10:05:04

數(shù)據(jù)庫分庫分表美團(tuán)面試

2011-05-13 13:26:52

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

2010-05-12 14:19:48

2011-03-22 15:55:26

數(shù)據(jù)庫內(nèi)容恢復(fù)

2011-03-24 17:21:42

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

2019-08-20 14:02:07

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

2011-05-11 13:25:57

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

2011-03-07 14:15:33

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

2011-08-29 16:41:14

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

2023-01-03 08:06:00

2009-08-28 15:16:32

C#實(shí)現(xiàn)對(duì)數(shù)據(jù)庫訪問

2009-09-01 09:45:49

Visual C#對(duì)數(shù)

2020-10-23 18:45:31

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

2023-12-10 14:24:41

緩存Go語言
點(diǎn)贊
收藏

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