What if the permissions of the installation directory in the oracle rac environment are modified and messed up?
This article will explain in detail what to do if the permissions of the installation directory in the oracle rac environment have been modified. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
In red hat Enterprise Edition linux rhel 6 and above, two nodes of oracle 11g rac are installed. Due to various reasons, such as psu typing, upgrade, misoperation, etc., if the installation directory / u01/app/oracle permission of a node is modified, such as
Chown-R grid:dba / u01/app/
Chmod-R 775 / u01/app
At this time, the owner,group of the subdirectory under / u01/app/, and the permissions, special permissions, including acl, have been modified. How can you quickly change it back?
If there is a backup, it would be better. Of course, it is the backup of permissions or the backup of files. If not, we have two nodes of rac. Only one node is modified, and the rac of two nodes is the same. You can try to overwrite the modified node with the file permissions of the unmodified node, as follows:
1. Get permissions for files and directories on node 2:
# getfacl-R / u01/app > / backupperm.txt
two。 Copy / backupperm.txt to Node 1
Scp / backupperm.txt rac1:/.
3. Restore permissions on node 1
# setfacl-restore=backupperm.txt
Then check whether the permissions on node 1 have been restored, including users, group,acl,suid,sgid, etc.
:% s/u01/\ / u01swap g
About "what to do if the permissions of the installation directory in the oracle rac environment are modified?" this article ends here. I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.