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 > db2move with UNIX pipe redirection

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-19-08, 10:26
cdelgadop cdelgadop is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
db2move with UNIX pipe redirection

Hi

Let's say i have a program that creates several files while running and i want to move those files to a remote server without actually store those files locally cause i don't have enough space. I'm thinking about tar pipes with rsync or netcat commands but i have tried these approach before with commands whose result were just one file (like tar or pax commands), something like this:

cd /sourcedir; tar -cvf - | nc -q 10 -l -l 7878

then in the remote server:

cd /targetdir; nc remoteserver 7878 | tar -xvf -

This somehow have worked for me. I have even used rsync and ssh tunneling in order to make such transfer as secure as possible.

Now i want to use the db2move command in DB2 (whose creates several files) in order to create all output files needed to migrate our DB2 Datawarehouse of about 1TB based on Linux on Mainframe to one LPAR on AIX. I don't have that 1TB of aditional space in the Mainframe so i need to use the pipe feature of UNIX to move those N files resulting of the runnning of db2move to AIX through the network.

Have you friends ever done something like this before ??

Any help please.

Thanks in advanced
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