标签:aix
刚开始使用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文件的更改生效,用户必须注销当前登录会话并重新登录。
重新上传再解压即正常没有报错
标签:aix
原文地址:http://blog.51cto.com/13798370/2126501