Fix Oracle RAC Database First Instance

In my shop our Lead Integrator mistakenly changed the permissions on our ORACLE_HOME directory.  And not knowing what it really should be did this in an attempt to correct:  chmod -R 0775

My question, I always thought that you could rerun on the command line, the "root.sh" script and this would reset all permissions on directories??

After research at looks like the --however not yet confirmed that the setuid and segid bit needs to be set for both the oracle binary $GRID_HOME/bin/oracle and RDBMS ORACLE_HOME/bin/oracle.

Add setuid and segid bit for oracle binary:
$  chmod 6751 $GRID_HOME/bin/oracle

The oracle bindary for both GRID and RDBMS should have 6751 permission,  eg:  -rwsr-s--x

Shouldn't you be able to rerun to the root.sh on this specific instance to make sure all permissions are correct?
LVL 1
sdrussAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
root.sh just performs the necessary post install setup pieces.  It was never meant to walk the tree and set all file permissions.

I believe what you need is in this note on Oracle Support:
How to check and fix file permissions on Grid Infrastructure environment (Doc ID 1931142.1)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mark GeerlingsDatabase AdministratorCommented:
I agree with slightwv on this, that the root.sh script does not normally change file permissions.  And you are correct that that one or two executable files in the $ORACLE_HOME and $GRID_HOME need the special permissions you listed.  If you use Oracle's Direct NFS (with Oracle database files on a NAS storage system) the executable for that in the $ORACLE_HOME also needs the special permissions you listed.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.