If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Best way to load db2 - shell script, perl, ...?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-15-10, 09:49
z96 z96 is offline
Registered User
 
Join Date: May 2010
Posts: 1
Question Best way to load db2 - shell script, perl, ...?

Hi everyone,

I have been working on shell scripts and Perl for sometime recently.
In my work place we use a Perl script to load millions on records from flat files. The Perl script uses spec files or create spec format using details from system tables if the spec file is not available. The data is being loaded from different nodes (cluster server).

My doubt is
1) Can this be efficiently done in shell script ?
2) Which will be better and less time consuming to load the db2 tables ?

Thanks
Reply With Quote
  #2 (permalink)  
Old 05-15-10, 16:20
db2udb_freelance db2udb_freelance is offline
Registered User
 
Join Date: May 2010
Posts: 2
shell script or perl won't be able to make any difference to the Loading time of the flat files to tables. That will be DB2 load agent which will decide how faste it can load all the million records.

The scripting part will format the data and will invoke the Db2 loader. So whichever is easier for you to achieve the formatting part (flat file), you can use that. We use AWK/SHELL for Loading, and for many others we use PERL based on the functionality and requirement.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On