Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 13th, 2008, 12:45 PM
situ
Guest
 
Posts: n/a
Default Problem with Db2 Export Command

Hi,

I have Db2 ver 9.5 for LUW , running on two different system, one is
linux and other on windows and have the table with same defination on
both the system.

i exported blob column of the in one of the table in both the system
in delimited format,

but the exported file from both the system are not identical, i wonder
is it a problem with Db2 or the way the OS process the file.

Command : DB2 EXPORT TO D:\Load OF DEL MODIFIED BY NOCHARDEL MESSAGES
D:\Load\output.log SELECT .BLOB_COLUMN FROM LOAD_TABLE


thanks you much,
Situ

  #2  
Old August 13th, 2008, 12:55 PM
Serge Rielau
Guest
 
Posts: n/a
Default Re: Problem with Db2 Export Command

situ wrote:
Quote:
Hi,
>
I have Db2 ver 9.5 for LUW , running on two different system, one is
linux and other on windows and have the table with same defination on
both the system.
>
i exported blob column of the in one of the table in both the system
in delimited format,
>
but the exported file from both the system are not identical, i wonder
is it a problem with Db2 or the way the OS process the file.
How are they not identical?

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
  #3  
Old August 13th, 2008, 01:45 PM
situ
Guest
 
Posts: n/a
Default Re: Problem with Db2 Export Command

On Aug 13, 4:52*pm, Serge Rielau <srie...@ca.ibm.comwrote:
Quote:
situ wrote:
Quote:
Hi,
>
Quote:
I have Db2 ver 9.5 for LUW , running on two different system, one is
linux and other on windows and have the table with same defination on
both the system.
>
Quote:
i exported blob column of the in one of the table in both the system
in delimited format,
>
Quote:
but the exported file from both the system are not identical, i wonder
is it a problem with Db2 or the way the OS process the file.
>
How are they not identical?
>
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Hi Serger thks for th reply..


i checked there bit representations and its entairly diffrent..

regards,
Situ



  #4  
Old August 13th, 2008, 01:45 PM
situ
Guest
 
Posts: n/a
Default Re: Problem with Db2 Export Command

On Aug 13, 4:52*pm, Serge Rielau <srie...@ca.ibm.comwrote:
Quote:
situ wrote:
Quote:
Hi,
>
Quote:
I have Db2 ver 9.5 for LUW , running on two different system, one is
linux and other on windows and have the table with same defination on
both the system.
>
Quote:
i exported blob column of the in one of the table in both the system
in delimited format,
>
Quote:
but the exported file from both the system are not identical, i wonder
is it a problem with Db2 or the way the OS process the file.
>
How are they not identical?
>
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Thks for the replay..

i compared there bit represenation and i'm getting some diffrences.


Regards,
Situ

  #5  
Old August 14th, 2008, 01:55 AM
Ian
Guest
 
Posts: n/a
Default Re: Problem with Db2 Export Command

situ wrote:
Quote:
Hi,
>
I have Db2 ver 9.5 for LUW , running on two different system, one is
linux and other on windows and have the table with same defination on
both the system.
>
i exported blob column of the in one of the table in both the system
in delimited format,
>
but the exported file from both the system are not identical, i wonder
is it a problem with Db2 or the way the OS process the file.
>
Command : DB2 EXPORT TO D:\Load OF DEL MODIFIED BY NOCHARDEL MESSAGES
D:\Load\output.log SELECT .BLOB_COLUMN FROM LOAD_TABLE
>
When you export LOBs, if you don't specify the "lobsinfile" modifier,
you only get the first 32kb of data -- not necessarily the entire LOB.
Each record will be separated by a normal end-of-line character --
on UNIX this is LF; on Windows it CRLF. This is why the files are
different.

So, if you're going to export LOBs, make sure you use the "lobsinfile"
modifier, as in:

export to d:\load of del
modified by lobsinfile
select blob_column from load_table

You'll get 2 files -- d:\load (a text file with lob locators), and
d:\load.001.lob (a binary file containing the LOBs). The file
containing the LOBs should be identical.

You do have control over where the lob files are written, using the
LOBS TO and LOBFILE directives in export.


Good luck,

  #6  
Old August 14th, 2008, 12:55 PM
situ
Guest
 
Posts: n/a
Default Re: Problem with Db2 Export Command

On Aug 14, 5:50 am, Ian <ianb...@mobileaudio.comwrote:
Quote:
situ wrote:
Quote:
Hi,
>
Quote:
I have Db2 ver 9.5 for LUW , running on two different system, one is
linux and other on windows and have the table with same defination on
both the system.
>
Quote:
i exported blob column of the in one of the table in both the system
in delimited format,
>
Quote:
but the exported file from both the system are not identical, i wonder
is it a problem with Db2 or the way the OS process the file.
>
Quote:
Command : DB2 EXPORT TO D:\Load OF DEL MODIFIED BY NOCHARDEL MESSAGES
D:\Load\output.log SELECT .BLOB_COLUMN FROM LOAD_TABLE
>
When you export LOBs, if you don't specify the "lobsinfile" modifier,
you only get the first 32kb of data -- not necessarily the entire LOB.
Each record will be separated by a normal end-of-line character --
on UNIX this is LF; on Windows it CRLF. This is why the files are
different.
>
So, if you're going to export LOBs, make sure you use the "lobsinfile"
modifier, as in:
>
export to d:\load of del
modified by lobsinfile
select blob_column from load_table
>
You'll get 2 files -- d:\load (a text file with lob locators), and
d:\load.001.lob (a binary file containing the LOBs). The file
containing the LOBs should be identical.
>
You do have control over where the lob files are written, using the
LOBS TO and LOBFILE directives in export.
>
Good luck,
Thks Ian,

Regards,
Situ
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles