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 > Changing default DB2 BLOB field size

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-22-09, 10:04
jknizely jknizely is offline
Registered User
 
Join Date: May 2009
Posts: 2
Changing default DB2 BLOB field size

I am trying to find how to change the default BLOB field size in DB2. I have encountered an instance that is defaulting to 1000M and I need to set it back to 1M. I thought that we could simply specify a length for the BLOB columns that we are creating. However, we are using generated SQL for creating tables, and we cannot modify that code. Hence, we are at the mercy of the default BLOB size. Also, does anyone know how to query DB2 to find what the default BLOB field size is? After searching the pubs, I have resorted to simply creating a table and observing the results.

We are using the latest version of DB2 UDB for Windows.
Any help would certainly be appreciated.
Reply With Quote
  #2 (permalink)  
Old 05-22-09, 10:17
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Did you try the SQL Reference (Vol 2 ) manual under Create Table?

The default is 1 M or 1000 K or 1,048,576 bytes.
__________________
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
  #3 (permalink)  
Old 05-22-09, 11:24
jknizely jknizely is offline
Registered User
 
Join Date: May 2009
Posts: 2
Thanks. After additional searching, we discovered that it was Oracle's filtering code which converted BLOB into BLOB(1000M) not DB2.
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