程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> Oracle數據庫 >> Oracle教程 >> solarisx86安裝ORACLE11.2.0.3軟件時因SWAP不足報錯:INFO:ld:fatal:mmapanonfailed

solarisx86安裝ORACLE11.2.0.3軟件時因SWAP不足報錯:INFO:ld:fatal:mmapanonfailed

編輯:Oracle教程

1.ORACLE軟件安裝到86%時報錯,圖忘截了。日志如下:

/oracle/u01/app/oracle/product/11.2.0/

INFO: db_1/lib/sysliblist` -R /opt/SUNWcluster/lib -R/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib -R /opt/ORCLcluster/lib/ -Y P,:/opt/SUNWcluster/lib:/opt/ORCLcluster/lib/:/usr/ccs/lib/amd64:/usr/lib/amd64 -Qy -lm /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/prod/lib/amd64/crtn.o -lpthread

INFO: ld: fatal: mmap anon failed: Resource temporarily unavailable

INFO: ld: fatal: mmap anon failed: Resource temporarily unavailable

INFO: *** Error code 1

INFO: make: Fatal error:
INFO: Command failed for target `/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/oracle'

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'irman ioracle' of makefile '/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/export/home/oracle/u01/app/oraInventory/logs/installActions2014-05-13_02-15-59PM.log' for details.
Exception Severity: 1

######################################

解決方法:百度了下,要增加SWAP。

報錯後查看SWAP可用空間很足,我一度懷疑不是SWAP的問題,結果在ORACLE安裝界面RETRY時,新開窗口一直df -h觀察SWAP使用情況,發現SWAP很快被用的快光了。

查到解決方法:在MOS上查說是swap不足導致,臨時增大swap

# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 33,1 8 1076344 232800
# mkfile 3g /swap
# swap -a /swap
# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 33,1 8 1076344 234696
/swap - 8 6291448 5679544

刪除臨時swap----重啟後就沒有了。
# swap -d /swap
# swap -l
# rm -rf /swap

##############################################

我的具體解決過程:

-bash-3.2$ df -h

Filesystem size used avail capacity Mounted on
/dev/dsk/c0t0d0s0 8.1G 3.9G 4.1G 49% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 760M 980K 759M 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
8.1G 3.9G 4.1G 49% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 1022M 263M 759M 26% /tmp
swap 759M 36K 759M 1% /var/run
/dev/dsk/c0t0d0s7 11G 6.4G 4.5G 59% /export/home
/vol/dev/dsk/c0t1d0/sol_10_113_x86
2.1G 2.1G 0K 100% /cdrom/sol_10_113_x86
-bash-3.2$ mkfile 2g /swap
-bash: mkfile: command not found
-bash-3.2$ su -
Password:
Oracle Corporation SunOS 5.10 Generic Patch January 2005
# bash
bash-3.2# mkfile 2g /swap
bash-3.2# swap -a /swap
bash-3.2# swap -l

swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 33,1 8 1060280 286840
/swap - 8 4194296 4194296
bash-3.2# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t0d0s0 8.1G 5.9G 2.1G 74% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 2.7G 980K 2.7G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
8.1G 5.9G 2.1G 74% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 3.0G 263M 2.7G 9% /tmp
swap 2.7G 36K 2.7G 1% /var/run
/dev/dsk/c0t0d0s7 11G 6.4G 4.5G 59% /export/home
/vol/dev/dsk/c0t1d0/sol_10_113_x86
2.1G 2.1G 0K 100% /cdrom/sol_10_113_x86
bash-3.2# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t0d0s0 8.1G 5.9G 2.1G 74% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 2.7G 980K 2.7G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
8.1G 5.9G 2.1G 74% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 3.0G 263M 2.7G 9% /tmp
swap 2.7G 36K 2.7G 1% /var/run
/dev/dsk/c0t0d0s7 11G 6.4G 4.5G 59% /export/home
/vol/dev/dsk/c0t1d0/sol_10_113_x86
2.1G 2.1G 0K 100% /cdrom/sol_10_113_x86

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved