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