473,499 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to run LOAD or IMPORT from Java

Hi,

Is it possible to run the db2 utility to load or import rows from Java?
I cannot find the correct command line structure.

Thanks in advance,

Alejandrina

Jul 26 '06 #1
5 7772
apattin, pls try "Admin_CMD" procedure, I wish it will be fit for you.
For detailed information, pls refer to information center.
apattin 写道:
Hi,

Is it possible to run the db2 utility to load or import rows from Java?
I cannot find the correct command line structure.

Thanks in advance,

Alejandrina
Jul 27 '06 #2
Thanks for the tip. It does not support load or import, though. Does
anyone know another way?

Alejandrina

Hardy wrote:
apattin, pls try "Admin_CMD" procedure, I wish it will be fit for you.
For detailed information, pls refer to information center.
apattin 写道:
Hi,

Is it possible to run the db2 utility to load or import rows from Java?
I cannot find the correct command line structure.

Thanks in advance,

Alejandrina
Jul 27 '06 #3
apattin wrote:
Thanks for the tip. It does not support load or import, though. Does
anyone know another way?
A stored procedure wrapper for the LOAD API call is described here:
http://www-128.ibm.com/developerwork...dm-0505stolze/

You could further parameterize this or adjust it to IMPORT if required.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Jul 27 '06 #4
THIS IS IT! Thank you so much.
Knut Stolze wrote:
apattin wrote:
Thanks for the tip. It does not support load or import, though. Does
anyone know another way?

A stored procedure wrapper for the LOAD API call is described here:
http://www-128.ibm.com/developerwork...dm-0505stolze/

You could further parameterize this or adjust it to IMPORT if required.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Jul 31 '06 #5
apattin wrote:
THIS IS IT! Thank you so much.
Knut Stolze wrote:
>apattin wrote:
Thanks for the tip. It does not support load or import, though. Does
anyone know another way?

A stored procedure wrapper for the LOAD API call is described here:
http://www-128.ibm.com/developerwork...dm-0505stolze/
>>
You could further parameterize this or adjust it to IMPORT if required.
Just remember that there is also a more powerful DB2LOAD procedure already
available in DB2. It was described here in this group in more detail a
while ago.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Aug 1 '06 #6

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

Similar topics

0
3052
by: dB | last post by:
I want to load an applet locally from the client's hard drive from an html/jsp page served by Tomcat on the local machine or a remote server. The motivation is that I need to print to the local...
1
2363
by: Andrew James | last post by:
All, I'm having some trouble with understanding python's importing behaviour in my application. I'm using psyco to optimise part of my code, but I'm not sure whether it inherits throughout the...
0
2131
by: atlantis | last post by:
Hi, I have a very strange problem with xsl:import when usig RELATIVE path on AIX 5.2 server. I have two XSL files in the same directory: "ists_xslt3.xsl" and "ists_xslt3_layout.xsl". This...
8
3553
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?...
13
17795
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,...
1
4521
by: skchonghk | last post by:
Dear all smart experts, I write a simple Java UDF, which should run on DB2 v8 on AIX. But it can't load the Java class. Help ugently needed!! Thanks! I develop and deploy the Java UDF with...
10
4210
by: asenthil | last post by:
Hi guys, I have got a question regarding LOAD DATA INFILE. Can some one save my day. 1. I want to import a txt file into mysql database. when I use the following query in the mysql> prompt its...
6
2392
by: owz | last post by:
I am trying 2 load details about cars from a.txt file and then display the total stock value off all cars. public class Car { // attributes private String manufacturer; private...
9
4717
by: ponvijaya | last post by:
Hi all, We are using import command as import java.io.*, import java.util.* etc in the program. Consider i am having a class A. Is there any difference related to Memory...
0
7012
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
7180
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
7225
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...
1
6901
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...
1
4920
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...
0
4605
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...
0
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
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 ...

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.