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 > LOAD or FEDERATION

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-09-08, 00:38
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
LOAD or FEDERATION

I have a specific scenario wherein I have a single server having DB2 UDB v8.2. In this particular server i have 2 databases on 2 separate nodes. Now i want to move data (huge amount of data) from one of these databases to another.

So i needed to know in this particular scenario which option would be better
1. Do select from first and then LOAD into the other.
2. Use federation to load data.

At this point of time federation seems to be the most logical option for me since data gets transferred from one db to other on the same machine but then i needed to know whether any issues are present which will tilt the balance in favour of using the LOAD method
Reply With Quote
  #2 (permalink)  
Old 07-09-08, 08:32
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Advantages of the export/load approach:

1) Fairly easy to do, simple scripts
2) No extra setup necessary

Disadvantages:

1) requires disk space to store the intermediate files
2) Two step process


Advantages of using federation

1) Once setup is complete, simple scripts, one step process
2) no extra disk space needed

Disadvantages:

1) Setup can be tedious and time consuming, but only done once

Picking which one to use really depends on your particular needs. On the face of it, using export/load might seem the way to go if you have the disk space to spare, but if this will be an on going process, setting up federation might be the way to go since you only have to do it once.

Andy
Reply With Quote
  #3 (permalink)  
Old 07-09-08, 09:44
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
if on unix platform you could create a pipe
export to pipe... and load from same pipe
no disk space is being used only memory
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #4 (permalink)  
Old 07-10-08, 01:31
Pawan Kumar Pawan Kumar is offline
Registered User
 
Join Date: Mar 2008
Posts: 120
how to do pipe export? and load from same pipe?
__________________
Regards
Pawan Kumar
Reply With Quote
  #5 (permalink)  
Old 07-10-08, 03:08
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Everything in UNIX is a file. That holds also true for pipes. So you create a named pipe and export to it - or import/load from it.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #6 (permalink)  
Old 07-10-08, 17:32
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
Named Pipe?

Please can you explain the same with the help with an example. I understand the concept but am not sure how the same would be represented with the help of commands.

Will appreciate an syntax based example here.
__________________
HTH

Nitin

Ask the experienced rather than the learned
Reply With Quote
  #7 (permalink)  
Old 07-11-08, 04:38
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
@nitingm

you may try out this pretty old but pretty good tutorial for named pipes....

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