aix java解压,AIX 7.1 jar unzip解压报错问题解决

刚开始使用jar -xvf 进行解压也报错,怀疑jar解压命令有问题。便安装了zip相关包再进行解压还是报错。

jar 解压报错

jar -xvf aix.ppc64_11gR2_database_1of2.zip

inflated: database/stage/Components/oracle.sysman.console.db/11.2.0.1.0/1/DataFiles/filegroup4.jar

java.io.EOFException: Unexpected end of ZLIB input stream

at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:241)

at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159)

at java.util.zip.ZipInputStream.read(ZipInputStream.java:166)

at sun.tools.jar.Main.extractFile(Main.java:753)

at sun.tools.jar.Main.extract(Main.java:716)

at sun.tools.jar.Main.run(Main.java:226)

at sun.tools.jar.Main.main(Main.java:942)

unzip 解压报错

unzip aix.ppc64_11gR2_database_1of2.zip -d oracle/

Archive: aix.ppc64_11gR2_database_1of2.zip

End-of-central-directory signature not found. Either this file is not

a zipfile, or it constitutes one disk of a multi-part archive. In the

latter case the central directory and zipfile comment will be found on

the last disk(s) of this archive.

unzip: cannot find zipfile directory in one of aix.ppc64_11gR2_database_1of2.zip or

aix.ppc64_11gR2_database_1of2.zip.zip, and cannot find aix.ppc64_11gR2_database_1of2.zip.ZIP, period.

通过网上查询相关报错信息,有网友说是上传没有在二进制模式下,也有说上传过程中包有丢失md5值不一致,其中有一条说的系统有限制导致ftp上传不完整。

经检查FTP 上传时提示有限制报错,如下:

C:\Users\Forrest>ftp 192.168.1.248

连接到 192.168.1.248。

220 localhost FTP server (Version 4.2 Sat Aug 7 19:39:41 CDT 2010) ready.

用户(192.168.1.248:(none)): root

331 Password required for root.

密码:

230-Last login: Wed Dec 31 22:52:13 CST 1969 on /dev/pts/0 from 192.168.1.118

230 User root logged in.

ftp> bin

200 Type set to I.

ftp>

ftp> put D:\迅雷下载\aix.ppc64_11gR2_database_1of2.zip

200 PORT command successful.

150 Opening data connection for aix.ppc64_11gR2_database_1of2.zip.

452 Error writing file: A file cannot be larger than the value set by ulimit.

ftp: 发送 1073741824 字节,用时 251.31秒 4272.58千字节/秒。

ftp>

查看AIX当前的size数值,该数值表示用户创建的文件大小限制。此定义值(512字节为单位)为该用户可以生成的最大文件的大小。

ulimit -f

2097151

cat /etc/security/limits

default:

fsize = 2097151

core = 2097151

cpu = -1

data = 262144

rss = 65536

stack = 65536

nofiles = 2000

此处输出后段省略

将其fsize更改为-1,使该参数无大小限制。

为使/etc/security/limits文件的更改生效,用户必须注销当前登录会话并重新登录。

重新上传再解压即正常没有报错

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值