473,396 Members | 2,004 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,396 software developers and data experts.

Exporting large tables with a lob column


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, defining more than 250 base
names for the lobs leads to an error message something like "DB2
encountered an unexpected error when sending the query to the backend
process" (I don't have the exact message at hand). It doesn't matter
how short the base names are. The documentation does not mention this
kind of a restriction, it only says "one or more base names".

If I instead try a to distribute the lobs to separate directories by
specifying paths using the LOBPATH syntax, the export fails as follows
(using a bit more manageable amounts of data for the example's
purposes):

---8<---

db2 "export to sometable.ixf of ixf lobs to lobs1\,lobs2\,lobs3\
lobfile a0,a1,a2,a3,a4,a5,a6,a7,a8,a9 modified by lobsinfile select
foo,bar from sometable"

SQL3104N The Export/Unload utility is beginning to export/unload data
to file "sometable.ixf".

SQL3040N Unable to use the lobpath/lobfile parameters as
specified. Reason code: "4".

SQL3185W The previous error occurred while processing data from row
"10000" of the input file.

SQL3105N The Export/Unload utility has finished exporting/unloading
"9999" rows.

---8<---

After this failure, the directory lobs1 contains the 10000 lob files
exported so far (separate files), and rest of the specified lob
directories are empty.

The reason code 4 means that there aren't enough lobfile names, which
suggests that the export utility cannot use the rest of the specified
directories when the name space for the first one is
exhausted. (Apparently, a reason code 5 (pathnames over 255 bytes?!)
has also once occurred in the similar situation).

In effect, I can't get more than 250000 rows exported, which is
unacceptable. Do I have to partition the data in some obscure way and
export them (and again, load them) in several steps, or is there a
workaround for this? Is this a know problem? Or am I missing
something?

Please help,

--
Janne Ruuttunen

Nov 12 '05 #1
1 7426

Anyone?

Once more in a nutshell:

In my DB2 2.1/NT, an export command with more than 250 lob base names
fails with the following message:

DB21016E The Command Line Processor encountered a system error while sending
the command to the backend process.

And, can't split them to several directories either. :(

A workaround or any insight greatly appreciated.
Thanks,
Janne
Janne Ruuttunen <jr******@vipunen.hut.fi> writes:
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, defining more than 250 base
names for the lobs leads to an error message something like "DB2
encountered an unexpected error when sending the query to the backend
process" (I don't have the exact message at hand). It doesn't matter
how short the base names are. The documentation does not mention this
kind of a restriction, it only says "one or more base names".

If I instead try a to distribute the lobs to separate directories by
specifying paths using the LOBPATH syntax, the export fails as follows
(using a bit more manageable amounts of data for the example's
purposes):

---8<---

db2 "export to sometable.ixf of ixf lobs to lobs1\,lobs2\,lobs3\
lobfile a0,a1,a2,a3,a4,a5,a6,a7,a8,a9 modified by lobsinfile select
foo,bar from sometable"

SQL3104N The Export/Unload utility is beginning to export/unload data
to file "sometable.ixf".

SQL3040N Unable to use the lobpath/lobfile parameters as
specified. Reason code: "4".

SQL3185W The previous error occurred while processing data from row
"10000" of the input file.

SQL3105N The Export/Unload utility has finished exporting/unloading
"9999" rows.

---8<---

After this failure, the directory lobs1 contains the 10000 lob files
exported so far (separate files), and rest of the specified lob
directories are empty.

The reason code 4 means that there aren't enough lobfile names, which
suggests that the export utility cannot use the rest of the specified
directories when the name space for the first one is
exhausted. (Apparently, a reason code 5 (pathnames over 255 bytes?!)
has also once occurred in the similar situation).

In effect, I can't get more than 250000 rows exported, which is
unacceptable. Do I have to partition the data in some obscure way and
export them (and again, load them) in several steps, or is there a
workaround for this? Is this a know problem? Or am I missing
something?

Please help,

--
Janne Ruuttunen


Nov 12 '05 #2

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

Similar topics

3
by: es22 | last post by:
Hi, I'm trying to decide whether to use one large table or many small tables. I need to gather information from various devices (about 500). Each device has its own Id and some data. Should I...
3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
1
by: Ross Johnson | last post by:
Hi, I'm moving a database from 7.0.2 to 7.3.3. The db contains several thousand large objects that I need to export. To do this I've managed to modify the contrib/pg_dumplo utility from 7.3.3...
2
by: pmud | last post by:
Hi, I am exporting data from an EDITABLE DATA GRID EXCEL. But the 1st column in data grid is Edit Column. I want to display all columns in Excel except for the Edit column. The following...
1
by: Luis Esteban Valencia | last post by:
Hello Everyone, Iam an intermediate ASP.Net programmer and iam facing a challenging task. I have a table in MS-SQL server database called 'Members'. The table has following fields... ...
1
by: NancyA | last post by:
I am using the following code to write data from a datagrid to an Excel file: Dim tw As New System.IO.StringWriter Dim hw As New System.Web.UI.HtmlTextWriter(tw) dg.RenderControl(hw)...
5
by: platinumbay | last post by:
I am trying to load large flat files; > 250 MB. What is the best practice for this? I have already read through everything I could find on Google, to no avail. I have a SQL DTS process that...
0
by: Christoph Haas | last post by:
Hi, list... I have written an application in Perl some time ago (I was young and needed the money) that parses multiple large text files containing nested data structures and allows the user to...
6
by: Coleen | last post by:
Hi All :-) I'm using .Net Framework 1.1, VB and need to be able to download the data from a datagrid into an Excel 2000 spreadsheet for our accounting users. Can anyone please point me to a good...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.