473,320 Members | 2,000 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

Aug 13 '08 #1
5 6967
situ wrote:
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
Aug 13 '08 #2
On Aug 13, 4:52*pm, Serge Rielau <srie...@ca.ibm.comwrote:
situ wrote:
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
Hi Serger thks for th reply..
i checked there bit representations and its entairly diffrent..

regards,
Situ

Aug 13 '08 #3
On Aug 13, 4:52*pm, Serge Rielau <srie...@ca.ibm.comwrote:
situ wrote:
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
Thks for the replay..

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

Aug 13 '08 #4
Ian
situ wrote:
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,

Aug 14 '08 #5
On Aug 14, 5:50 am, Ian <ianb...@mobileaudio.comwrote:
situ wrote:
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,
Thks Ian,

Regards,
Situ
Aug 14 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: P.L. | last post by:
Hi all, I am trying to install DB2 Universal Database Enterprise Server Edition v8.1 (db81eeso.zip) on a Blade2000 running Solaris 2.8 (with latest Recommended patches installed) with 512M RAM...
1
by: Janne Ruuttunen | last post by:
Hello DB2 people, I'm having problems exporting >= 250000 lobs to IXF files with the LOBSINFILE option, using a legacy DB2 2.1 system on Win NT. If I don't specify a path for the lobs,...
6
by: Oliver Stratmann | last post by:
Hello all, is there another way to export data to a csv-file (comma-separated format)? We tried the EXPORT-command and got the following error " SQL1325N The remote database environment does...
2
by: hikums | last post by:
Hello, If I export a file containing date field, export to "/james/j.txt" of DEL select a1,adate from a The date is represented in YYYY/MM/DD format as expected. Output I need is to be in...
1
by: Michael | last post by:
I have an application that will export two files to fixed width text to combine as a single text file. The first export will be a query containing header information for the file, the second query...
4
by: Madhu Gopinathan | last post by:
Hi All, I am faced with a horrible hang problem. I have a COM exe server that executes some tasks. The task execution manager is a thread that manages the pool of threads, which is 4 per processor....
5
by: Michael Rudolph | last post by:
Hi newsgroup, I have an issue with the configuration of a DB2 federated database (WebSphere Information Integrator) in conjunction with the relational wrapper for Oracle on AIX. DB2 seems to not...
5
by: Simon | last post by:
Dear reader, With the export command you can export a query to Excel. By activate this command a form pop's up with the following text:
9
by: QCLee | last post by:
Sir can you help me to transfer my Access Query to MS excel? i have a command button on the form to export the parameter query named "HVACWindwardQuery" to excel spreadsheet and i got the codes...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.