echo "Running directoryTweaks.sh for Oracle install on Linux" echo "Create directories, set ownership and permissions" # Do this AFTER create user # create the ORACLE_HOME directory mkdir -p /u01/app/oracle/product/10.2.0/ # create the directories that will become the library path and TNSADMIN directories mkdir -p /u01/app/oracle/network/admin mkdir -p /u01/app/oracle/lib # the directory where the files that script the Oracle Install should go mkdir /u01/tmp chmod a+wr /u01/tmp chown -R oracle:oinstall /u01/tmp # The name of your database ORACLE_SID=db_1 export ORACLE_SID # If using Files for storage, create the first directory that will hold some mkdir -p /u02/oradata/db_1 chown -R oracle:oinstall /u01/app/oracle chmod 775 /u01/app/oracle chown oracle:oinstall /u02/oradata/db_1 ORACLE_BASE=/u01/app/oracle export ORACLE_BASE # Read the Install Guides for YOUR Install to see if you need any of these preset # ORACLE_HOME=/u01/app/oracle/product/10.2.0 # export ORACLE_HOME # TNSADMIN=$ORACLE_HOME/network/admin # export TNSADMIN # DYLD_LIBRARY_PATH=$ORACLE_HOME/lib # export DYLD_LIBRARY_PATH # LD_LIBRARY_PATH=$ORACLE_HOME/lib # export LD_LIBRARY_PATH # Remove any file or directory from the ORACLE_BASE and ORACLE_HOME # that Oracle has not itself generated find /u01 -name "lost+found" -exec rmdir {} \;