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 > How mant Charates ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-15-08, 10:42
want_tobe_dba want_tobe_dba is offline
Registered User
 
Join Date: Dec 2007
Posts: 23
How mant Charates ?

I have a question. I need to define 195000 charters. I would like to define in MB clob data type. How many MB would be good?

Any suggestions please

Last edited by want_tobe_dba; 04-15-08 at 10:58.
Reply With Quote
  #2 (permalink)  
Old 04-15-08, 11:13
want_tobe_dba want_tobe_dba is offline
Registered User
 
Join Date: Dec 2007
Posts: 23
Reply With Quote
  #3 (permalink)  
Old 04-15-08, 11:14
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
For DB2 for LUW, the largest clob is 2 GB. I would either use that, as clobs are variable length entities.

Andy
Reply With Quote
  #4 (permalink)  
Old 04-15-08, 11:23
want_tobe_dba want_tobe_dba is offline
Registered User
 
Join Date: Dec 2007
Posts: 23
I definied 1MB CLOB assumed that 195000 =1 MB
Reply With Quote
  #5 (permalink)  
Old 04-15-08, 13:33
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
It depends on your character set. If you have 1 single byte character set, e.g. UTF-8, then a single character can take up at most 4 bytes.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #6 (permalink)  
Old 04-22-08, 14:23
want_tobe_dba want_tobe_dba is offline
Registered User
 
Join Date: Dec 2007
Posts: 23
it is single charater

195000*4 (B)=780000
780000/1024 =761.71875 KB
761.71875/1024=0.743865966796875 MB


thanks
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