oracledba.help
SpecialTopics

Home, Base and oraInventory Directories

Overview

The Home and oraInventory directories should be created before you install any Oracle software. The Oracle Database home must be created in a different path than the Grid Infrastructure (GI) home. Furthermore, the GI Base directory must be created in different path than the GI Home.

BASE Dir

Where diagnostic and admin logs associated with ASM and clusterware are stored. Also clusterware config files are stored there.

ORACLE|GRID_HOME Dir

The location your software is stored.

With the oraInventory directory the Linux owner must be different for GI environments.

Replace 19.3.0.0.0 with your version number if different.

Home and Base Directories

 -- Oracle Database Base and Home
 mkdir -p /u01/app/oracle
 mkdir -p /u01/app/oracle/product/19.3.0.0.0/dbhome_1

 -- Grid Base
 mkdir -p /u01/app/grid

 -- Grid Home
 mkdir -p /u01/app/19.3.0.0.0/grid

 -- Privs
 chown -R grid:oinstall /u01
 chown -R oracle:oinstall /u01/app/oracle
 chmod -R 775 /u01/

For RAC Nodes 2-nnn

 mkdir -p /u01/app/grid
 chown -R grid:oinstall /u01/app/grid
 chmod -R 775 /u01/app/grid

 mkdir -p /u01/app/19.3.0.0.0/grid
 chown -R grid:oinstall /u01/app/19.3.0.0.0
 chmod -R 775 /u01/app/19.3.0.0.0

 mkdir -p /u01/app/oracle/product/19.3.0.0.0/dbhome_1
 chown -R oracle:oinstall /u01/app/oracle
 chmod -R 775 /u01/app/oracle

Yep its a little verbose this way but it is also clear on what is being changed.

oraInventory

Stand-Alone Database System

 mkdir /u01/app/oraInventory
 chown oracle:oinstall /u01/app/oraInventory
 chmod -R 775 /u01/app/oraInventory 

RAC Nodes

 mkdir /u01/app/oraInventory
 chown grid:oinstall /u01/app/oraInventory
 chmod -R 775 /u01/app/oraInventory

Reference

  • For more info on this see the Oracle Docs.
  • Above validated with Oracle via MOS 3-18195708101.