Home  >  Article  >  Database  >  solaris x86安装ORACLE 11.2.0.3软件时因SWAP不足报错: INFO: l

solaris x86安装ORACLE 11.2.0.3软件时因SWAP不足报错: INFO: l

WBOY
WBOYOriginal
2016-06-07 15:50:401213browse

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

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
                   
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn