/tmp/.oracle,/var/tmp/.oracle如果删除了,该怎么办?

来源:互联网 发布:四叉树碰撞检测算法 编辑:程序博客网 时间:2024/04/28 20:04

在官方文档有如下的描述:

3 Installing Oracle Grid Infrastructure and Oracle Real Application Clusters



Caution:
After installation is complete, do not remove manually or run cron jobs that remove /tmp/.oracle or /var/tmp/.oracle directories or their files while Oracle software is running on the server. If you remove these files, then the Oracle software can encounter intermittent hangs. Oracle Clusterware installations can fail with the error:
CRS-0184: Cannot communicate with the CRS daemon.

安装完成后,在正常运行的RAC下,不能手工移动或者删除/tmp/.oracle,/var/tmp/.oracle,如果移除了,会造成间断性的hang,oracle集群软件也会有报错。

记住:

如果RAC正在运行千万不能删除


如果文件删除了,重新CRS会自动重新建立!


如果目录删除了,那就只能参考下面的命令重建了


Create the /var/tmp and /var/tmp/.oracle directory:


/bin/mkdir -p /var/tmp/.oracle
/bin/chmod 01777 /var/tmp/
/bin/chown root /var/tmp/ 
/bin/chmod 01777 /var/tmp/.oracle
/bin/chown root /var/tmp/.oracle
0 0