Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: uncompress: corrupt input

Re: uncompress: corrupt input

From: Dennis Williams <oracledba.williams_at_gmail.com>
Date: Tue, 24 Apr 2007 13:59:28 -0500
Message-ID: <de807caa0704241159r123f603aw3959f4d4cc1b0f15@mail.gmail.com>


Bill,

My understanding is that a compressed file uses all 8 bits of a byte. My understanding is the ASCII setting of FTP causes only 7 bits of each byte to be transferred. Therefore, that is my best guess as to why you have a corrupt compressed file. I think you've done all the reasonable actions to resolve this aside from considering whether maybe this file was misnamed and it really isn't compressed, just renamed with a "Z" suffix.

    One other thing you could consider, depending on how important this file is to you. An Oracle export file is basically a text file. You could consider reading the file byte-by-byte to understand what you have. This may involve understanding just how the common compression tools (starting with compress) actually work at the byte level. You could create a similar export, then compress it the way you think this file was compressed and start comparing byte for byte. I think export files have some generic headers that would help you with your comparison. There are other Internet groups that probably have people who could explain some of the mechanics of "compress". I would imagine that is pretty well documented somewhere. Depending on what you learn (whether the file is truly corrupted or mostly salvageable) you might write a program to uncompress what you can salvage or whatever.

    This might take a few days, depending on what you find. Not sure what your schedule is.

Dennis Williams

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Apr 24 2007 - 13:59:28 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US