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 > Any file size limit for import in IXF with LOBs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-15-07, 23:48
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
Question Any file size limit for import in IXF with LOBs

Hi

DB2 8.2.6 on Windows 2000.

DB2 7.2 had an issue importing data with LOB file size greater than 1Gb. Does 8.2 has same issue/limitation?

Thanks

Hari Kumar

Last edited by sundaram; 05-16-07 at 00:15.
Reply With Quote
  #2 (permalink)  
Old 05-16-07, 18:29
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
What issue?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 05-16-07, 18:45
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
Hi Sathya,

The issue in 7.2.5 occurs under following circumstances

Export table that has lobs.
The exported lob file size is > 1GB
Import to another db/table the exported data.
The imported lob content get screwed-up when lobpointer (pointer in export file that points to start of data in the lobfile) tries to point to location > 1GB. lobpointer can access only offsets upto 1Gb.

Would like to know if this was fixed in version 8

Hari
Reply With Quote
  #4 (permalink)  
Old 05-16-07, 19:43
chaitu_onweb chaitu_onweb is offline
Registered User
 
Join Date: Dec 2006
Posts: 6
Hi,

U have to enable large files at the OS level. Then you can export the LOBS.
Reply With Quote
  #5 (permalink)  
Old 05-17-07, 07:19
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
What does "screwed-up" mean? Did you get an error message from DB2? If so, which? Did you get invalid data? Was the file truncated at the OS level?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #6 (permalink)  
Old 05-17-07, 18:33
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
Hi Stolze,

There are no errors in import log or in db2diag. But then if you review the contents of the imported lob data, some of the rows will have totaly junk data as contents.

Hari Kumar
Reply With Quote
  #7 (permalink)  
Old 05-20-07, 09:52
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
So you got no error message at all? How have you determined that the data is junk? Also, what kind of LOBs do you try to import (CLOB vs. BLOB)? For CLOBs, you may have code page issues. Depending on how where you got the data to be imported from, you may have send the data in the wrong mode (ASCII as binary FTP or vice versa).

In short, I believe that you simply had a problem in your setup and not a DB2 problem. But given that we don't have any details, we can only give some educated guesses.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #8 (permalink)  
Old 05-21-07, 18:27
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
So you got no error message at all?

Yes absoluetely no errors in import log file and db2diag.log

How have you determined that the data is junk?

The lob column was defined as clob - so I can see the text contents in extract. I did export of the table in question and found the contents started going bad only for the last set of rows. Actualy the contents of these bad rows where part of the data in the begining of the lob file.

Also, what kind of LOBs do you try to import (CLOB vs. BLOB)? For CLOBs, you may have code page issues. Depending on how where you got the data to be imported from, you may have send the data in the wrong mode (ASCII as binary FTP or vice versa

I do not think this is the case because the import and export tables where in the same database instance.

Regards

Hari Kumar
Reply With Quote
  #9 (permalink)  
Old 05-22-07, 09:54
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Stupid question then: why do you take the detour over an external file if you could simply copy the data from one table to another?

Anyway, my guess is that you simply had an environmental problem in V7. What you describe is straight-forward import/export stuff and that should work out of the box. Given that V7 is out of service for more than 1 year, I wouldn't want to pursue this further. If things don't work on V8, you should provide us more details...
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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