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

對(duì)DB2數(shù)據(jù)移動(dòng)方法的正確解析

數(shù)據(jù)庫
我們今天主要向大家講述的是DB2數(shù)據(jù)移動(dòng)的實(shí)際操作方案的正確解析,同時(shí)本文也描述了其在實(shí)際操作中的注意事項(xiàng)。

以下的文章主要向大家講述的是DB2數(shù)據(jù)移動(dòng)方法的正確解析,以及對(duì)在實(shí)際操作中其導(dǎo)入與裝入都是利用DB2數(shù)據(jù)庫的相關(guān)命令,把某種格式的文件中的數(shù)據(jù)保存到數(shù)據(jù)庫中的表中的詳細(xì)描述。

數(shù)據(jù)庫, 解析數(shù)據(jù)庫, 解析

DB2中所謂的數(shù)據(jù)移動(dòng),包括:

1. 數(shù)據(jù)的導(dǎo)入(import)

2. 數(shù)據(jù)的導(dǎo)出(export)

3. 數(shù)據(jù)的裝入(load)

導(dǎo)入和裝入都是利用db2的相關(guān)命令把某種格式的文件中的數(shù)據(jù)保存到數(shù)據(jù)庫中的表中。

導(dǎo)出是指把db2數(shù)據(jù)庫的表中的數(shù)據(jù)保存到某種格式的文件當(dāng)中去。

數(shù)據(jù)移動(dòng)的作用:

如果要在不同的數(shù)據(jù)庫管理系統(tǒng)之間轉(zhuǎn)移數(shù)據(jù),DB2數(shù)據(jù)移動(dòng)通常是最實(shí)用的一種方法,因?yàn)槿魏我环N數(shù)據(jù)庫管理系統(tǒng)都支持常用的幾種文件格式,通過這個(gè)通用的接口,就很容易實(shí)現(xiàn)不同系統(tǒng)間數(shù)據(jù)的轉(zhuǎn)移。

這三個(gè)命令中,export最簡(jiǎn)單,因?yàn)閺谋碇邢蛭募D(zhuǎn)移數(shù)據(jù),通常不會(huì)出現(xiàn)錯(cuò)誤,也不會(huì)有非法的數(shù)據(jù)。

在講解命令之前,首先介紹一下文件的格式。

1. asc——非定界ascii文件,是一個(gè)ascii字符流。數(shù)據(jù)流中的行由行定界符分隔,而行中的每一列則通過起始和結(jié)束位置來定義。例如:

 

  1. 10 head office 160 corporate new york  
  2. 15 new england 50 eastern boston  
  3. 20 mid atlantic 10 eastern washington  
  4. 38 south atlantic 30 eastern atlanta  
  5. 42 great lakes 100 midwest chicago  
  6. 51 plains 140 midwest dallas  
  7. 66 pacific 270 western san francisco  
  8. 84 mountain 290 western denver 

2. del——定界ascii文件,也是一個(gè)ascii字符流。數(shù)據(jù)流中的行由行定界符分隔,行中的列值由列定界符分隔。文件類型修飾符可用于修改這些定界符的默認(rèn)值。例如:

  1. 10,"head office",160,"corporate","new york"  
  2. 15,"new england",50,"eastern","boston"  
  3. 20,"mid atlantic",10,"eastern","washington"  
  4. 38,"south atlantic",30,"eastern","atlanta"  
  5. 42,"great lakes",100,"midwest","chicago"  
  6. 51,"plains",140,"midwest","dallas"  
  7. 66,"pacific",270,"western","san francisco"  
  8. 84,"mountain",290,"western","denver"  

以上的相關(guān)內(nèi)容就是對(duì)DB2數(shù)據(jù)移動(dòng)方法解析的介紹,望你能有所收獲。

【編輯推薦】

  1. DB2備份歷史文件損壞不用怕!
  2. DB2數(shù)據(jù)遷移哪幾種方案可以實(shí)現(xiàn)?
  3. DB2數(shù)據(jù)庫備份,恢復(fù)命令的操作經(jīng)驗(yàn)總結(jié)
  4. DB2 Online備份的操作方案“盛宴”
  5. DB2離線與在線全備、增量備份以及恢復(fù)的運(yùn)行
責(zé)任編輯:佚名 來源: 51CTO博客
相關(guān)推薦

2010-08-09 16:16:58

DB2取得當(dāng)前時(shí)間

2010-08-06 13:20:00

DB2鎖等待

2010-08-02 14:03:49

DB2驅(qū)動(dòng)類型

2010-07-30 10:32:31

DB2數(shù)據(jù)移動(dòng)

2010-07-27 09:29:40

DB2數(shù)據(jù)移動(dòng)

2011-05-13 09:49:55

DB2數(shù)據(jù)移動(dòng)

2010-08-26 11:05:39

DB2數(shù)據(jù)移動(dòng)

2010-07-28 10:28:47

DB2數(shù)據(jù)移動(dòng)

2010-08-17 15:42:30

DB2 增量備份

2010-08-11 15:04:03

DB2備份

2010-07-27 10:32:22

DB2數(shù)據(jù)庫編目

2010-07-28 14:16:43

DB2驅(qū)動(dòng)類型

2010-08-04 16:41:01

2010-08-02 17:30:30

DB2鎖等待

2010-07-27 12:33:14

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

2010-08-18 14:10:38

DB2入門

2015-10-23 16:35:11

DB2導(dǎo)出LOB

2010-08-18 10:29:41

DB2 Capture

2010-07-27 11:08:49

DB2數(shù)據(jù)移動(dòng)

2010-08-03 10:08:32

DB2 無限活動(dòng)日志
點(diǎn)贊
收藏

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