/tmp/.oracle,/var/tmp/.oracle如果刪除了,該怎麼辦?
在官方文檔有如下的描述:
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