Solved

gzip is not working with the mknod command

Posted on 2004-08-10
3
627 Views
Last Modified: 2013-12-26
I am an oracle DBA and I am trying to compress my export file as the file is being created. I am trying to use the mknod command with the gzip command to compress the export file as it being created.  It appears as though I have everything setup correctly, but for some reason it does not compress the output file.  the output file is  "1 gig" in size.  Is there some sort of buffer that needs to be factored in.
/etc/mknod test.exp p
/usr/contrib/bin/gzip < test.exp > systest_exp &
nohup exp test/test1 parfile=/opt/backup/test.par
0
Comment
Question by:dedean01
3 Comments
 
LVL 11

Expert Comment

by:griessh
ID: 11762962
Hi dedean01,

Questions:
Could you please elaborate on "does not compress the output file". What is the error? Does it create anything? Does it do anything?

A few things to check:

- Some versions of gzip can only deal with files < 2GB.
- Is there enough space on your file system (run 'df -k .')

======
Werner
0
 

Author Comment

by:dedean01
ID: 11763436
/ :df -k .

/opt/backups           (/dev/vg01/lvol3       ) : 51034568 total allocated Kb
                                                  21013008 free allocated Kb
                                                  30021560 used allocated Kb
                                                        58 % allocation used

There is plenty of space on the filesystem and it does not give me an error.  If I use the gzip command without the mknod utility then it works fine.
"/usr/contrib/bin/gzip  test.exp"

0
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 50 total points
ID: 11765153
Quote: - Some versions of gzip can only deal with files < 2GB.

A work-around is to use cat:

/etc/mknod test.exp p
cat text.exp|/usr/contrib/bin/gzip -c > systest_exp &
nohup exp test/test1 parfile=/opt/backup/test.par
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 87
xyBalance chalenge 58 88
substring method in java 1 79
EvenOdd challenge 10 83
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now