Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Diskless export/import - here's a method to do so

Re: Diskless export/import - here's a method to do so

From: Chuck <chuckh_nospam_at_softhome.net>
Date: 10 Feb 2004 17:06:31 GMT
Message-ID: <Xns948B7B2D5AD39chuckhsofthomenet@130.133.1.17>


Stephan Bressler <sbresslerx_no_spam_at_arcor.de> wrote in news:bvvfbk$3ja$1_at_news.mch.sbs.de:

>
>
> Jared wrote:

>> Hi, all -
>> 
>> I recently had to figure out how to transfer a 13GB export between
>> boxes.  The customary way is to split and compress but I didn't want
>> to do that for reasons irrelevant to this posting.  I came up with a
>> technique to tunnel the export stream between servers.  It was
>> created on Unix, but can be used in the Windows world if you get the
>> M$ version of the utilities installed.  Here we go:
>> 

> Hi,
> you could even run it without mknod from the source system (or
> target): exp xxx/xxx file=/dev/fd/1 volsize=0 | ssh target ".
> _setup_env_script; imp yyy/yyy /dev/fd/0"
>
> /dev/fd/* are alias to a process' file descriptors, 0=STDIN, 1=STDOUT,
> etc.
>
> I usually use this feature to transfer whole directory trees to other
> systems using tar.
>
> Stephan
>

Doesn't work on AIX 4.3 with sh or ksh. In fact the only os/shell combination I've gotten it to work on is cygwin/bash. Is that a requirement or am I doing something wrong?

ksh> echo hello >/dev/fd/1
A file or directory in the path name does not exist. ksh: /dev/fd/1: 0403-005 Cannot create the specified file.

bash> echo hello >/dev/fd/1
hello

-- 
Chuck
Remove "_nospam" to reply by email
Received on Tue Feb 10 2004 - 11:06:31 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US