473,732 Members | 2,175 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

load vs. import ( warnings )

Hello,
If i import data into tables, import will write all warnings in
message file and will tell me why any exception row is rejected.
I wanted to get exception rows in seperate table which i assume i can
not do with import

If i use load, i can get exception rows in exception table but now
load does not give details in message file on why those rows were
exception rows and why they were rejected.
How can i achieve both using any of the utilities.

Regards,
Jagdip Singh

Jul 11 '07 #1
4 3960
On Jul 11, 5:49 pm, db2admin <jag...@gmail.c omwrote:
Hello,
If i import data into tables, import will write all warnings in
message file and will tell me why any exception row is rejected.
I wanted to get exception rows in seperate table which i assume i can
not do with import

If i use load, i can get exception rows in exception table but now
load does not give details in message file on why those rows were
exception rows and why they were rejected.
How can i achieve both using any of the utilities.

Regards,
Jagdip Singh
1. Use load as you described above, where rejects go into an exception
table.
2. Export all rows from the exception table.
3. Use import on the exported data, which will all be rejected with
reasons in the message file ...

--
Jeroen

Jul 11 '07 #2
On Jul 11, 12:10 pm, Jeroen van den Broek
<nlt...@baasbov enbaas.demon.nl wrote:
On Jul 11, 5:49 pm, db2admin <jag...@gmail.c omwrote:
Hello,
If i import data into tables, import will write all warnings in
message file and will tell me why any exception row is rejected.
I wanted to get exception rows in seperate table which i assume i can
not do with import
If i use load, i can get exception rows in exception table but now
load does not give details in message file on why those rows were
exception rows and why they were rejected.
How can i achieve both using any of the utilities.
Regards,
Jagdip Singh

1. Use load as you described above, where rejects go into an exception
table.
2. Export all rows from the exception table.
3. Use import on the exported data, which will all be rejected with
reasons in the message file ...

--
Jeroen
Thanks for your reply.

When i use following file type modifiers

modified by coldel| dumpfile=dumpfi le.$1 dumpfileaccessa ll=x

where $1 is command line parameter i provide when i run shell script
containing my load script
I get error

SQL3016N An unexpected keyword "accessall= x" was found in the
filetmod
parameter for the filetype.

What could be wrong ? dumpfile will be really helpful for me to test
migration. Please help me if someone experienced same problem before
or someone knows how to deal with this problem.
Regards,
Jagdip Singh

Jul 16 '07 #3
db2admin wrote:
On Jul 11, 12:10 pm, Jeroen van den Broek
<nlt...@baasbov enbaas.demon.nl wrote:
>On Jul 11, 5:49 pm, db2admin <jag...@gmail.c omwrote:
>>Hello,
If i import data into tables, import will write all warnings in
message file and will tell me why any exception row is rejected.
I wanted to get exception rows in seperate table which i assume i
can not do with import
>>If i use load, i can get exception rows in exception table but now
load does not give details in message file on why those rows were
exception rows and why they were rejected.
How can i achieve both using any of the utilities.
>>Regards,
Jagdip Singh

1. Use load as you described above, where rejects go into an
exception table.
2. Export all rows from the exception table.
3. Use import on the exported data, which will all be rejected with
reasons in the message file ...

--
Jeroen

Thanks for your reply.

When i use following file type modifiers

modified by coldel| dumpfile=dumpfi le.$1 dumpfileaccessa ll=x

where $1 is command line parameter i provide when i run shell script
containing my load script
I get error

SQL3016N An unexpected keyword "accessall= x" was found in the
filetmod
parameter for the filetype.

What could be wrong ? dumpfile will be really helpful for me to test
migration. Please help me if someone experienced same problem before
or someone knows how to deal with this problem.
Did you check DB2's Infocenter for valid filetype modifiers for the load
utility?
Here's the link for version 9:
http://publib.boulder.ibm.com/infoce...c/r0011044.htm

As you can see (in Table 2), the modifier to grant read access for the
dumpfile to 'OTHERS' is just 'dumpfileaccess all', i.e. no '=x' appended to
it.
Also be sure to comply with the other restrictions mentioned:
1. also specify the 'dumpfile' modifier (which you did)
2. make sure the user has at least SELECT privs on the target table for the
load
3. you should be running on a Unix (or alike) environment
Also note that this only works for newly created dumpfiles, for existing
files the permissions will not be changed.

HTH

--
Jeroen
Jul 16 '07 #4
On Jul 16, 3:39 pm, "The Boss" <use...@No.Spam .Please.invalid wrote:
db2admin wrote:
On Jul 11, 12:10 pm, Jeroen van den Broek
<nlt...@baasbov enbaas.demon.nl wrote:
On Jul 11, 5:49 pm, db2admin <jag...@gmail.c omwrote:
>Hello,
If i import data into tables, import will write all warnings in
message file and will tell me why any exception row is rejected.
I wanted to get exception rows in seperate table which i assume i
can not do with import
>If i use load, i can get exception rows in exception table but now
load does not give details in message file on why those rows were
exception rows and why they were rejected.
How can i achieve both using any of the utilities.
>Regards,
Jagdip Singh
1. Use load as you described above, where rejects go into an
exception table.
2. Export all rows from the exception table.
3. Use import on the exported data, which will all be rejected with
reasons in the message file ...
--
Jeroen
Thanks for your reply.
When i use following file type modifiers
modified by coldel| dumpfile=dumpfi le.$1 dumpfileaccessa ll=x
where $1 is command line parameter i provide when i run shell script
containing my load script
I get error
SQL3016N An unexpected keyword "accessall= x" was found in the
filetmod
parameter for the filetype.
What could be wrong ? dumpfile will be really helpful for me to test
migration. Please help me if someone experienced same problem before
or someone knows how to deal with this problem.

