首页 > 代码库 > Oracle安装补丁时报ollect2: ld terminated with signal 9 [Killed]

Oracle安装补丁时报ollect2: ld terminated with signal 9 [Killed]


Oracle安装补丁时报ollect2: ld terminated with signal 9 [Killed]


1.报错信息

Make failed to invoke "/usr/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/u01/app/oracle/product/11.2/db_1"....‘collect2: ld terminated with signal 9 [Killed]

make: *** [/u01/app/oracle/product/11.2/db_1/rdbms/lib/oracle] Error 1


2.原因及解决办法

编译出错主要原因是服务器虚拟内存不足导致,而服务器刚好又没有swap分区,所以需要建个swap分区,参考方法如下:

# dd if=/dev/zero of=/opt/other/swapfile bs=1024 count=512K

# mkswap /opt/other/swapfile

# swapon /opt/other/swapfile

# swapon -s

Filename                Type        Size    Used    Priority

/opt/other/swapfile                     file        524280    0    -1


3.将该参数添加到系统启动文件中

cat >> /etc/rc.local <<EOF

swapon /opt/other/swapfile

EOF


本文出自 “旅游人生” 博客,请务必保留此出处http://felixgzf.blog.51cto.com/4108324/1927564

Oracle安装补丁时报ollect2: ld terminated with signal 9 [Killed]