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

DB2 多分區(qū)數(shù)據(jù)庫(kù)備份的正確操作流程演示

數(shù)據(jù)庫(kù)
我們今天主要向大家講述的是DB2 多分區(qū)數(shù)據(jù)庫(kù)備份的正確操作流程,還有對(duì)其在實(shí)際操作中的小細(xì)節(jié)的具體描述。

以下的文章主要向大家講述的是DB2 多分區(qū)數(shù)據(jù)庫(kù)備份的正確操作流程,以及對(duì)DB2 多分區(qū)數(shù)據(jù)庫(kù)備份的實(shí)際操作中要涉及到的相關(guān)細(xì)節(jié)的描述,以下就是文章的主要內(nèi)容的詳細(xì)描述,望大家有所收獲。

分區(qū), 數(shù)據(jù)庫(kù)

 

編目分區(qū):

 

  1. Catalog database partition number = 0 

這個(gè)就是編目分區(qū)。

 

斷掉所有的連接。

  1. DB2 force applications all  
  2. DB2_all "<<+0<DB2 backup database sample to d:\data compress"  
  3. DB2_all "<<-0<DB2 backup database sample to d:\data compress"  
  4. DB2_all "<<+0< DB2 restore db sample from d:\data taken at 20090212141538 replace existing "  
  5. DB2_all "<<-0< DB2 restore db sample from d:\data taken at 20090212141630 replace existing"  
  6. replace existing  
  7. If a database with the same alias as the target database alias already exists, this parameter specifies  
  8. that the restore utility is to replace the existing database with the restored database. This is useful   
  9. for scripts that invoke the restore utility, because the command line processor will not prompt the   
  10. user to verify deletion of an existing database. If the WITHOUT PROMPTING parameter is specified,  
  11. it is not necessary to specify REPLACE EXISTING, but in this case, the operation will fail if events occur that normally require user intervention.  

為對(duì)分區(qū)數(shù)據(jù)庫(kù)的所有分區(qū)進(jìn)行備份操作,我們可利用 DB2_all 的作用。在語(yǔ)句前加上 DB2_all,并將語(yǔ)句引用在 "" 中,可令該語(yǔ)句在一個(gè)實(shí)例中的每個(gè)分區(qū)上被執(zhí)行,而無(wú)需分別對(duì)每個(gè)分區(qū)重復(fù)發(fā)出相同的命令。BACKUP 便可通過(guò)這種方式實(shí)現(xiàn)對(duì)分區(qū)數(shù)據(jù)庫(kù)的操作,但是對(duì)于編目分區(qū)例外。由于 DB2 在備份或恢復(fù)時(shí)要求獨(dú)占編目分區(qū),因此在對(duì)其它分區(qū)進(jìn)行備份操作之前,首先必須先完成該分區(qū)的備份操作。

 

另外,在 DB2_all 之后的 "" 語(yǔ)句中,我們還可以以下述方式作開頭,以指定命令所作用的分區(qū):

<<+分區(qū)號(hào)< :表示后續(xù)命令作用于該分區(qū)。

<<-分區(qū)號(hào)< :表示后續(xù)命令作用于除該分區(qū)之外的其它分區(qū)。

 

||<<-分區(qū)號(hào)< 或 <<-分區(qū)號(hào); :表示后DB2 多分區(qū)數(shù)據(jù)庫(kù)備份續(xù)命令作用于除該分區(qū)之外的其它分區(qū),

 

并且是以并行方式進(jìn)行的。

 

綜上所述,對(duì)于分區(qū)數(shù)據(jù)庫(kù)的數(shù)據(jù)進(jìn)行備份操作的命令為(以編目分區(qū)號(hào)為 0 舉例):

1. 無(wú)需并行操作的方式:

當(dāng)備份操作不需要使用并行方式時(shí),則不存在先對(duì)編目分區(qū)進(jìn)行操作的問(wèn)題,此時(shí)可通過(guò)一條命令實(shí)現(xiàn)備份操作。

