Operating System - HP-UX
1756740 Members
2411 Online
108852 Solutions
New Discussion юеВ

gzip a large file question

 
Bruce Duff
Advisor

gzip a large file question

Hi there, I am trying to gzip up a large file of 3.7gb. It is an export of my Oracle dbase. When I gzip it, it returns :

unknown error, (this is very unhelpful), has anyone else out there seen this before and how can I work out what is going wrong.

Thanks
Bruce
London Giddy London
11 REPLIES 11
someone_4
Honored Contributor

Re: gzip a large file question

hpuxrox
Respected Contributor

Re: gzip a large file question

I suggest downloading and installing the latest GNU gzip from gnu.org, there is a 2G limit on the default HPUX version.

SHABU KHAN
Trusted Contributor

Re: gzip a large file question

Bruce,

Have you tried splitting it using the split command and then gzip'ng it ?

split -b oracle_datfile

I would suggest splitting it by half ..

then:

mv xaa oracle_datfile_part1
mv xab oracle_datfile_part2

gzip oracle_datfile*

--------
Later to merge these ... just do:

gzip -d oracle_datfile*
cat oracle_datfile* > oracle_datfile

I haven't done this before, just a thought ...

Take a backup of this dat file if you have enough space, else don't try this method.

PS. Try only if you have enough space to back-up or if you cannot get the GNU zip for other company policy reasons

Thanks,
Shabu
Deepak Extross
Honored Contributor

Re: gzip a large file question

Try using compress and see if it works.
T. M. Louah
Esteemed Contributor

Re: gzip a large file question

Check the HP-UX portal the list contains the latest gzip binaries that supports files larger than 2GB.
http://hpux.cs.utah.edu/hppd/hpux/Gnu/

here's a good discussion about it :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x426c50011d20d6118ff40090279cd0f9,00.html

Remember to ASIGN POINTS !!!!!!!!! :)


Little learning is dangerous!
Ulf Lipski
Advisor

Re: gzip a large file question

Hi,

why do you want to zip this export file?

Note: In newer Oracle-Versions (I just can't remember the exact release, somtething beyond 8.X) you can export into several files!

Bye
Optimization is the root of all evil.
Yogeeraj_1
Honored Contributor

Re: gzip a large file question

 
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
harry d brown jr
Honored Contributor

Re: gzip a large file question

Alberto Minichiello
New Member

Re: gzip a large file question

Hi:

As everyone else mentioned already, gzip on HP-UX 11.00
is a 32 bit (PA-Risc 1.1) binary,
as far as I know it can't handle file sizes over 2GB.

Here is my 2 cents worth:

For the file you already have, use the following command:

dd if=Original_File bs=8192k | gzip -c | dd of=compressed_file bs=8192k

this should do the trick, the only downside is that of course the original file is not deleted as gzip usually does.

My Oracle exports are always compressed cause they are usually over 15 GB in which case I do this to have export compress it directly.

1) Create a FIFO (with mknod)

2) Make sure that your output file on exp.par points to that fifo.

3) Before running exp put a command similar to the one above on background, like this:

dd if=fifo_file bs=8192k | gzip -c | dd of=destination_file bs=8192k

4) run exp

this will export the database and compress in one fell swoop.

I find it very handy cause reading a 30 GB monster of tape can take a while just to recover a table.

BTW the compress ratio I get is 1/3.

Regards

Daniel Cristini
Bonum Est