ITPub博客

首页 > Linux操作系统 > Linux操作系统 > AIX7.1 unzip大于2G的文件

AIX7.1 unzip大于2G的文件

原创 Linux操作系统 作者:wmlm 时间:2015-12-31 17:01:12 0 删除 编辑
包含INSERT INTO 的sql文件经过ZIP压缩后,上传到服务器,解压时如果单个文件大于2G,会报错:
[Power780DB6:root] ./unzip /tmp/dj_nsrxx.zip -d /tmp
Archive:  /tmp/dj_nsrxx.zip
  inflating: /tmp/dj_nsrxx.sql       
/tmp/dj_nsrxx.sql:  write error (disk full?).  Continue? (y/n/^C) 

原因是这个unzip是32位版本。解决方法如下:
到IBM网站下载bzip2
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/date.html
当前可用的是bzip2-1.0.5-3.aix5.3.ppc.rpm


到PERZL网站下载64位unzip
http://www.perzl.org/aix/index.php?n=Main.Unzip
当前可用的是unzip-64bit-6.0-3.aix5.1.ppc.rpm


上传上面的两个包到AIX7.1服务器,安装后问题解决。


[Power780DB6:root] rpm -ivh bzip2-1.0.5-3.aix5.3.ppc.rpm
bzip2                       ##################################################
[Power780DB6:root] 
[Power780DB6:root] rpm -ivh unzip-64bit-6.0-3.aix5.1.ppc.rpm
unzip-64bit                 ##################################################
[Power780DB6:root] 
[Power780DB6:root] which unzip
/usr/bin/unzip
[Power780DB6:root] unzip
UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.


unzip /tmp/dj_nsrxx.zip -d /tmp


tail dj_nsrxx.sql
。。。
commit;
prompt 2118153 records loaded
prompt Enabling triggers for HX_DJ.DJ_NSRXX...
alter table HX_DJ.DJ_NSRXX enable all triggers;
set feedback on
set define on
prompt Done.


而升级前的旧版本是5.12
[p2p:root] unzip
UnZip 5.12 of 28 August 1994, by Info-ZIP.  Portions (c) 1989 by S. H. Smith.
Send bug reports to authors at zip-bugs@wkuvx1.wku.edu; see README for details.


AIX7.1 系统安装盘中有没有UNZIP工具呢?
AIX7.1 系统安装盘中有JAVA5 JAVA6的JDK,包括32位和64位的,没有UNZIP工具。


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/271063/viewspace-1969274/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: .17的问题
下一篇: TTS 测试笔记
请登录后发表评论 登录
全部评论

注册时间:2008-04-08

  • 博文量
    398
  • 访问量
    3716773