溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

db2創(chuàng)建表空間運(yùn)行執(zhí)行計劃表步驟

發(fā)布時間:2020-07-23 05:50:02 來源:網(wǎng)絡(luò) 閱讀:509 作者:18620626259 欄目:關(guān)系型數(shù)據(jù)庫

查看表空間位置

db2? connect to? sample----連數(shù)據(jù)庫


db2 list? tablespaces

?Database Connection Information

?Database server??????? = DB2/LINUXX8664 10.5.5
?SQL authorization ID?? = DB2INST1
?Local database alias?? = SAMPLE

[db2inst1@107-sqlcheck ~]$ db2 list? tablespaces

?????????? Tablespaces for Current Database

?Tablespace ID??????????????????????? = 0
?Name???????????????????????????????? = SYSCATSPACE
?Type???????????????????????????????? = Database managed space
?Contents???????????????????????????? = All permanent data. Regular table space.
?State??????????????????????????????? = 0x0000
?? Detailed explanation:
???? Normal


list tablespace containers for tablespaceID(表空間id號) show detail?


list tablespace containers for 0 show detail?

[db2inst1@107-sqlcheck ~]$ db2? list tablespace containers for 0 show detail?

??????????? Tablespace Containers for Tablespace 0

?Container ID???????????????????????? = 0
?Name???????????????????????????????? = /home/db2inst1/db2inst1/NODE0000/SAMPLE/T0000000/C0000000.CAT
?Type???????????????????????????????? = File
?Total pages????????????????????????? = 20480
?Useable pages??????????????????????? = 20476
?Accessible?????????????????????????? = Yes


創(chuàng)建buffer pool
db2 create BUFFERPOOL bigbuffer SIZE 4000 PAGESIZE 32K(可取數(shù)4k,8K,16K)


創(chuàng)建表空間
db2 "create tablespace newtbs04 pagesize 32k managed by system using ('/home/db2inst1/db2inst1/NODE0000/SAMPLE/T0000001/test.TMP') BUFFERPOOL bigbuffer? "


newtbs04----代表表空間名
pagesize 32k 32可以指定為8k? 16k? 32k
bigbuffer---代表表空間名


授權(quán)
db2 grant use of tablespace newtbs04? to user db2dpmon


修改表EXPLAIN.DDL文件


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI