[root@TEST144239 tmp]# unzip linx64_11gR2_database_1of2.zip
Archive: linx64_11gR2_database_1of2.zip
warning [linx64_11gR2_database_1of2.zip]: 4652886 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [linx64_11gR2_database_1of2.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)
导致解压不了,有两个可能因素:
1.zip文件,如果是从某个机器下载的,应该尽量保证是以 二进制编码方式下载,否则也会导致unzip 解压不了.
[root@ZTE-TEST144239 ~]# ftp 10.30.1.25
Connected to 10.30.1.25 (10.30.1.25).
220-FileZilla Server version 0.9.31 beta
220-written by Tim Kosse (Tim.Kosse@gmx.de)
220 Please visit http://sourceforge.net/projects/filezilla/
Name (10.30.1.25:root): ftp
331 Password required for ftp
Password:
230 Logged on
Remote system type is UNIX.
#确保文件是以二进制方式获得#
ftp> bin
200 Type set to I
ftp> get /public/数据库/ORACLE/11G/linux64/p10404530_112030_Linux-x86-64_1of7.zip /var/tmp/p10404530_112030_Linx-x86-64_1of7.zip
2.unzip命令不能解压超过2G的文件 通过查找资料有个7z的程序可以解压超过2G的压缩包
http://pkgs.repoforge.org/p7zip/ 该地址下载7zip包
首先通过 file /bin/ls命令查看linux是32位还是64位:
[root@TEST144239 tmp]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
所以 下载并安装p7zip-9.04-1.el3.rf.x86_64.rpm和p7zip-plugins-9.04-1.el3.rf.x86_64.rpm这两个包:
[root@TEST144239 tmp]# rpm -ivh p7zip-9.04-1.el3.rf.x86_64.rpm
warning: p7zip-9.04-1.el3.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing... ########################################### [100%]
1:p7zip ########################################### [100%]
[root@TEST144239 tmp]# rpm -ivh p7zip-plugins-9.04-1.el3.rf.x86_64.rpm
warning: p7zip-plugins-9.04-1.el3.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing... ########################################### [100%]
1:p7zip-plugins ########################################### [100%]