Compressing export on the fly using Oracle's zip command

This is a discussion on Compressing export on the fly using Oracle's zip command within the Oracle Server forums in Oracle Database category; I am on 10.2.0.3 on HP UNIZ 11i I have been compressing my exports using pipe mechanism using gzip on UNIX. /etc/mknod $PIPE_NAME p /usr/contrib/bin/gzip < $PIPE_NAME > $BackupExportFile & exp system/$pqmsSYSTEM_PSWD file=$PIPE_NAME log=$TLOGFILE consistent=Y \ full=yes constraints=y compress=N >> $LOGFILE 2>&1 Everything works. Instead of using gzip, I want to user Oracle’s zip command, however, Oracle’s zip does not work. This zip is expecting a file and apparently cannot read from pipe. Why? I did a test outside of export, use UNIX cat caommand, that ...

Go Back   Database Forum > Oracle Database > Oracle Server

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-27-2008, 09:26 PM
Default Compressing export on the fly using Oracle's zip command

I am on 10.2.0.3 on HP UNIZ 11i

I have been compressing my exports using pipe mechanism using gzip on
UNIX.

/etc/mknod $PIPE_NAME p
/usr/contrib/bin/gzip < $PIPE_NAME > $BackupExportFile &

exp system/$pqmsSYSTEM_PSWD file=$PIPE_NAME log=$TLOGFILE consistent=Y
\
full=yes constraints=y compress=N >> $LOGFILE 2>&1

Everything works. Instead of using gzip, I want to user Oracle’s zip
command, however, Oracle’s zip does not work. This zip is expecting a
file and apparently cannot read from pipe. Why?

I did a test outside of export, use UNIX cat caommand, that also did
not work.

Any ideas on how to make it work. I rather use Oracle's zip than gnu's
zip. I can send zip file to my venor who has databas eon Widnows and
not used to gunzip.

Reply With Quote
  #2  
Old 08-28-2008, 01:34 AM
Default Re: Compressing export on the fly using Oracle's zip command

On Wed, 27 Aug 2008 17:26:43 -0700 (PDT), zigzagdna-at-yahoo.com wrote:

>Any ideas on how to make it work. I rather use Oracle's zip than gnu's
>zip. I can send zip file to my venor who has databas eon Widnows and
>not used to gunzip.


Winzip can work with gzipped files.

--
Sybrand Bakker
Senior Oracle DBA
Reply With Quote
  #3  
Old 08-28-2008, 07:27 AM
Default Re: Compressing export on the fly using Oracle's zip command

On 28 Ago, 02:26, zigzag...@yahoo.com wrote:
> I am on 10.2.0.3 on HP UNIZ 11i
>
> I have been compressing my exports using pipe mechanism using gzip on
> UNIX.
>
> /etc/mknod $PIPE_NAME p
> /usr/contrib/bin/gzip < $PIPE_NAME > $BackupExportFile &
>
> exp system/$pqmsSYSTEM_PSWD file=$PIPE_NAME log=$TLOGFILE consistent=Y
> \
> full=yes constraints=y compress=N >> $LOGFILE 2>&1
>
> Everything works. Instead of using gzip, I want to user Oracle’s zip
> command, however, Oracle’s zip does not work. This zip is expecting a
> file and apparently cannot read from pipe. Why?
>
> I did a test outside of export, use UNIX cat caommand, that also did
> not work.
>
> Any ideas on how to make it work. I rather use Oracle's zip than gnu's
> zip. I can send zip file to my venor who has databas eon Widnows and
> not used to gunzip.


i'm not able to decompress gzipped files with winzip too, however
there is gunzip for windows. Zip on the fly does not work because gzip
i able to read from stdin while zip not.

Regards,
Cristian Cudizio

http://cristiancudizio.wordpress.com
Reply With Quote
  #4  
Old 08-28-2008, 02:02 PM
Default Re: Compressing export on the fly using Oracle's zip command

On Aug 28, 6:27*am, Cristian Cudizio
wrote:
> On 28 Ago, 02:26, zigzag...@yahoo.com wrote:
>
>
>
>
>
> > I am on 10.2.0.3 on HP UNIZ 11i

>
> > I have been compressing my exports using pipe mechanism using gzip on
> > UNIX.

>
> > /etc/mknod $PIPE_NAME p
> > /usr/contrib/bin/gzip < $PIPE_NAME > $BackupExportFile &

>
> > exp system/$pqmsSYSTEM_PSWD file=$PIPE_NAME log=$TLOGFILE consistent=Y
> > \
> > full=yes constraints=y compress=N >> $LOGFILE 2>&1

>
> > Everything works. Instead of using gzip, I want to user Oracle’s zip
> > command, however, Oracle’s zip does not work. This zip is expecting a
> > file and apparently cannot read from pipe. Why?

>
> > I did a test outside of export, use UNIX cat caommand, that also did
> > not work.

>
> > Any ideas on how to make it work. I rather use Oracle's zip than gnu's
> > zip. I can send zip file to my venor who has databas eon Widnows and
> > not used to gunzip.

>
> i'm not able to decompress gzipped files with winzip too, however
> there is gunzip for windows. Zip on the fly does not work because gzip
> i able to read from stdin while zip not.
>
> Regards,
> *Cristian Cudizio
>
> http://cristiancudizio.wordpress.com- Hide quoted text -
>
> - Show quoted text -


Cristian:

Thanks a lot. I will have to give up on on the fly compression using
zip because it did not work. Yes, I cn download
gunzip for Windows.

Prem
Reply With Quote
  #5  
Old 08-31-2008, 02:50 PM
Default Re: Compressing export on the fly using Oracle's zip command

zigzagdna-at-yahoo.com wrote:
> On Aug 28, 6:27 am, Cristian Cudizio
> wrote:
>> On 28 Ago, 02:26, zigzag...@yahoo.com wrote:
>>
>>
>>
>>
>>
>>> I am on 10.2.0.3 on HP UNIZ 11i
>>> I have been compressing my exports using pipe mechanism using gzip on
>>> UNIX.
>>> /etc/mknod $PIPE_NAME p
>>> /usr/contrib/bin/gzip < $PIPE_NAME > $BackupExportFile &
>>> exp system/$pqmsSYSTEM_PSWD file=$PIPE_NAME log=$TLOGFILE consistent=Y
>>> \
>>> full=yes constraints=y compress=N >> $LOGFILE 2>&1
>>> Everything works. Instead of using gzip, I want to user Oracle’s zip
>>> command, however, Oracle’s zip does not work. This zip is expecting a
>>> file and apparently cannot read from pipe. Why?
>>> I did a test outside of export, use UNIX cat caommand, that also did
>>> not work.
>>> Any ideas on how to make it work. I rather use Oracle's zip than gnu's
>>> zip. I can send zip file to my venor who has databas eon Widnows and
>>> not used to gunzip.

>> i'm not able to decompress gzipped files with winzip too, however
>> there is gunzip for windows. Zip on the fly does not work because gzip
>> i able to read from stdin while zip not.
>>
>> Regards,
>> Cristian Cudizio
>>
>> http://cristiancudizio.wordpress.com- Hide quoted text -
>>
>> - Show quoted text -

>
> Cristian:
>
> Thanks a lot. I will have to give up on on the fly compression using
> zip because it did not work. Yes, I cn download
> gunzip for Windows.
>
> Prem

A bit late to the party, sorry. 7zip for Windows will also solve your
problem.

Palooka
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 04:34 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.