Did you check DB2's Infocenter for valid filetype modifiers for the load
utility?
Here's the link for version 9:http://publib.boulder.ibm.com/infoce...ic/com.ibm.db2....

As you can see (in Table 2), the modifier to grant read access for the
dumpfile to 'OTHERS' is just 'dumpfileaccess all', i.e. no '=x' appended to
it.
Also be sure to comply with the other restrictions mentioned:
1. also specify the 'dumpfile' modifier (which you did)
2. make sure the user has at least SELECT privs on the target table for the
load
3. you should be running on a Unix (or alike) environment
Also note that this only works for newly created dumpfiles, for existing
files the permissions will not be changed.

HTH

--
Jeroen
Hello Jeroen,

I am using DB2 8.2 with fixpak 12 and i got these parameters from
command reference for DB2 V8.2
Although i did not try using dumpfileaccessa ll' without x but Command
reference for 8.2 says that I should use dumpfileaccessa ll=x

regards,
jagdip

Jul 16 '07 #5

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

Similar topics

2
7056
by: Alex Hunsley | last post by:
I'm using a mysql monitor under cygwin (on win xp) to do a 'load data infile' to put some data into a mysql database (I'm using the xampp bundle).. My problem is that I have a four line CSV file beign inserted, but only two records actually get inserted: mysql> use master; delete from data; LOAD DATA INFILE 'D:/customJobs/database setup/dbaseFourLines.csv' REPLACE INTO TABLE data FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'...
5
2573
by: kk | last post by:
Hello, I am using the udb 8.1 task scheduler to schedule a load. Is there any way to also schedule an OS command (win32) to delete the file after the load? I have a python script that will do what I need, I just need to call it after the load. One more question: is there anyway to use the import (rather than the load) to import fixed width data. It is scheduled every 10 minutes. I would rather insert and update rather than load....
8
3569
by: DB2 Novice | last post by:
I am trying to use DB2 Control Centre (version 8.2) to load one flat file into multiple tables. However, I don't see the options in Control Centre that allows that. Anyone knows how to do this? DB2 Novice
13
17853
by: usenet | last post by:
Hi. Can any of you explain the major differences in LOAD and IMPORT in laymen terms? I've read the DB2 docs: " Inserts data from an external file with a supported file format into a table, hierarchy, or view. A faster alternative is LOAD; however, the load utility does not support loading data at the hierarchy level."
4
4116
by: bingfeng | last post by:
I have some codes generated by perl, in which initialize some huge struct,such as PARA TOS_network_spantree_set_0_para_0 = { "vlan", emNUM, NULL, "", "configuration on a designated vlan", PRO_REQUIRED }; const char* TOS_network_spantree_set_0_para_1_emvalue = { "disable", "enable", NULL }; PARA TOS_network_spantree_set_0_para_1 = { "", emENUM, TOS_network_spantree_set_0_para_1_emvalue, "", "enable or disable STP", PRO_REQUIRED };
2
22535
by: Carmit | last post by:
Hi, I'm trying to build a proxy for this webservice: http://webservices.sabre.com/wsdl/sabreXML1.0.00/tpf/EndTransactionLLSRQ.wsdl I'm getting the following error: Error: Unable to import binding 'EndTransactionSoapBinding' from namespace 'http s://webservices.sabre.com/websvc'.
5
2175
by: Konstantin Andreev | last post by:
Recently I became interested, - Are the data, bulk loaded in the table with LOAD utility, consume the same disk space as loaded with IMPORT utility? The answer turned out to be NOT ! Here is a nutshell description of the test. The testing was done at "DB2/LINUX 8.2.3". Tables for tests: F4106 has 5203 rows, 32 columns. F42199 has 1399252 rows, 245 columns.
9
2117
by: rsoh.woodhouse | last post by:
Hi, I'm trying to work out some strange (to me) behaviour that I see when running a python script in two different ways (I've inherited some code that needs to be maintained and integrated with another lump of code). The sample script is: # Sample script, simply create a new thread and run a # regular expression match in it. import re
13
6598
by: rdudejr | last post by:
Hi all, I hardly ever make a post unless I am having a very purplexing issue, so this one should be good... I am trying to do a load against a database on an AIX server into a DB2 v9.1 database, using SAN for storage. The table has a few CLOBs (smallish clobs but we are storing XML data in non-native format). Here is the load command I am using:
0
8773
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9445
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9306
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9234
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6733
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6030
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4805
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3259
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2177
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.