创建表空间:最佳实践 [英] Creating Tablespaces : Best Practices

查看:70
本文介绍了创建表空间:最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在尝试为大约100个表创建大约70个表空间..

在Linux环境中使用DB2 UDB 8.2 ...


这是我通过控制中心生成的....


在数据库分区组中创建常规表空间SNCI001

IBMDEFAULTGROUP PAGESIZE 4096由系统管理

使用('/ db2home / db2inst1 / dnci1d / user_tblspace'')

EXTENTSIZE 8 PREFETCHSIZE 16 BUFFERPOOL GBP01 OVERHEAD 12.670000

TRANSFERRATE 0.180000;


现在,要创建剩余的使用命令提示符,我应该如何处理

来指定目录... USING

(''/ db2home / db2inst1 / dnci1d / user_tblspace'')??


1.)我是否必须为每个容器创建大约70个目录

MKDIR首先然后继续执行命令...... ??


2.)我可以将70个容器嵌套在一个目录下吗?我得到了

SQL0298N错误的容器路径。 SQLSTATE = 428B2


最佳做法是什么?


3.)我有一个包含3个字段的表,其中包含Varchar(4000)和我得到了

sqlcode -286

找不到页面大小至少为16384的默认表空间。

我应该如何调整表空间的大小和缓冲池为这个特殊的

表??

Hi,

I am trying to create around 70 tablespaces for around 100 tables..
Am using DB2 UDB 8.2 in Linux environment...

This is one i generated through Control centre....

CREATE REGULAR TABLESPACE SNCI001 IN DATABASE PARTITION GROUP
IBMDEFAULTGROUP PAGESIZE 4096 MANAGED BY SYSTEM
USING (''/db2home/db2inst1/dnci1d/user_tblspace'')
EXTENTSIZE 8 PREFETCHSIZE 16 BUFFERPOOL GBP01 OVERHEAD 12.670000
TRANSFERRATE 0.180000;

Now, to create the remaining using command prompt how should i proceed
in specyfying the directories ...USING
(''/db2home/db2inst1/dnci1d/user_tblspace'') ??

1.) Do I have to create around 70 directories for each container using
MKDIR first and then proceed with the command ...??

2.) Can I nest the 70 containers under one directory ? Am getting
SQL0298N Bad container path. SQLSTATE=428B2

What is the best practice ??

3.) I have a table with 3 fields having Varchar(4000) and am getting
sqlcode -286
A default tablespace could not be found with a page size atleast 16384.
How should I size the Tablespace and bufferpool for this purticular
table ??

推荐答案

虽然搁浅信息超高速公路rAinDeEr写道:
While stranded on information super highway rAinDeEr wrote:




我正在尝试为大约100个表创建大约70个表空间..

在Linux环境中使用DB2 UDB 8.2 ...


这是我通过控制中心生成的....


CREATE REGULAR TABLESPACE SNCI001在数据库分区组中

IBMDEFAULTGROUP PAGESIZE 4096由系统管理

使用('/ db2home / db2inst1 / dnci1d / user_tblspace'')

EXTENTSIZE 8 PREFETCHSIZE 16 BUFFERPOOL GBP01 OVERHEAD 12.670000

TRANSFERRATE 0.180000;


现在,要创建剩余的使用命令提示符,我应该如何处理

在specyfying中目录...使用

(''/ db2home / db2inst1 / dnci1d / user_tblspace'')??


1.)我是否需要创建每个容器的70个目录首先使用

MKDIR,然后继续执行命令... ??
Hi,

I am trying to create around 70 tablespaces for around 100 tables..
Am using DB2 UDB 8.2 in Linux environment...

This is one i generated through Control centre....

CREATE REGULAR TABLESPACE SNCI001 IN DATABASE PARTITION GROUP
IBMDEFAULTGROUP PAGESIZE 4096 MANAGED BY SYSTEM
USING (''/db2home/db2inst1/dnci1d/user_tblspace'')
EXTENTSIZE 8 PREFETCHSIZE 16 BUFFERPOOL GBP01 OVERHEAD 12.670000
TRANSFERRATE 0.180000;

Now, to create the remaining using command prompt how should i proceed
in specyfying the directories ...USING
(''/db2home/db2inst1/dnci1d/user_tblspace'') ??

1.) Do I have to create around 70 directories for each container using
MKDIR first and then proceed with the command ...??



是。

Yes.


>

2.)我可以窝一个目录下的70个容器?我得到了

SQL0298N错误的容器路径。 SQLSTATE = 428B2
>
2.) Can I nest the 70 containers under one directory ? Am getting
SQL0298N Bad container path. SQLSTATE=428B2



我不这么认为。

I don''t think so.


>

什么是最佳做法?
>
What is the best practice ??



这取决于您使用数据库的方式。在高容量环境中,最好的做法是使用DMS表spave并且每个磁盘有一个表

(除非你使用SAN)并且每个磁盘有一个ioserver

使用。在低音量时你可以通过使用短信表空间来获得。

It depends on how you are using the database. In high volume environment
the best practice would be to use DMS table spave and have one table
per disk (unless you are using SAN) and have one ioserver per disk in
use. In low volume you can probably get by using SMS table space.


>

3.)我有一张桌子有3个字段有Varchar(4000)我正在获得

sqlcode -286

找不到页面大小至少为16384的默认表空间。

我应该如何调整表空间和缓冲池的大小这个特殊的

表?
>
3.) I have a table with 3 fields having Varchar(4000) and am getting
sqlcode -286
A default tablespace could not be found with a page size atleast 16384.
How should I size the Tablespace and bufferpool for this purticular
table ??



该表有3列VARCHAR 4000,大于4K(页面

表空间大小),一个大小为页面大小为16K,你将有

来创建页面大小为16K的表空间,这也需要

创建一个页面大小为16K的缓冲池。 />

The table have 3 columns of VARCHAR 4000 which is greater than 4K (page
size of the table space), one size up for page size is 16K, you will have
to create table space with page size of 16K, which will also require to
create a buffer pool with page size 16K.


>
>



-

Hemant Shah /\ ASCII带状广告系列

电子邮件:没有************ @ xnet.com \ / - -------------------

X对抗HTML邮件

回复,删除NoJunkMail / \并张贴<来自我的电子邮件地址的


----------------- [请勿发送未经处理的大量电子邮件] - -----------------

我没有忘记,上面的意见仅限于我。

it'在某个地方的磁带上备份了。其他人可以拥有自己的。

--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven''t lost my mind, Above opinions are mine only.
it''s backed up on tape somewhere. Others can have their own.


嗨..


如何在命令提示符下开始在Linux中创建表空间。 。?

控制中心非常简单.....


我是否必须使用MKDIR然后更改所有权?


rAinDeEr写道:
rAinDeEr wrote:

嗨..


如何开始在命令提示符下在Linux中创建表空间...?

控制中心非常简单.....


我是否必须使用MKDIR然后更改所有权?
Hi..

How do I start creating Tablespaces in Linux in the command prompt... ?
Control centre is really easy.....

Do i have to use MKDIR then change the ownership ?



您是否考虑过使用自动存储?它会让你的生活更加轻松。


干杯

Serge

-

Serge Rielau

DB2解决方案开发

IBM多伦多实验室


IOD会议
< a rel =nofollowhref =http://www.ibm.com/software/data/ondemandbusiness/conf2006/\"target =_ blank> http://www.ibm.com/software/data/ond。 ..ness / conf2006 /


这篇关于创建表空间:最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