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: exp via pipe and compress

Re: exp via pipe and compress

From: Sigrid Staudte <sstaudte_at_sachsenlb.de>
Date: 16 Jul 1998 22:09:58 GMT
Message-ID: <6oltnm$dcn$1@ernie.haupt.de>


sbatter_at_my-dejanews.com wrote:
> I talked to oracle to get around > 2GB exp filesize limitation
> They suggest:
> cat < /dev/exp.pipe > compress.Z &
> exp userid/passwd file=/dev/exp.pipe .... &
>
> this works fine on small exports. if i do a full the compress.Z file
> is corrupt. if i do zcat compress.Z | more i can see bad sql statements
> and garbase where my create and grant statements should be. Oracle support
> is being typical. The exp logfile reports export without warnings. So it looks
> like compress isnt reading from the pipe correctly.
>
> Exp to tape works but is at current 2 tapes and slow as sh*t.
>
> OS Solaris 2.6 ( recent recommended patches )
> Oracle 7.3.3.5.0
> hardware Sun Ultra 2 single 300Mhz
>
> Has anybody run into something similar? Am i doing something wrong?
> Are they any alternatives?

Simply use gzip and a named pipe (man mkfifo): (syntax for bash)

$ mkfifo fifo
$ (gzip < fifo) > archive.gz &

Now you can start your export utility (the named pipe will ´wait´ for your input) and take ´fifo´ as filename.

import the file:

$ (gunzip < archive.gz) > fifo &

start import with ´fifo´ as import file.

I personally used it on Solaris 2.5, Oracle 7.2.2 and got a compression about 95% (7GB -> 350 MB) :-)
If you have problems, send me an e-mail.

Sigrid Received on Thu Jul 16 1998 - 17:09:58 CDT

Original text of this message

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