Directory Setup for RAC and Oracle Restart
I have three database installations that I'd like some insight on the initial directory structure and permissions. The three installations are:
1) Prod RAC - OEL 5U2, 11.2.0.2 Grid Infrastructure, 11.2.0.2 DB EE with RAC option
2) Test RAC - OEL 5U2, 11.2.0.2 Grid Infrastructure, 11.2.0.2 DB EE with RAC option
3) Single Instance - OEL 5U2, 11.2.0.2 Grid Infrastructure Standalone (Oracle Restart), 11.2.0.2 DB EE
The they all have two users GRID (for Grid Infrastructure Software Owner) and ORACLE (for Oracle Database Software Owner).
We had a consultant install the databases. It's very weird since we have an inconsistency in directories and permission. I want to understand the inconsistency between RAC installations as well as Oracle Restart Install.
SEE BELOW: The two RAC servers have different owners for /u01/app/11.2.0.2 directory. The Oracle Restart Installation - Single Instance has the same owner as Prod RAC but different than Test RAC. What the consultant said was that ORACLE_BASE would be /u01/app/oracle for both Grid Infrastructure and Database installations. This was to apply to TEST/PROD RAC (3 node, 3 instances, 1 instance/node) and Oracle Restart installation. The GRID_HOME would be /u01/app/11.2.0.2/grid and ORACLE_HOME would be /u01/app/11.2.0.2/db_1. It seems like the owners aren't setup correctly. Why? I don't want problems with patching or upgrading. If this setup is technically incorrect what is the best way to setup so there's no owner/permission issues. Is it necessary to have two separate ORACLE_BASE's like /u01/app/grid?
PRODUCTION REAL APPLICATION CLUSTER (Displaying only one Node details)
$ cd app
drwxr-xr-x 6 root oinstall 4096 Feb 26 2011 .
drwxr-xr-x 3 root oinstall 4096 Apr 21 2009 ..
drwxrwxr-x 4 grid oinstall 4096 Feb 26 2011 11.2.0.2
drwxrwxr-x 2 emagent oinstall 4096 Feb 26 2011 emagent
drwxrwxr-x 9 oracle oinstall 4096 May 16 2011 oracle
drwxrwx--- 7 grid oinstall 4096 Feb 26 2011 oraInventory
............................
$ cd 11.2.0.2
drwxrwxr-x 4 grid oinstall 4096 Feb 26 2011 .
drwxr-xr-x 6 root oinstall 4096 Feb 26 2011 ..
drwxr-xr-x 79 oracle oinstall 4096 Mar 29 2011 db_1
drwxr-xr-x 69 root oinstall 4096 Feb 26 2011 grid
..................................
$ cd ..
$ cd oracle
9 oracle oinstall 4096 May 16 2011 .
drwxr-xr-x 6 root oinstall 4096 Feb 26 2011 ..
drwxr-xr-x 4 oracle oinstall 4096 Feb 26 2011 admin
drwxr-xr-x 3 oracle oinstall 4096 Feb 26 2011 cfgtoollogs
drwxrwxr-x 2 grid oinstall 4096 Feb 26 2011 Clusterware
drwxrwxr-x 11 grid oinstall 4096 Feb 26 2011 diag
drwxrwxr-x 3 grid oinstall 4096 Feb 26 2011 hqrac03
drwxr----- 3 oracle oinstall 4096 May 16 2011 oradiag_oracle
drwxr-xr-x 3 root root 4096 Mar 13 2011 oradiag_root
TEST REAL APPLICATION CLUSTER (Displaying only one Node details)
$ cd app
drwxr-xr-x 6 root oinstall 4096 Jan 26 2011 ./
drwxr-xr-x 3 root oinstall 4096 Jan 26 2009 ../
drwxrwxr-x 4 root oinstall 4096 Jan 26 2011 11.2.0.2/
drwxrwxr-x 2 emagent oinstall 4096 Mar 1 2011 emagent/
drwxrwxr-x 10 grid oinstall 4096 May 16 2011 oracle/
drwxrwx--- 7 grid oinstall 4096 Jan 27 2011 oraInventory/
..................................
$ cd 11.2.0.2
drwxrwxr-x 4 root oinstall 4096 Jan 26 2011 ./
drwxr-xr-x 6 root oinstall 4096 Jan 26 2011 ../
drwxr-xr-x 80 oracle oinstall 4096 Mar 17 2011 db_1/
drwxr-xr-x 70 root oinstall 4096 Jan 27 2011 grid/
.................................
$ cd ..
$ cd oracle
drwxrwxr-x 10 grid oinstall 4096 May 16 2011 ./
drwxr-xr-x 6 root oinstall 4096 Jan 26 2011 ../
drwxr-xr-x 4 oracle oinstall 4096 Feb 2 2011 admin/
drwxr-xr-x 4 oracle oinstall 4096 Feb 2 2011 cfgtoollogs/
drwxr-xr-x 2 grid oinstall 4096 Jan 26 2011 Clusterware/
drwxrwxr-x 11 grid oinstall 4096 Jan 26 2011 diag/
drwxr-xr-x 3 grid oinstall 4096 Jan 26 2011 hqract03/
drwxr-xr-x 3 grid oinstall 4096 Mar 23 2011 oradiag_grid/
drwxr----- 3 oracle oinstall 4096 May 16 2011 oradiag_oracle/
drwxr-xr-x 3 root root 4096 Jan 27 2011 oradiag_root/
SINGLE INSTANCE DATABASE (ORACLE RESTART)
$ cd app
drwxrwxr-x 6 503 oinstall 4096 Feb 26 2011 .
drwxr-xr-x 3 root root 4096 Apr 16 2009 ..
drwxrwxr-x 4 grid oinstall 4096 Feb 26 2011 11.2.0.2
drwxrwxr-x 8 grid oinstall 4096 Feb 26 2011 oracle
drwxrwx--- 6 grid oinstall 4096 Feb 26 2011 oraInventory
.....................
$ cd 11.2.0.2
drwxrwxr-x 4 grid oinstall 4096 Feb 26 2011 .
drwxrwxr-x 6 503 oinstall 4096 Feb 26 2011 ..
drwxr-xr-x 76 oracle oinstall 4096 Apr 6 2011 db_1
drwxr-x--- 69 root oinstall 4096 Feb 26 2011 grid
.....................
$ cd ..
$ cd oracle
drwxrwxr-x 8 grid oinstall 4096 Feb 26 2011 .
drwxrwxr-x 6 503 oinstall 4096 Feb 26 2011 ..
drwxrwxr-x 5 grid oinstall 4096 Feb 26 2011 admin
drwxrwxr-x 7 grid oinstall 4096 Feb 26 2011 cfgtoollogs
drwxrwxr-x 2 grid oinstall 4096 Feb 26 2011 checkpoints
drwxrwxr-x 2 grid oinstall 4096 Feb 26 2011 Clusterware
drwxrwxr-x 11 grid oinstall 4096 Feb 26 2011 diag
drwxrwxr-x 3 grid oinstall 4096 Feb 26 2011 hqods01
Thanks so much.