当前位置:网站首页>The Oracle 11g RAC cluster database cannot be started due to directory permission errors

The Oracle 11g RAC cluster database cannot be started due to directory permission errors

2022-06-25 02:23:00 Rsda DBA_ WGX

Directory permission error caused Oracle 11g rac Cluster listening fails to start

One 、 Problem description

stay CentOS7 Install two nodes in Oracle 11g rac colony ,grid and oracle After the software is installed , When creating a database, you will be prompted that you are not listening , Unable to create database . The error code is :RPCR-1071,PRCR-1066,CRS-2566.

Two 、 The cause of the problem

Under normal circumstances ,grid Under the user $ORACLE_HOME/bin/oracle Document and oracle Under the user $ORACLE_HOME/bin/oracle Normal permissions should be -rwsr-s–x(6751). Permission to view these two files :

1、grid user

[[email protected] bin]$ pwd
/u01/app/11.2.0/grid/bin

[[email protected] bin]$ ls -al oracle
-rwsr-s--x 1 grid oinstall 209854152 Jun 13 20:22 oracle

#  There is no problem with the file permissions 

2、oracle user

[[email protected] ~]$ cd $ORACLE_HOME/bin
[[email protected] bin]$ pwd
/u01/app/oracle/product/11.2.0/db_1/bin

[[email protected] bin]$ ls -al oracle
-rwxr-xr-x 1 oracle oinstall 239520784 Jun 13 22:43 oracle

#  There is a problem with the file permissions , The correct file permissions should be :-rwsr-s--x 1 oracle asmadmin 

3、 ... and 、 terms of settlement

1、 modify oracle Under the user /u01/app/oracle/product/11.2.0/db_1/bin/oracle File permissions

Two nodes are modified at the same time :

[[email protected] bin]$chown oracle:asmadmin oracle
[[email protected] bin]$chmod 6751 oracle
[[email protected] bin]# ls -al oracle
-rwsr-s--x 1 oracle asmadmin 239520784 Jun 13 22:43 oracle

2、 Add and start listening

--  add to  listener  To  crs  service 
[grid@rac1 ~]$ srvctl add listener

--  Check the listening status 
[grid@rac1 ~]$ srvctl status listener
Listener LISTENER is enabled         --  Have been added 
Listener LISTENER is not running     --  Has not started 

--  Start listening 
[grid@rac1 ~]$ srvctl start listener

--  Check the listening status 
[grid@rac1 ~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): oel11g
原网站

版权声明
本文为[Rsda DBA_ WGX]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206242253453548.html