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 > Export file and Blob field shows Garbages

View Poll Results: export file with blob field show garbages
a 0 0%
b 0 0%
Voters: 0. You may not vote on this poll

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-15-06, 09:16
Joshua Lee Joshua Lee is offline
Registered User
 
Join Date: Dec 2005
Posts: 7
Export file and Blob field shows Garbages

Hi there,

I'm trying to perform the following:

EXPORT TO d:\bkA OF DEL lobs to d:\bkA MESSAGES d:\bkA\bkA.log select * from fos.bkA

However, in the the file bkA, there is this blob column which shows garbages.
How should I go about extract the data for this blob column accurately?
Please advise. Thank you very much.
Reply With Quote
  #2 (permalink)  
Old 02-15-06, 09:26
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Joshua,

Look into Command Ref.

It looks like you might be missing at least 2 parms lobfile and modified by lobsinfile
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #3 (permalink)  
Old 02-15-06, 22:01
Joshua Lee Joshua Lee is offline
Registered User
 
Join Date: Dec 2005
Posts: 7
Hi Courgar8000,

If i don't use lobfile :

EXPORT TO d:\bkA OF DEL MESSAGES d:\bkA\bkA.log select * from fos.bkA

Inside table bkA before download is a blob which contained valid data.
But when exported, it contained garbages.
How should I export it correctly?
Please advise. Thank you.
Reply With Quote
  #4 (permalink)  
Old 02-15-06, 22:54
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Use db2look. That way it will figure out who to export for you since you don't know how to do it yourself.
__________________
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
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