Solved

gzip is not working with the mknod command

Posted on 2004-08-10
3
633 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a Shell script to start a service checking the port 6 56
xyBalance chalenge 58 104
matchUp  challenge 6 82
Line meaning 9 97
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 …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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