DB2_all "DB2 BACKUP DATABASE <數(shù)據(jù)庫(kù)別名> TO <路徑/設(shè)備名>"

2. 使用并行操作的方式:

DB2_all "<<+0< DB2 BACKUP DATABASE <數(shù)據(jù)庫(kù)別名> TO <路徑/設(shè)備名>" (windows下)

DB2_all "||<<-0< DB2 BACKUP DATABASE <數(shù)據(jù)庫(kù)別名> TO <路徑/設(shè)備名>"

 

 

DB2_all "<<-0<; DB2 BACKUP DATABASE <數(shù)據(jù)庫(kù)別名> TO <路徑/設(shè)備名>"

 

即首先對(duì)編目分區(qū) - 0 號(hào)分區(qū)進(jìn)行備份操作,然后再對(duì)除編目分區(qū)之外的其它分區(qū)同時(shí)并行操作,以縮短操作的時(shí)間,這一點(diǎn)體現(xiàn)了分區(qū)數(shù)據(jù)庫(kù)的優(yōu)越性。

  1. DB2 force applications all  
  2. DB2_all "<<+0<DB2 connect to churndb;DB2 backup database churndb to /DB2log/DB2buckup compress;DB2 terminate"  
  3. DB2_all "<<-0<DB2 connect to churndb;DB2 backup database churndb to /DB2log/DB2buckup compress;DB2 terminate" 

上述的相關(guān)內(nèi)容就是對(duì)DB2 多分區(qū)數(shù)據(jù)庫(kù)備份的描述,希望會(huì)給你帶來(lái)一些幫助在此方面。

 

【編輯推薦】

  1. IBM DB2 Content Manager V83與手工配置SSL
  2. 失敗DB2® access 服務(wù)器配置的正確恢復(fù)流程
  3. DB2確定某個(gè)表的統(tǒng)計(jì)信息的收集時(shí)間大揭秘
  4. import 或是 load多個(gè)DB2主從表談何容易?
  5. 揭秘DB2 9數(shù)據(jù)庫(kù)需要的內(nèi)存與磁盤條件!

 

責(zé)任編輯:佚名 來(lái)源: 考試大
相關(guān)推薦

2010-08-11 14:19:07

DB2 多分區(qū)數(shù)據(jù)庫(kù)備

2010-08-06 18:01:13

DB2數(shù)據(jù)備份

2010-08-12 11:38:21

DB2數(shù)據(jù)庫(kù)

2010-08-11 12:51:12

DB2 多分區(qū)備份

2010-07-27 15:33:00

DB2數(shù)據(jù)庫(kù)備份

2010-08-12 10:27:21

DB2數(shù)據(jù)庫(kù)備份

2010-08-12 17:14:25

DB2備份恢復(fù)數(shù)據(jù)庫(kù)步

2010-08-18 17:32:34

DB2數(shù)據(jù)庫(kù)

2010-08-17 09:48:40

DB2 分區(qū)數(shù)據(jù)庫(kù)

2011-05-11 13:01:07

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

2010-11-02 10:35:59

DB2分區(qū)數(shù)據(jù)庫(kù)

2010-08-17 09:11:42

DB2數(shù)據(jù)庫(kù)備份性能

2010-11-02 10:16:22

DB2分區(qū)數(shù)據(jù)庫(kù)備份

2010-08-17 09:55:33

DB2備份測(cè)試

2010-08-02 14:24:55

DB2數(shù)據(jù)庫(kù)備份

2010-08-31 13:06:49

DB2數(shù)據(jù)庫(kù)

2010-08-09 16:46:05

DB2備份

2010-07-30 15:44:04

DB2數(shù)據(jù)庫(kù)

2010-08-17 16:04:29

DB2數(shù)據(jù)庫(kù)

2010-07-30 09:57:31

點(diǎn)贊
收藏

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