【问题背景】公司测试环境,因新建了个目录把整个Oracle环境目录的权限给改了,导致重启实例时出现如下问题
[root@testb ~]# srvctl start instance -d test -i test2
PRCR-1013 : Failed to start resource ora.test.db
PRCR-1064 : Failed to start resource ora.test.db on node testb
CRS-5017: The resource action "ora.test.db start" encountered the following error:
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+DGSYSTEM/test/spfiletest.ora'
ORA-17503: ksfdopn:2 Failed to open file +DGSYSTEM/test/spfiletest.ora
ORA-12547: TNS:lost contact
. For details refer to "(:CLSN00107:)" in "/oracle/app/11.2.0/grid/log/testb/agent/crsd/oraagent_oracle/oraagent_oracle.log".
CRS-2674: Start of 'ora.test.db' on 'testb' failed
[root@testb ~]#
【处理】
在做这步操作之前,最好先按部署时的权限顺序,对各个目录赋权限,然后再进行接下来的操作
su - grid
cd $ORACLE_HOME/bin
ls -lsa oracle
204920 -rwxrwxr-x 1 grid oinstall 2