运维DBA反映在Oracle 11G数据库安装过程中,在检测阶段出现报错警告Free space: /tmp空间不足
1.ORACLE 11G报Free space: /tmp空间不足错误
详细信息
Free Space: xifenfei:/tmp – This is a prerequisite condition to test
whether sufficient free space is available in the file system.
Error:
–
PRVF-7501 : Sufficient space is not available at location “/tmp”
on node “xifenfei” [Required space = 1GB ]
– Cause: Not enough free space at location specified. – Action:
Free up additional space or select another location.
Expected Value
: 1GB
Actual Value
: 238MB
错误提示很明显ORACLE安装过程需要1G的临时空间,但是现在/tmp只有238M,空间明显不足,是的oracle检测失败,为了安装过程不出意外,决定分析并解决该问题
磁盘空间使用情况
[ora11g@oracleplus ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
3.9G 3.3G 238M 93% /
/dev/sda1 99M 24M 71M 25% /boot
tmpfs 1002M 0 1002M 0% /dev/shm
/dev/sdb1 20G 7.8G 11G 42% /u01
这里可以看出来/tmp没有另外的分配分区,而是挂载在/下面,也就是说,/tmp最多使用的空间就是/dev/mapper/VolGroup00-LogVol00分区能够使用的最大空间,也就是238M,证明ORACLE的检查程序说的是事实。
2.Free space: /tmp空间不足解决该问题
1.建立新tmp目录
[root@oracleplus ora11g]# mkdir /u01/tmp
[root@oracleplus ora11g]# chown root:root /u01/tmp
[root@oracleplus ora11g]# chmod 1777 /u01/tmp
2.设置数据库用户变量
vi db_home/.bash_profile
export TEMP=/u01/tmp
export TMPDIR=/u01/tmp
[ora11g@oracleplus ~]$ env|grep TMP
TMPDIR=/u01/tmp
[ora11g@oracleplus ~]$ env|grep TEMP
TEMP=/u01/tmp
3.重新运行runInstaller
4.安装完成清理相关/u01/tmp 和相关环境变了,让数据库使用系统默认(根据实际情况处理)