General
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to compress file > 4GB using "compress command"

Ridzuan Zakaria
Frequent Advisor

unable to compress file > 4GB using "compress command"

Hi,

I am trying to compress an Oracle export file (*.dmp) which size is 6GB. The compress command failed with "Memory fault".

This is my enviroment info:
$ uname -a
Linux 2.4.21-9.ELsmp #1 SMP Thu Jan 8 17:08:56 EST 2004 i686 i686 i386 GNU/Linux

Red Hat Enterprise Linux AS release 3 (Taroon Update 1)
Kernel 2.4.21-9.ELsmp on an i686

Thanks.


quest for perfections
4 REPLIES
Ivan Ferreira
Honored Contributor

Re: unable to compress file > 4GB using "compress command"

That may be a limitation of the compress command. You should use gzip which gives you a better compression ratio (using more cpu).

Also, gzip is available for most UNIX distributions.

You can also tune the compression ratio, to use less cpu, and use nice to reduce the priority.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Rick Garland
Honored Contributor

Re: unable to compress file > 4GB using "compress command"

Linux does not has the 'compress' by default, at least in the RH/Fedora.

Use '/bin/gzip' or '/usr/bin/zip'

These handle large files.
Arunvijai_4
Honored Contributor

Re: unable to compress file > 4GB using "compress command"

There is a known limitation in compress. You have to use gzip or bzip2 ..

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Andrea Rossi
Frequent Advisor

Re: unable to compress file > 4GB using "compress command"

try making a pipe:
mknod -p /u01/oradata/impexp
etc etc