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/s/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