<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: gunzip shows invalid compressed data--format violated in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357760#M871817</link>
    <description>cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;gunzip &amp;lt; exppipe.gz &amp;gt; bedpipe.dmp &amp;amp;&lt;BR /&gt;nohup imp file=bedpipe.dmp ................&lt;BR /&gt;&lt;BR /&gt;-- where,&lt;BR /&gt;&lt;BR /&gt; exppipe.gz is not a gzipped file to gunzip.&lt;BR /&gt;&lt;BR /&gt;Use as like,&lt;BR /&gt;cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;gzip exppipe.gz &amp;amp;&lt;BR /&gt;gunzip &amp;lt; exppipe &amp;gt; bedpipe.dmp &amp;amp;&lt;BR /&gt;nohup imp file=bedpipe.dmp ................&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 16 Aug 2004 05:31:58 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2004-08-16T05:31:58Z</dc:date>
    <item>
      <title>gunzip shows invalid compressed data--format violated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357758#M871813</link>
      <description>Hi,&lt;BR /&gt;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,&lt;BR /&gt;TAB=DWH_TABLES&lt;BR /&gt;rm -f $TAB.pipe&lt;BR /&gt;rm -f $TAB.split.pipe&lt;BR /&gt;rm -f xa*&lt;BR /&gt;/sbin/mknod $TAB.pipe p&lt;BR /&gt;/sbin/mknod $TAB.split.pipe.gz p&lt;BR /&gt;/sbin/mknod xaa p&lt;BR /&gt;/sbin/mknod xab p&lt;BR /&gt;cat xaa &amp;gt;exp_aa.dmp.gz &amp;amp;&lt;BR /&gt;cat xab &amp;gt;exp_ab.dmp.gz &amp;amp;&lt;BR /&gt;gzip &amp;lt; $TAB.pipe &amp;gt; $TAB.split.pipe.gz &amp;amp;&lt;BR /&gt;split -b 2000m $TAB.split.pipe.gz &amp;amp;&lt;BR /&gt;nohup exp file=$TAB.pipe .........&lt;BR /&gt;&lt;BR /&gt;While doing an import as shown in the script below,&lt;BR /&gt;rm exppipe.gz&lt;BR /&gt;rm bedpipe.dmp&lt;BR /&gt;/sbin/mknod exppipe.gz p&lt;BR /&gt;/sbin/mknod bedpipe.dmp p&lt;BR /&gt;cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;gunzip &amp;lt; exppipe.gz &amp;gt; bedpipe.dmp &amp;amp;&lt;BR /&gt;nohup imp file=bedpipe.dmp ................&lt;BR /&gt;&lt;BR /&gt;Iam getting the following error message,&lt;BR /&gt;gunzip: stdin: invalid compressed data--format violated&lt;BR /&gt;[1] + Broken Pipe                 cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;&lt;BR /&gt;How to get rid of this and extract the data safely from the file exp_aa.dmp.gz.  &lt;BR /&gt;-rw-r--r--   1 oracle     dba        212238107 Jul  9 11:46 exp_aa.dmp.gz&lt;BR /&gt;cksum exp_aa.dmp.gz&lt;BR /&gt;366494054 212238107 exp_aa.dmp.gz&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;Ravi</description>
      <pubDate>Mon, 16 Aug 2004 04:42:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357758#M871813</guid>
      <dc:creator>radhakrishnan ravi</dc:creator>
      <dc:date>2004-08-16T04:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip shows invalid compressed data--format violated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357759#M871815</link>
      <description>gunzip is used to expand the zipped files on gz format.&lt;BR /&gt;&lt;BR /&gt;cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;gunzip &amp;lt; exppipe.gz &amp;gt; bedpipe.dmp &amp;amp;&lt;BR /&gt;nohup imp file=bedpipe.dmp ................&lt;BR /&gt;&lt;BR /&gt;Where exppipe.gz is a not a gz format file. If you do then,&lt;BR /&gt;gunzip: stdin: invalid compressed data--format violated&lt;BR /&gt;[1] + Broken Pipe cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;&lt;BR /&gt;it will come.. there.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;echo test &amp;gt; test.gz&lt;BR /&gt;gunzip &amp;lt; test.gz&lt;BR /&gt;&lt;BR /&gt;Use zcat to cat the zipped files.&lt;BR /&gt;&lt;BR /&gt;Transfer them as stdout to the gunzip command and redirect into  bedpipe.dmp file.</description>
      <pubDate>Mon, 16 Aug 2004 05:04:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357759#M871815</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-16T05:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip shows invalid compressed data--format violated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357760#M871817</link>
      <description>cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;gunzip &amp;lt; exppipe.gz &amp;gt; bedpipe.dmp &amp;amp;&lt;BR /&gt;nohup imp file=bedpipe.dmp ................&lt;BR /&gt;&lt;BR /&gt;-- where,&lt;BR /&gt;&lt;BR /&gt; exppipe.gz is not a gzipped file to gunzip.&lt;BR /&gt;&lt;BR /&gt;Use as like,&lt;BR /&gt;cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;gzip exppipe.gz &amp;amp;&lt;BR /&gt;gunzip &amp;lt; exppipe &amp;gt; bedpipe.dmp &amp;amp;&lt;BR /&gt;nohup imp file=bedpipe.dmp ................&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Aug 2004 05:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357760#M871817</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-16T05:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip shows invalid compressed data--format violated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357761#M871819</link>
      <description>Hi,&lt;BR /&gt;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.&lt;BR /&gt;cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;gzip exppipe.gz &amp;amp;&lt;BR /&gt;gzip: exppipe.gz is not a directory or a regular file - ignored&lt;BR /&gt;&lt;BR /&gt;zcat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;exp_aa.dmp.gz.Z: No such file or directory&lt;BR /&gt;&lt;BR /&gt;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?'.&lt;BR /&gt;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'.&lt;BR /&gt;How to get the tar out of the gzip file.&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;Ravi&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Aug 2004 09:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357761#M871819</guid>
      <dc:creator>radhakrishnan ravi</dc:creator>
      <dc:date>2004-08-16T09:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip shows invalid compressed data--format violated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357762#M871821</link>
      <description>Ravi,&lt;BR /&gt;&lt;BR /&gt; Your another try as,&lt;BR /&gt;&lt;BR /&gt; cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt; gzip exppipe.gz &amp;amp;&lt;BR /&gt; will get error as&lt;BR /&gt; gzip: exppipe.gz is not a directory or a regular file - ignored&lt;BR /&gt;&lt;BR /&gt; because,&lt;BR /&gt;&lt;BR /&gt;  exppipe.gz is not gzipped file. You can test it by add a line as file exppipe.gz after cat line.&lt;BR /&gt;&lt;BR /&gt; You have to use as,&lt;BR /&gt; &lt;BR /&gt; cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt; gzip &amp;lt; exppipe.gz &amp;gt; test.gz &amp;amp;&lt;BR /&gt; gunzip &amp;lt; test.gz &amp;gt; bedpipe.dmp &amp;amp;&lt;BR /&gt; &lt;BR /&gt; where bedpipe.dmp will contains all data.&lt;BR /&gt;&lt;BR /&gt; Simple logic, readable informations are made "cat" to exppipe.gz file. exppipe.gz file is zipped and unzipped to *.dmp file.&lt;BR /&gt;&lt;BR /&gt; Else regarding to your logic of script lines,&lt;BR /&gt;&lt;BR /&gt; cat exp_aa.dmp.gz &amp;gt; bedpipe.dmp &amp;amp;&lt;BR /&gt; &lt;BR /&gt;because &lt;BR /&gt;cat exp_aa.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;&lt;BR /&gt; saying that exppipe.gz can not be a gzipped file.&lt;BR /&gt;&lt;BR /&gt; Start a file check on every file as,&lt;BR /&gt; &lt;BR /&gt;file exp_aa.dmp.gz;&lt;BR /&gt;&lt;BR /&gt; if it is a gzipped file then,&lt;BR /&gt; we can not use cat command there,&lt;BR /&gt;&lt;BR /&gt; so gunzip &amp;lt; exp_aa.dmp.gz &amp;gt; bedpipe.dmp &amp;amp;&lt;BR /&gt;&lt;BR /&gt; It is good to check ur self about the file status and it's type.</description>
      <pubDate>Mon, 16 Aug 2004 10:58:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357762#M871821</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-16T10:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip shows invalid compressed data--format violated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357763#M871823</link>
      <description>Thanx for your efforts Mr.Muthukumar,&lt;BR /&gt;As suggested by you I did as follows,&lt;BR /&gt;gunzip &amp;lt; exp_aa.dmp.gz &amp;gt; two_tabs.dmp &amp;amp;&lt;BR /&gt;[1]     18330&lt;BR /&gt;gunzip: stdin: invalid compressed data--format violated&lt;BR /&gt;&lt;BR /&gt;[1] +  Done(1)                    gunzip &amp;lt; exp_aa.dmp.gz &amp;gt; two_tabs.dmp &amp;amp;&lt;BR /&gt;gunzipping broke after reading for a few seconds and wrote to the file as,&lt;BR /&gt;-rw-r--r--   1 oracle     dba        7143424 Aug 23 08:47 two_tabs.dmp&lt;BR /&gt;Thereafter the dump is unable to be read. So I believe there is corruption of data in the dump.&lt;BR /&gt;file exp_aa.dmp.gz&lt;BR /&gt;exp_aa.dmp.gz:  awk program text&lt;BR /&gt;file two_tabs.dmp&lt;BR /&gt;two_tabs.dmp:   data&lt;BR /&gt;Is there any other way to crack into the gzipped dump (exp_aa.dmp.gz) and retrieve useful data as much as possible.&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;Ravi</description>
      <pubDate>Mon, 23 Aug 2004 02:23:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357763#M871823</guid>
      <dc:creator>radhakrishnan ravi</dc:creator>
      <dc:date>2004-08-23T02:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip shows invalid compressed data--format violated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357764#M871824</link>
      <description>Could it be possible you miss the xab or exp_ab.dmp.gz part during the input ?!&lt;BR /&gt;&lt;BR /&gt;I would replace the cat command in the import script to the following:&lt;BR /&gt;cat exp_aa.dmp.gz exp_ab.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Mon, 23 Aug 2004 04:25:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357764#M871824</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-08-23T04:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip shows invalid compressed data--format violated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357765#M871825</link>
      <description>Thanx Mr.Elmar,&lt;BR /&gt;/sbin/mknod xaa p&lt;BR /&gt;/sbin/mknod xab p&lt;BR /&gt;cat xaa &amp;gt;exp_aa.dmp.gz &amp;amp;&lt;BR /&gt;cat xab &amp;gt;exp_ab.dmp.gz &amp;amp;&lt;BR /&gt;split -b 2000m $TAB.split.pipe.gz &amp;amp;&lt;BR /&gt;nohup exp file=$TAB.pipe .........&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;Notwithstanding that, I tried as suggested,&lt;BR /&gt;/sbin/mknod exppipe.gz p&lt;BR /&gt;cat exp_aa.dmp.gz exp_ab.dmp.gz &amp;gt; exppipe.gz &amp;amp;&lt;BR /&gt;gunzip &amp;lt; exppipe.gz &amp;gt; tt.dmp &amp;amp;&lt;BR /&gt;&lt;BR /&gt;This time I wanted to just unzip and write to the file tt.dmp which shall be used later for import.&lt;BR /&gt;But gunzip failed at the same place as earlier,&lt;BR /&gt;gunzip: stdin: invalid compressed data--format violated&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;Radhakrishnan Ravi</description>
      <pubDate>Mon, 23 Aug 2004 08:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-shows-invalid-compressed-data-format-violated/m-p/3357765#M871825</guid>
      <dc:creator>radhakrishnan ravi</dc:creator>
      <dc:date>2004-08-23T08:02:06Z</dc:date>
    </item>
  </channel>
</rss>

