If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > What is the best way or difference

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-11, 14:41
edoo.okati edoo.okati is offline
Registered User
 
Join Date: Nov 2011
Posts: 8
What is the best way or difference

One of the IBM's product has a create command for database with 8K info and table space with 32 k.

Is both suppose to have 32 K ?

or is it ok?

which is best way ?
Reply With Quote
  #2 (permalink)  
Old 12-14-11, 14:48
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
It would help if you give more information. What DB2 product? What OS? The statement you are using. etc.


Andy
Reply With Quote
  #3 (permalink)  
Old 12-14-11, 14:56
edoo.okati edoo.okati is offline
Registered User
 
Join Date: Nov 2011
Posts: 8
Thanks For quick response.
IBM Process Server is product ( it has multiple databases ( some are 32 K some are 8K)) on AIX 6.1 DB2 9.5 FP4

CREATE DATABASE XXXX AUTOMATIC STORAGE YES ON /data01 USING CODESET UTF-8 TERRITORY US PAGESIZE 8 K

CREATE LARGE TABLESPACE XXXX PAGESIZE 32 K MANAGED BY DATABASE USING (FILE '/data01/XXXXX/OBSRTS' 512M)
AUTORESIZE YES
EXTENTSIZE 32
PREFETCHSIZE AUTOMATIC
INCREASESIZE 512 M
MAXSIZE NONE
BUFFERPOOL BP32k ;

Last edited by edoo.okati; 12-14-11 at 15:01.
Reply With Quote
  #4 (permalink)  
Old 12-14-11, 15:02
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The 8K on the database create statement is for the system info and default size. The pagesize on the create tablespace is for that tablespace only. There is no problem doing this.

Andy
Reply With Quote
  #5 (permalink)  
Old 12-14-11, 15:11
edoo.okati edoo.okati is offline
Registered User
 
Join Date: Nov 2011
Posts: 8
Thank you so much.
Reply With Quote
  #6 (permalink)  
Old 12-14-11, 15:30
edoo.okati edoo.okati is offline
Registered User
 
Join Date: Nov 2011
Posts: 8
I would like to all 32k. is it recommended ?
Reply With Quote
  #7 (permalink)  
Old 12-14-11, 15:36
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
If you don't create a 8K tablespace, then your tables may go to USERSPACE1 which is created by DB2 when database is created.

db2 list tablespaces show detail
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #8 (permalink)  
Old 12-14-11, 15:43
edoo.okati edoo.okati is offline
Registered User
 
Join Date: Nov 2011
Posts: 8
Except Temp syscatalog,

I have three table spaces

USERSPACE1, DATA_TS, IDX_TS

All two of them are 32k (DATA_TS, IDX_TS) USERSPACE1 is 8K.



I would like to have database size is also 32k and along with it all three table spaces are 32k ( 2 of the already 32 K)
Reply With Quote
  #9 (permalink)  
Old 12-15-11, 00:54
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
CREATE DATABASE XXXX AUTOMATIC STORAGE YES ON /data01 USING CODESET UTF-8 TERRITORY US PAGESIZE 32 K
???
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On