- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- compressing an export with oracle
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 11:57 AM
тАО03-25-2002 11:57 AM
cat $HOME/admin/P01/exp/exp_daily.dmp | gzip > /u20/test.Z
exp / file=$HOME/admin/P01/exp/exp_daily.dmp owner='owner' buffer=5000000 direct=y
***
Now $HOME/admin/P01/exp/exp_daily.dmp is a pipe created the following way:
mknod exp_daily.dmp p
I exp to the pipe file, then the compress grabs the info in the pipe and sends it to the *.Z file. I import basically the same way. I zcat into a pipe, then import from the pipe into oracle. My problem is I'm trying to use a different compression tool, gzip to be exact. I substitute gzip for compress and change the .Z extension to .gz. It appears to work fine. When I try to import using gunzip it doesn't send the info to the pipe. It creates a new file with the same name as the *.gz file but minus the .gz chars. So basically it just uncompresses the file. The following is the script I run:
impst / buffer=5000000 file=/u20/exp_daily.dmp fromuser='owenr' touser='owner'
gunzip /u20/test.dmp.Z > /u20/exp_daily.dmp
**
I've tried changing > to | with no success. I was on the phone with hp and they didn't have an answer for me either. Is there any other compress tool that works with pipes? I need to compress on the export.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 12:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 12:05 PM
тАО03-25-2002 12:05 PM
Re: compressing an export with oracle
try this:
gunzip /u20/test.dmp.Z -c > /u20/exp_daily.dmp
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 12:06 PM
тАО03-25-2002 12:06 PM
Re: compressing an export with oracle
cat $HOME/admin/P01/exp/exp_daily.dmp | compress > /u20/test.Z &
exp / file=$HOME/admin/P01/exp/exp_daily.dmp owner='owner' buffer=5000000 direct=y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 12:11 PM
тАО03-25-2002 12:11 PM
Re: compressing an export with oracle
dd if=$HOME/admin/P01/exp/exp_daily.dmp | gzip -c > /u20/test.Z &
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 12:13 PM
тАО03-25-2002 12:13 PM
Re: compressing an export with oracle
Make that:
dd if=$HOME/admin/P01/exp/exp_daily.dmp | gzip -9 -c > /u20/test.gz &
"-9" will compress the crap out of the file - and on ascii files it really squashes it!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 12:32 PM
тАО03-25-2002 12:32 PM
Re: compressing an export with oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 01:14 PM
тАО03-25-2002 01:14 PM
Re: compressing an export with oracle
Yes the compression will take longer, and in your case if you are immediately importing the data, then a -9 doesn't make sense, unless you need to keep the export.zipped file small.
live free or die
harry