473,395 Members | 1,583 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,395 software developers and data experts.

How to lode/import all files in same time

Hi friends,

I have to lode/import the data from files, is there any command to
lode/import, in same time ( with singal command) iam using db2 8.2.
Thanks In advance,

Ravi.

Nov 12 '05 #1
2 1646
Ravi wrote:
Hi friends,

I have to lode/import the data from files, is there any command to
lode/import, in same time ( with singal command) iam using db2 8.2.


Do you want a single command - out of a desire for simplicity? or to
avoid data quality problems? Or some other reason? And is this a
one-time-only need, or for a recurring process? Because I'm not aware
of a way to load/import multiple tables with one command.

But if you're going for simmplicity, you can very easily wrap the
load/import command in a function in perl/python/ruby/korn shell/bash
shell/etc - then just call it repetitively with table names & file
names. My data mart loaders work this way - typically
loading/importing 30 tables but are very maintainable.

On the other hand, if you're dealing with users hitting the tables
while you're loading/importing to them and will break referential
integrity during the process there are a variety of other, fairly
complex options:
* keep two copies of data and flip between them through views or
catalogs
* if your data allows it, use a view that turns on sets of rows
based upon entries in another table - which is the last table loaded
* write a custom app in which all related data is loaded in a single
transaction then committed before next set is loaded

buck

Nov 12 '05 #2
Have you checked the "Command Reference" manual?? The explanation of the
LOAD command is there and it clearly specifies that multiple input files
are allowed.
LOAD ...... FROM file1,file2,file3,...,filen ...........

Manuals are available online from IBM's website:
http://www.ibm.com/software/data/db2...manualsv8.html

Phil Sherman

Ravi wrote:
Hi friends,

I have to lode/import the data from files, is there any command to
lode/import, in same time ( with singal command) iam using db2 8.2.
Thanks In advance,

Ravi.

Nov 12 '05 #3

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

Similar topics

1
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...
3
by: Olivier Noblanc ATOUSOFT | last post by:
Hello, When i want to import a .py fire from another subdirectory i make import inc/setupxml but that make me an error message.
4
by: TonyMontana | last post by:
Hello, I've the following problem. I've to read out the data of a custom application. I think (I'm not sure) this application is using a Paradox DB to store it's information. I don't know it...
1
by: enrio | last post by:
I have made a number of changes to the code of an access 2000 application, and now the person responsible for the application wants to import one change at a time into his "master copy", after he...
4
by: BostonNole | last post by:
I am looking for suggestions on the most efficient way to import 7 different fixed width files into a DataSet. Not all at the same time. One file at a time, but the format could change from file...
2
hariharanmca
by: hariharanmca | last post by:
Is it Possible to Lode word file in Rich text box or some other way to view a word file.
1
by: Steve | last post by:
Hi All, I have an Excel file being delivered to a shared drive where I only have read access on a daily basis. The files arrive in the following format 'Filename+timestamp.xls' Example:...
49
by: Martin Unsal | last post by:
I'm using Python for what is becoming a sizeable project and I'm already running into problems organizing code and importing packages. I feel like the Python package system, in particular the...
9
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.