2009年3月17日星期二

zip文件過大,linux不能用unzip解壓的處理辦法

在win下面傳了一個zip文件到linux環境下面,用unzip居然打不開,如下:
[root@rac1 VM]# unzip RAC-PostCreateDatabase.zip
error: Zip file too big (greater than 4294959102 bytes)
Archive: RAC-PostCreateDatabase.zip
warning [RAC-PostCreateDatabase.zip]: 1391105260 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [RAC-PostCreateDatabase.zip]: start of central directory not found;
zipfile corrupt.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
[root@rac1 VM]#
太大了,忽然想起java中有一個jar可以打包*.zip文件,那解包呢?
[root@rac1 VM]# jar -xvf RAC-PostCreateDatabase.zip
created: oracle10gShared/
inflated: oracle10gShared/asm1-s001.vmdk
inflated: oracle10gShared/asm1-s002.vmdk
inflated: oracle10gShared/asm1-s003.vmdk
inflated: oracle10gShared/asm1-s004.vmdk
inflated: oracle10gShared/asm1-s005.vmdk
...
居然成了,小技巧,很滿足!
記錄一下,以備后查。

没有评论:

发表评论