Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import process streamlining 1

Status
Not open for further replies.

vivekm

Programmer
Oct 4, 2000
76
GB

Hi,

I am importing data from Tandem to Oracle database. There are two questions related to the import.
Firstly, the import file will be sent across a network which may potentially be slow and/or the files will be very big. Is there a way of sending this file into Unix without using FTP?
Secondly, during import, if the process fails, is there a way to restart from the point of failure?

Thanks in advance,
Vivek
 
Vivek,

Yes, there is a way of doing this.

exp(ort) your data to a fifo

on the fifo you need a command that will compress the datastream and then use remote shell to transfer it to your target machine, uncompress it there and save it to a file.

I haven't done this in ages but the commands will be something like this:

mkfifo in_and_out
(compress < in_and_out | remsh targethost 'uncompress > file.dmp') &
# then exp(ort) the database to the fifo in_and_out
# instead of a file, can't remember the syntax, sorry

you will first need to make sure that rlogin is set up correctly -- test your configuration with another command, like this:

[tab]remsh targethost 'ls -'
Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top