mysql中报了 tmp空间不足的问题,【案例】Oracle安装 检测阶段警告Free space: /tmp空间不足解决办法...

天萃荷净

运维DBA反映在Oracle 11G数据库安装过程中,在检测阶段出现报错警告Free space: /tmp空间不足

1.ORACLE 11G报Free space: /tmp空间不足错误

5f99a67e7d30383ef44bc72c2ca21459.png

详细信息

Free Space: oracleplus:/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 "oracleplus" [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 和相关环境变了,让数据库使用系统默认(根据实际情况处理)

--------------------------------------ORACLE-DBA----------------------------------------

最权威、专业的Oracle案例资源汇总之【案例】Oracle安装 检测阶段警告Free space: /tmp空间不足解决办法

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值