meta données pour cette page
  •  

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
oracle:install19c_rac:3-install_oracle_home [30/08/2025 13:46] mdloracle:install19c_rac:3-install_oracle_home [20/11/2025 12:12] (Version actuelle) mdl
Ligne 1: Ligne 1:
 +====== 3 - Install ORACLE_HOME RAC ======
 +
 +
 +  * Préparation des variables d'environnement
 <code bash> <code bash>
 su - oracle su - oracle
-export  ORACLE_HOSTNAME=oracle1.labo.local+export  ORACLE_HOSTNAME=oracle2.labo.local
 export ORACLE_BASE=/u01/app/oracle export ORACLE_BASE=/u01/app/oracle
-export ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1+export ORACLE_HOME=$ORACLE_BASE/product/19c/dbhome_1
 export ORA_INVENTORY=/u01/app/oraInventory export ORA_INVENTORY=/u01/app/oraInventory
 export CV_ASSUME_DISTID=OEL7.6 export CV_ASSUME_DISTID=OEL7.6
 +</code>
  
 +  * création de l'arborescence (sur les deux noeuds en tant qu'ORACLE)
 +<code bash>
 +mkdir -p /u01/app/oracle/product/19c/dbhome_1
 +</code>
  
 +  * décompression des binaires
 +<code bash>
 cd $ORACLE_HOME cd $ORACLE_HOME
 unzip -oq /u01/Downloads/Oracle_Database_19.3.0.0.0.zip unzip -oq /u01/Downloads/Oracle_Database_19.3.0.0.0.zip
 +</code>
  
 +  * création des clefs SSH pour le GRID 
 +<code bash>
 [oracle@oracle2 db_home1]$ ./deinstall/sshUserSetup.sh -user oracle -hosts 'oracle2 oracle3 oracle2-priv oracle3-priv' -noPromptPassphrase -confirm -advanced [oracle@oracle2 db_home1]$ ./deinstall/sshUserSetup.sh -user oracle -hosts 'oracle2 oracle3 oracle2-priv oracle3-priv' -noPromptPassphrase -confirm -advanced
-  +</code> 
  
 +  * création du fichier de réponse DBCA
 +<code bash>
 [oracle@oracle2 db_home1]$ vi /u01/Downloads/db.rsp [oracle@oracle2 db_home1]$ vi /u01/Downloads/db.rsp
  
Ligne 34: Ligne 48:
 # -- FOLDERS # -- FOLDERS
 INVENTORY_LOCATION=/u01/app/oraInventory  --oracle product catalog INVENTORY_LOCATION=/u01/app/oraInventory  --oracle product catalog
-ORACLE_HOME=/u01/app/oracle/product/19c/db_home1+ORACLE_HOME=/u01/app/oracle/product/19c/dbhome_1
 ORACLE_BASE=/u01/app/oracle                 ORACLE_BASE=/u01/app/oracle                
 # #
Ligne 90: Ligne 104:
 COLLECTOR_SUPPORTHUB_URL= COLLECTOR_SUPPORTHUB_URL=
   
-------  +</code>  
- + 
 +  * exécution du DBCA en mode silent 
 +<code bash>
 [oracle@oracle2 db_home1]$ ./runInstaller -silent -responseFile /u01/Downloads/db.rsp  -skipPrereqs [oracle@oracle2 db_home1]$ ./runInstaller -silent -responseFile /u01/Downloads/db.rsp  -skipPrereqs
 +</code>
 +
 +  * Post Install scripts sur les deux noeuds en tant que ROOT
 +<code bash>
 +[root@oracle2 bin]# /u01/app/oracle/product/19c/dbhome_1/root.sh
 +Check /u01/app/oracle/product/19c/dbhome_1/install/root_oracle2.labo.local_2025-09-14_18-48-02-932688370.log for the output of root script
 +
 +
 +root@oracle3 ~]# /u01/app/oracle/product/19c/dbhome_1/root.sh
 +Check /u01/app/oracle/product/19c/dbhome_1/install/root_oracle3.labo.local_2025-09-14_18-48-52-975490788.log for the output of root script
 +</code>
 +
 +  * personnalisation bash_profile ORACLE
 +**__oracle2__**
 +<code BASH>
 +# .bash_profile
 +
 +# Get the aliases and functions
 +if [ -f ~/.bashrc ]; then
 +        . ~/.bashrc
 +fi
 +
 +# User specific environment and startup programs
 +
 +PATH=$PATH:$HOME/.local/bin:$HOME/bin
 +
 +export PATH
 +#
 +##### Oracle Env #####
 +export ORACLE_BASE=/u01/app/oracle
 +export ORACLE_HOME=$ORACLE_BASE/product/19c/dbhome_1
 +##export ORACLE_SID=
 +export LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib
 +export CLASSPATH=\$ORACLE_HOME/jlib:\$ORACLE_HOME/rdbms/jlib
 +PATH=$PATH:$HOME/.local/bin:$ORACLE_HOME/bin
 +
 +</code>
 +**__oracle3__**
 +<code BASH>
 +# .bash_profile
 +
 +# Get the aliases and functions
 +if [ -f ~/.bashrc ]; then
 +        . ~/.bashrc
 +fi
 +
 +# User specific environment and startup programs
 +
 +PATH=$PATH:$HOME/.local/bin:$HOME/bin
 +
 +export PATH
 +#
 +##### Oracle Env #####
 +export ORACLE_BASE=/u01/app/oracle
 +export ORACLE_HOME=$ORACLE_BASE/product/19c/dbhome_1
 +##export ORACLE_SID=
 +export LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib
 +export CLASSPATH=\$ORACLE_HOME/jlib:\$ORACLE_HOME/rdbms/jlib
 +PATH=$PATH:$HOME/.local/bin:$ORACLE_HOME/bin
 </code> </code>