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

Prochaine révision
Révision précédente
oracle:install19c:goldenimage [29/01/2025 15:05] – créée mdloracle:install19c:goldenimage [12/11/2025 07:46] (Version actuelle) mdl
Ligne 1: Ligne 1:
-##### Création Golden Image #####+====== 4 - Création Golden Image ====== 
 Mecanisme qui permet d'exporter un ORACLE_HOME patché. Mecanisme qui permet d'exporter un ORACLE_HOME patché.
-Ici pour une 19.23 
  
-  * Sur la source en 19.23en ORACLE+ \\ 
 +== Sur la source en 19.23 == 
 + 
 +  * en ORACLE (il faut 12 249 Mo d'espace libre)
 <code BASH>  <code BASH> 
 cd $ORACLE_HOME cd $ORACLE_HOME
Ligne 11: Ligne 14:
 Successfully Setup Software. Successfully Setup Software.
 Gold Image location: /u01/Downloads//db_home_2025-01-29_03-10-16PM.zip Gold Image location: /u01/Downloads//db_home_2025-01-29_03-10-16PM.zip
 +</code>
 +
 + \\
 +== Sur la target ==
 +  * Appliquer le RPM Preinstall
 +<code BASH> 
 +yum install oracle-database-preinstall-19c
 +</code>
 +
 +  * Préparer l'arborescence
 +<code BASH> 
 +mkdir -p /u01/Downloads
 +mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
 +mkdir -p /u02/oradata
 +mkdir -p /u07/oradata/FRA
 +chown -R oracle:oinstall /u01 /u02 /u07 /home/oracle
 +chmod -R 775 /u01 /u02/* /u07/*
 +</code>
 +
 +  * Ajout variables:
 +<code BASH> 
 +sudo su - oracle
 +export ORACLE_HOSTNAME=host1.labo.local
 +export ORACLE_BASE=/u01/app/oracle
 +export ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1
 +export ORA_INVENTORY=/u01/app/oraInventory
 +export CV_ASSUME_DISTID=OL8
 +export SOFTWARE_DIR=/u01/Downloads
 +</code>
 +
 +  * Après l'avoir copiée sur la Target, décompresser la golden Image dans le répertoire $ORACLE_HOME
 +<code BASH> 
 +cd $ORACLE_HOME
 +unzip -oq ${SOFTWARE_DIR}/oracle_home-19.23_2025-01-29.zip
 +</code>
 +
 +  * Lancer l'installer
 +<code BASH> 
 +./runInstaller -ignorePrereq -waitforcompletion -silent                    \
 +-responsefile ${ORACLE_HOME}/install/response/db_install.rsp               \
 +oracle.install.option=INSTALL_DB_SWONLY                                    \
 +ORACLE_HOSTNAME=${ORACLE_HOSTNAME}                                         \
 +UNIX_GROUP_NAME=oinstall                                                   \
 +INVENTORY_LOCATION=${ORA_INVENTORY}                                        \
 +SELECTED_LANGUAGES=en,en_GB                                                \
 +ORACLE_HOME=${ORACLE_HOME}                                                 \
 +ORACLE_BASE=${ORACLE_BASE}                                                 \
 +oracle.install.db.InstallEdition=EE                                        \
 +oracle.install.db.OSDBA_GROUP=dba                                          \
 +oracle.install.db.OSBACKUPDBA_GROUP=dba                                    \
 +oracle.install.db.OSDGDBA_GROUP=dba                                        \
 +oracle.install.db.OSKMDBA_GROUP=dba                                        \
 +oracle.install.db.OSRACDBA_GROUP=dba                                       \
 +SECURITY_UPDATES_VIA_MYORACLESUPPORT=false                                 \
 +DECLINE_SECURITY_UPDATES=true
 +
 + Launching Oracle Database Setup Wizard...
 +
 + [WARNING] [INS-13001] Oracle Database is not supported on this operating system. Installer will not perform prerequisite checks on the system.
 +    CAUSE: This operating system may not have been in the certified list at the time of the release of this software.
 +    ACTION: Refer to My Oracle Support portal for the latest certification information for this operating system. Proceed with the installation if the operating system has been certified after the release of this software.
 + The response file for this session can be found at:
 + /u01/app/oracle/product/19.0.0/dbhome_1/install/response/db_2025-01-29_04-30-02PM.rsp
 +
 + You can find the log of this install session at:
 + /tmp/InstallActions2025-01-29_04-30-02PM/installActions2025-01-29_04-30-02PM.log
 +
 + As a root user, execute the following script(s):
 + 1. /u01/app/oraInventory/orainstRoot.sh
 + 2. /u01/app/oracle/product/19.0.0/dbhome_1/root.sh
 +
 + Execute /u01/app/oraInventory/orainstRoot.sh on the following nodes:
 + [xxxxx]
 + Execute /u01/app/oracle/product/19.0.0/dbhome_1/root.sh on the following nodes:
 + [xxxxx]
 +</code>
 +
 +  * En tant que ROOT:  
 +<code BASH>
 +/u01/app/oraInventory/orainstRoot.sh
 +/u01/app/oracle/product/19.0.0/dbhome_1/root.sh
 </code> </code>