- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gunzip shows invalid compressed data--format v...
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
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
тАО08-15-2004 09:42 PM
тАО08-15-2004 09:42 PM
gunzip shows invalid compressed data--format violated
While doing export dumps from Oracle databases I use the split script as shown below to keep the size of the dump files within a reasonable limit,
TAB=DWH_TABLES
rm -f $TAB.pipe
rm -f $TAB.split.pipe
rm -f xa*
/sbin/mknod $TAB.pipe p
/sbin/mknod $TAB.split.pipe.gz p
/sbin/mknod xaa p
/sbin/mknod xab p
cat xaa >exp_aa.dmp.gz &
cat xab >exp_ab.dmp.gz &
gzip < $TAB.pipe > $TAB.split.pipe.gz &
split -b 2000m $TAB.split.pipe.gz &
nohup exp file=$TAB.pipe .........
While doing an import as shown in the script below,
rm exppipe.gz
rm bedpipe.dmp
/sbin/mknod exppipe.gz p
/sbin/mknod bedpipe.dmp p
cat exp_aa.dmp.gz > exppipe.gz &
gunzip < exppipe.gz > bedpipe.dmp &
nohup imp file=bedpipe.dmp ................
Iam getting the following error message,
gunzip: stdin: invalid compressed data--format violated
[1] + Broken Pipe cat exp_aa.dmp.gz > exppipe.gz &
How to get rid of this and extract the data safely from the file exp_aa.dmp.gz.
-rw-r--r-- 1 oracle dba 212238107 Jul 9 11:46 exp_aa.dmp.gz
cksum exp_aa.dmp.gz
366494054 212238107 exp_aa.dmp.gz
TIA
Ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2004 10:04 PM
тАО08-15-2004 10:04 PM
Re: gunzip shows invalid compressed data--format violated
cat exp_aa.dmp.gz > exppipe.gz &
gunzip < exppipe.gz > bedpipe.dmp &
nohup imp file=bedpipe.dmp ................
Where exppipe.gz is a not a gz format file. If you do then,
gunzip: stdin: invalid compressed data--format violated
[1] + Broken Pipe cat exp_aa.dmp.gz > exppipe.gz &
it will come.. there.
Example:
echo test > test.gz
gunzip < test.gz
Use zcat to cat the zipped files.
Transfer them as stdout to the gunzip command and redirect into bedpipe.dmp file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2004 10:31 PM
тАО08-15-2004 10:31 PM
Re: gunzip shows invalid compressed data--format violated
gunzip < exppipe.gz > bedpipe.dmp &
nohup imp file=bedpipe.dmp ................
-- where,
exppipe.gz is not a gzipped file to gunzip.
Use as like,
cat exp_aa.dmp.gz > exppipe.gz &
gzip exppipe.gz &
gunzip < exppipe > bedpipe.dmp &
nohup imp file=bedpipe.dmp ................
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2004 02:32 AM
тАО08-16-2004 02:32 AM
Re: gunzip shows invalid compressed data--format violated
I have tried as suggested by you. Still remains the error. But that was the split script being used months together for creating export dumps and import back. This is the first time the import is failing.
cat exp_aa.dmp.gz > exppipe.gz &
gzip exppipe.gz &
gzip: exppipe.gz is not a directory or a regular file - ignored
zcat exp_aa.dmp.gz > exppipe.gz &
exp_aa.dmp.gz.Z: No such file or directory
I did another trick by FTPing the dump exp_aa.dmp.gz to Windows 2000 in BINARY mode and tried to unzip with PKUNZIP which reported the message 'Archive contains the compressed file exp_aa.tmp.tar. Would you like to open it in the temporary directory and uncompress the file?'.
Iam wondering how come a .tar format has been embedded in the gzip file. PKUNZIP recovers upto 6MB size and aborts with 'Errors in .zip file'.
How to get the tar out of the gzip file.
TIA
Ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2004 03:58 AM
тАО08-16-2004 03:58 AM
Re: gunzip shows invalid compressed data--format violated
Your another try as,
cat exp_aa.dmp.gz > exppipe.gz &
gzip exppipe.gz &
will get error as
gzip: exppipe.gz is not a directory or a regular file - ignored
because,
exppipe.gz is not gzipped file. You can test it by add a line as file exppipe.gz after cat line.
You have to use as,
cat exp_aa.dmp.gz > exppipe.gz &
gzip < exppipe.gz > test.gz &
gunzip < test.gz > bedpipe.dmp &
where bedpipe.dmp will contains all data.
Simple logic, readable informations are made "cat" to exppipe.gz file. exppipe.gz file is zipped and unzipped to *.dmp file.
Else regarding to your logic of script lines,
cat exp_aa.dmp.gz > bedpipe.dmp &
because
cat exp_aa.dmp.gz > exppipe.gz &
saying that exppipe.gz can not be a gzipped file.
Start a file check on every file as,
file exp_aa.dmp.gz;
if it is a gzipped file then,
we can not use cat command there,
so gunzip < exp_aa.dmp.gz > bedpipe.dmp &
It is good to check ur self about the file status and it's type.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2004 07:23 PM
тАО08-22-2004 07:23 PM
Re: gunzip shows invalid compressed data--format violated
As suggested by you I did as follows,
gunzip < exp_aa.dmp.gz > two_tabs.dmp &
[1] 18330
gunzip: stdin: invalid compressed data--format violated
[1] + Done(1) gunzip < exp_aa.dmp.gz > two_tabs.dmp &
gunzipping broke after reading for a few seconds and wrote to the file as,
-rw-r--r-- 1 oracle dba 7143424 Aug 23 08:47 two_tabs.dmp
Thereafter the dump is unable to be read. So I believe there is corruption of data in the dump.
file exp_aa.dmp.gz
exp_aa.dmp.gz: awk program text
file two_tabs.dmp
two_tabs.dmp: data
Is there any other way to crack into the gzipped dump (exp_aa.dmp.gz) and retrieve useful data as much as possible.
TIA
Ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2004 09:25 PM
тАО08-22-2004 09:25 PM
Re: gunzip shows invalid compressed data--format violated
I would replace the cat command in the import script to the following:
cat exp_aa.dmp.gz exp_ab.dmp.gz > exppipe.gz &
And the test the rest of the script. Because with the script so for, you miss the concatenation of the two possible parts of the gzipped dump.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2004 01:02 AM
тАО08-23-2004 01:02 AM
Re: gunzip shows invalid compressed data--format violated
/sbin/mknod xaa p
/sbin/mknod xab p
cat xaa >exp_aa.dmp.gz &
cat xab >exp_ab.dmp.gz &
split -b 2000m $TAB.split.pipe.gz &
nohup exp file=$TAB.pipe .........
As there were lesser amount of rows in the tables being exported, the split has written to only one dump file 'aa' with a size of 212238107 bytes. The other file 'ab' is 0 bytes.
Notwithstanding that, I tried as suggested,
/sbin/mknod exppipe.gz p
cat exp_aa.dmp.gz exp_ab.dmp.gz > exppipe.gz &
gunzip < exppipe.gz > tt.dmp &
This time I wanted to just unzip and write to the file tt.dmp which shall be used later for import.
But gunzip failed at the same place as earlier,
gunzip: stdin: invalid compressed data--format violated
It has wrote to the file tt.dmp upto 7143424 bytes. Seems it has read 872 blocks from the dump. How to go past this to get the good blocks.
TIA
Radhakrishnan Ravi