♣
题目部分
在Oracle中,什么是套接字文件?
♣
答案部分
套接字文件(Socket File)在RAC环境中承担着许多集群进程之间的通信任务,这些进程可以来自于集群的不同节点。这些套接字文件一般保存在tmp路径下,不同的操作系统其路径也会不同。Linux环境的套接字文件在/var/tmp/.oracle文件夹下,在其它平台,可能的目录有:/tmp/.oracle/*,/tmp/.oracle或者/usr/tmp/.oracle。若删除这些套接字文件或修改这些套接字文件的权限,则可能引起各种各样的问题,而且这些套接字文件不能手动修复,只能通过重启集群的方式来生成全新的套接字文件,即集群每次在启动的时候都会重新生成新的套接字文件。以下是套接字文件的列表:
1[root@node1 tmp]# cd /var/tmp/.oracle 2[root@node1 .oracle]# ll 3total 4 4srwxrwx--- 1 grid oinstall 0 May 20 13:05 master_diskmon 5srwxrwxrwx 1 grid oinstall 0 May 20 13:04 mdnsd 6-rw-r--r-- 1 grid oinstall 5 May 20 13:04 mdnsd.pid 7prw-r--r-- 1 root root 0 Feb 27 2012 npohasd 8srwxrwxrwx 1 grid oinstall 0 May 20 13:04 ora_gipc_GPNPD_node1 9-rw-r--r-- 1 grid oinstall 0 May 20 13:04 ora_gipc_GPNPD_node1_lock 10srwxrwxrwx 1 oracle oinstall 0 Sep 12 2014 s#10501.1 11... 省略 ... 12srwxrwxrwx 1 root root 0 May 20 13:07 sCRSD_IPC_SOCKET_11 13srwxrwxrwx 1 root root 0 May 20 13:07 sCRSD_UI_SOCKET 14srwxrwxrwx 1 grid oinstall 0 May 20 13:08 sLISTENER 15srwxrwxrwx 1 root root 0 May 20 13:07 snode1DBG_CRSD 16srwxrwxrwx 1 grid oinstall 0 May 20 13:05 snode1DBG_CSSD 17srwxrwxrwx 1 root root 0 May 20 13:05 snode1DBG_CTSSD 18srwxrwxrwx 1 grid oinstall 0 May 20 13:05 snode1DBG_EVMD 19srwxrwxrwx 1 grid oinstall 0 May 20 13:04 snode1DBG_GIPCD 20srwxrwxrwx 1 grid oinstall 0 May 20 13:04 snode1DBG_GPNPD 21srwxrwxrwx 1 grid oinstall 0 May 20 13:04 snode1DBG_MDNSD 22srwxrwxrwx 1 root root 0 May 20 13:04 snode1DBG_OHASD 23-rw-r--r-- 1 grid oinstall 0 May 20 13:05 sOCSSD_LL_node1__lock 24srwxrwxrwx 1 grid oinstall 0 May 20 13:05 sOCSSD_LL_node1_node-cluster 25-rw-r--r-- 1 grid oinstall 0 May 20 13:05 sOCSSD_LL_node1_node-cluster_lock 26srwxrwxrwx 1 root root 0 May 20 13:04 sOHASD_IPC_SOCKET_11 27srwxrwxrwx 1 root root 0 May 20 13:04 sOHASD_UI_SOCKET 28srwxrwxrwx 1 grid oinstall 0 May 20 13:05 sOracle_CSS_LclLstnr_node-cluster_1 29-rw-r--r-- 1 grid oinstall 0 May 20 13:05 sOracle_CSS_LclLstnr_node-cluster_1_lock 30srwxrwxrwx 1 root root 0 May 20 13:07 sora_crsqs 31srwxrwxrwx 1 root root 0 May 20 13:07 sprocr_local_conn_0_PROC 32srwxrwxrwx 1 root root 0 May 20 13:04 sprocr_local_conn_0_PROL 33srwxrwxrwx 1 grid oinstall 0 May 20 13:07 sSYSTEM.evm.acceptor.auth