偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

DB2數(shù)據(jù)庫(kù)的部分日常實(shí)用操作的闡述

數(shù)據(jù)庫(kù)
如果你想更好的了解DB2數(shù)據(jù)庫(kù)的部分日常實(shí)用操作的話,你不妨瀏覽此文章,希望你會(huì)從中獲得自己想要的東西。

以下的文章主要是闡述DB2數(shù)據(jù)庫(kù)的部分日常實(shí)用操作,如果你對(duì)DB2數(shù)據(jù)庫(kù)的部分日常實(shí)用操心存好奇的話,以下的文章將會(huì)揭開(kāi)它的神秘面紗。希望你在瀏覽完之后會(huì)有所收獲,以下的文章就是對(duì)相關(guān)內(nèi)容的描述。

1、Load 方法裝入數(shù)據(jù):

 

export to tempfile of del select * from TABLENAME where not 清理?xiàng)l件;

 

  1. load from tempfile of del modified by delprioritychar replace into TABLENAME nonrecoverable; 

說(shuō)明:

在不相關(guān)的數(shù)據(jù)表export數(shù)據(jù)時(shí),可以采取并發(fā)的形式,以提高效率;

TABLENAME指待清理table的名稱;

modified by delprioritychar防止DB2數(shù)據(jù)庫(kù)記錄中存在換行符,導(dǎo)致數(shù)據(jù)無(wú)法裝入的情況;

replace into對(duì)現(xiàn)數(shù)據(jù)庫(kù)中的內(nèi)容進(jìn)行替換,即將現(xiàn)行的數(shù)據(jù)記錄清理,替換為數(shù)據(jù)文件內(nèi)容;

nonrecoverable無(wú)日志方式裝入;

2、查找當(dāng)前的應(yīng)用:db2 list application |grep BTPDBS;

3、刪除當(dāng)前正在使用的application:

 

  1. db2 "force application (Id1,Id2,Id3)" 

Id1,Id2,Id3 是List顯示的應(yīng)用號(hào);

4、查看當(dāng)前應(yīng)用號(hào)的執(zhí)行狀態(tài):

 

  1. db2 get snapshot for application agentid 299 |grep Row 

5、查看數(shù)據(jù)庫(kù)參數(shù):

db2 get db cfg for //當(dāng)前DB2數(shù)據(jù)庫(kù)可以省略

6、修改數(shù)據(jù)庫(kù)的Log數(shù)據(jù):

db2 update db cfg using <參數(shù)名> <參數(shù)值>

7、Db2Stop Force的用法:

在進(jìn)行Bind的時(shí)候出現(xiàn)如下錯(cuò)誤:

 

  1. SQL0082CAn error has occurred which has terminated processing.  
  2. SQL0092NNo package was created because of previous errors.  
  3. SQL0091NBinding was ended with "3" errors and "0" warnings.  

 

主要是表文件被加鎖,不能繼續(xù)使用;

在進(jìn)行stop的時(shí)候報(bào)錯(cuò):db2stop

 

  1. 8/03/2005 21:46:530 0 SQL1025NThe database manager was not stopped because databases are still active.  
  2. SQL1025NThe database manager was not stopped because databases are still active.  

 

需要使用如下命令可以解決這個(gè)問(wèn)題: db2stop force

 

  1. 08/03/2005 21:47:49 0 0 SQL1064NDB2STOP processing was successful.  
  2. SQL1064NDB2STOP processing was successful.  

 

然后啟動(dòng)數(shù)據(jù)庫(kù)db2start,連接DB2數(shù)據(jù)庫(kù)db2s后,重新進(jìn)行bind即可。

8、緩沖池參數(shù)修改:

 

  1. db2 alter bufferpool ibmdefaultbp size 10240 

查看本表的數(shù)據(jù)內(nèi)容如下:db2 "select * from syscat.bufferpools";

9、DB2 日志處理:

DB2日志是以文件的形式存放在文件系統(tǒng)中,分為兩種模式:循環(huán)日志和歸檔日志。當(dāng)創(chuàng)建新數(shù)據(jù)庫(kù)時(shí),日志的缺省模式是循環(huán)日志。在這種模式下,只能實(shí)現(xiàn)數(shù)據(jù)庫(kù)的脫機(jī)備份和恢復(fù)。如果要實(shí)現(xiàn)聯(lián)機(jī)備份和恢復(fù),必須設(shè)為歸檔日志模式。

目前在綜合業(yè)務(wù)系統(tǒng)中,設(shè)置的均是歸檔日志模式;其它系統(tǒng)(如事后監(jiān)督、經(jīng)營(yíng)決策、中間業(yè)務(wù)等)一般都設(shè)置為循環(huán)日志模式。至于采用何種模式,可以通過(guò)修改數(shù)據(jù)庫(kù)配置參數(shù)(LOGRETAIN)來(lái)實(shí)現(xiàn):歸檔日志模式:db2 update db cfg for using logretain on 注:改為on后,查看數(shù)據(jù)庫(kù)配置參數(shù)logretain的值時(shí),實(shí)際顯示的是recovery。

改變此參數(shù)后,再次連接數(shù)據(jù)庫(kù)會(huì)顯示DB2數(shù)據(jù)庫(kù)處于備份暫掛(BACKUP PENDING)狀態(tài)。這時(shí),需要做一次對(duì)數(shù)據(jù)庫(kù)的脫機(jī)備份(db2 backup db ),才能使數(shù)據(jù)庫(kù)狀態(tài)變?yōu)檎!?/p>

循環(huán)日志模式:db2 update db cfg for using logretain off

【編輯推薦】

  1. JSP連接DB2數(shù)據(jù)庫(kù)中易出現(xiàn)的一些問(wèn)題的破解
  2. DB2數(shù)據(jù)庫(kù)上建立數(shù)據(jù)庫(kù)分區(qū)與命令
  3. IBM DB2數(shù)據(jù)庫(kù)無(wú)限活動(dòng)的日志策略的破解
  4. 對(duì)DB2服務(wù)器主機(jī)名的修改的正確操作流程
  5. DB2 batch update在實(shí)際操作中的注意事項(xiàng)

 

 

責(zé)任編輯:佚名 來(lái)源: IT實(shí)驗(yàn)室
相關(guān)推薦

2010-09-07 16:45:58

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

2010-08-09 16:51:24

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

2011-05-16 14:42:12

DB2數(shù)據(jù)庫(kù)實(shí)用操作

2009-12-16 10:48:42

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

2011-03-11 16:02:03

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

2010-08-12 10:27:21

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

2010-08-16 13:25:41

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

2011-08-18 19:10:27

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

2010-08-03 13:56:11

DB2表復(fù)制

2010-08-18 11:06:23

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

2010-11-02 10:35:59

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

2010-11-03 16:32:10

DB2創(chuàng)建數(shù)據(jù)庫(kù)

2010-08-31 17:34:46

DB2

2010-11-01 13:45:16

DB2數(shù)據(jù)庫(kù)的優(yōu)勢(shì)

2010-09-01 13:38:41

DB2數(shù)據(jù)復(fù)制

2010-08-02 09:52:19

DB2數(shù)據(jù)庫(kù)優(yōu)化

2010-09-07 13:39:22

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

2010-08-06 13:20:00

DB2鎖等待

2010-08-03 14:34:23

IBM DB2 ECO

2010-08-09 16:46:05

DB2備份
點(diǎn)贊
收藏

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