Post date: 01-Jun-2009 11:35:38
EXPORT/IMPORT VIA PIPE
-----------------------
CREATING A COMPRESSED EXPORT FILE
---------------------------------
If you have calculated the size of the file your export will produce and
it is too large to fit onto disk, you may want to consider producing a
compressed export file as an alternative to exporting directly to tape.
Again this method should be thoroughly tested before being implemented.
1. Create a unix named pipe :
os> mknod /tmp/exp_pipe p
2. Start compress in the background reading in from the named pipe,
writing out to 'export.dmp.Z' :
os> compress < /tmp/exp_pipe > export.dmp.Z &
3. Start the export, specifying the named pipe as the output file :
os> exp file=/tmp/exp_pipe <other options>
To import from the resultant compressed export file, the following
commands
would be used :
1. Create a unix named pipe :
os> mknod /tmp/imp_pipe p
2. Start uncompress in the background reading from 'export.dmp.Z',
writing out to the named pipe :
os> uncompress < export.dmp.Z > /tmp/imp_pipe
3. Start the import, specifying the named pipe as the input file :
os> imp file=/tmp/imp_pipe <other options>