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:emterprisemanager:install [01/02/2025 13:33] mdloracle:emterprisemanager:install [12/02/2025 20:18] (Version actuelle) mdl
Ligne 2: Ligne 2:
  
 == Ressources == == Ressources ==
 +https://www.oracle.com/enterprise-manager/downloads/linux-x86-64-13c-rel5-downloads.html
  
 https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/13.5/emadv/installing-enterprise-manager-silent-mode1.html https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/13.5/emadv/installing-enterprise-manager-silent-mode1.html
Ligne 94: Ligne 94:
   * paquets nécessaires   * paquets nécessaires
 <code BASH> <code BASH>
-yum  install binutils gcc gcc-c++ glibc glibc-devel libaio libgcc libnsl libstdc++  make motif motif-devel openssl sysstat bc compat-openssl11 elfutils-libelf fontconfig ksh libasan liblsan libX11 libXau libXi libXrender libXtst libxcrypt-compat libibverbs librdmacm libxcb libvirt-libs policycoreutils policycoreutils-python-utils smartmontools+yum  install binutils gcc gcc-c++ glibc glibc-devel libaio libgcc libnsl libstdc++  make motif motif-devel openssl sysstat bc compat-openssl11 elfutils-libelf fontconfig ksh libasan liblsan libX11 libXau libXi libXrender libXtst libxcrypt-compat libibverbs librdmacm libxcb libvirt-libs policycoreutils policycoreutils-python-utils smartmontools wget
 </code> </code>
    
Ligne 121: Ligne 121:
 mkdir -p /u01/app/oracle/product/agent/ mkdir -p /u01/app/oracle/product/agent/
 mkdir -p /u01/app/oracle/oraInventory mkdir -p /u01/app/oracle/oraInventory
 +mkdir -p  /u01/app/oracle/SoftLibrary
 mkdir -p /u02/oradata mkdir -p /u02/oradata
 mkdir -p /u07/oradata/FRA mkdir -p /u07/oradata/FRA
Ligne 207: Ligne 208:
   * En ORACLE   * En ORACLE
 <code BASH> <code BASH>
 +export ORACLE_HOSTNAME=oem1.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
 +
 cd $ORACLE_HOME/bin cd $ORACLE_HOME/bin
 ./dbca -silent -createDatabase \ ./dbca -silent -createDatabase \
Ligne 278: Ligne 285:
   * fichier de  réponse personnalisé   * fichier de  réponse personnalisé
 <code BASH>  <code BASH> 
 +cp $SOFTWARE_EM_InstallConfFiles/new_install.rsp  $SOFTWARE_EM_InstallConfFiles/new_install_oem1.rsp
 vi $SOFTWARE_EM_InstallConfFiles/new_install_oem1.rsp vi $SOFTWARE_EM_InstallConfFiles/new_install_oem1.rsp
 +
 +####################################################################
 +##                                                                ##
 +## Copyright (c) 2015 Oracle. All rights reserved.                ##
 +##                                                                ##
 +## Specify values for the variables listed below to customize     ##
 +## your installation.                                             ##
 +##                                                                ##
 +## Each variable is associated with a comment. The comment        ##
 +## identifies the variable type.                                  ##
 +##                                                                ##
 +## Specify values in the following format:                        ##
 +##                                                                ##
 +##         Type         Example                                   ##
 +##         ----         -------                                   ##
 +##         string       Sample Value                              ##
 +##         boolean      TRUE or FALSE                             ##
 +##         number       1000                                      ##
 +##                                                                ##
 +####################################################################
 +####################################################################
 +### General
 +RESPONSEFILE_VERSION=2.2.1.0.0
 +UNIX_GROUP_NAME=oinstall
 +#
 +### MIDDLEWARE
 +INVENTORY_LOCATION=/u01/app/oraInventory
 +SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
 +DECLINE_SECURITY_UPDATES=true
 +INSTALL_UPDATES_SELECTION=skip
 +ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/product/EnterpriseManager/oms_home
 +ORACLE_HOSTNAME=oem1.labo.local
 +AGENT_BASE_DIR=/u01/app/oracle/product/agent/
 +WLS_ADMIN_SERVER_USERNAME=weblogic
 +WLS_ADMIN_SERVER_PASSWORD=ep8X5b_nGl4m
 +WLS_ADMIN_SERVER_CONFIRM_PASSWORD=ep8X5b_nGl4m
 +NODE_MANAGER_PASSWORD=ep8X5b_nGl4m
 +NODE_MANAGER_CONFIRM_PASSWORD=ep8X5b_nGl4m
 +SYSMAN_PASSWORD=fOsprl_6nCywp
 +SYSMAN_CONFIRM_PASSWORD=fOsprl_6nCywp
 +ORACLE_INSTANCE_HOME_LOCATION=/u01/app/oracle/product/EnterpriseManager/instance_home
 +CONFIGURE_ORACLE_SOFTWARE_LIBRARY=true
 +SOFTWARE_LIBRARY_LOCATION=/u01/app/oracle/SoftLibrary
 +DEPLOYMENT_SIZE=SMALL
 +AGENT_REGISTRATION_PASSWORD=d6gWro_dPq4f
 +AGENT_REGISTRATION_CONFIRM_PASSWORD=d6gWro_dPq4f
 +PLUGIN_SELECTION={}
 +b_upgrade=false
 +EM_INSTALL_TYPE=NOSEED
 +CONFIGURATION_TYPE=ADVANCED
 +CONFIGURE_SHARED_LOCATION_BIP=false
 +#
 +### DATABASE
 +DATABASE_HOSTNAME=oem1.labo.local
 +LISTENER_PORT=1521
 +SERVICENAME_OR_SID=EMPDB
 +SYS_PASSWORD=zDm_4439BnFUk
 +MANAGEMENT_TABLESPACE_LOCATION=/u02/oradata/EMCDB/datafile/mgmt.dbf
 +CONFIGURATION_DATA_TABLESPACE_LOCATION=/u02/oradata/EMCDB/datafile/mgmt_ecm_depot1.dbf
 +JVM_DIAGNOSTICS_TABLESPACE_LOCATION=/u02/oradata/EMCDB/datafile/mgmt_deepdive.dbf
 +
 +
 +
 </code> </code>
   * installation (avec répertoire tmp alternatif 14GB mini - 2 à 3 heures d'installation)   * installation (avec répertoire tmp alternatif 14GB mini - 2 à 3 heures d'installation)
Ligne 351: Ligne 422:
 /u01/app/oracle/product/agent/agent_13.5.0.0.0/bin/emctl start agent /u01/app/oracle/product/agent/agent_13.5.0.0.0/bin/emctl start agent
 /u01/app/oracle/product/agent/agent_13.5.0.0.0/bin/emctl status agent /u01/app/oracle/product/agent/agent_13.5.0.0.0/bin/emctl status agent
 +</code>
 +
 +  * Creation du software library
 +<code BASH>
 +$OMS_HOME/bin/emcli login -username=sysman
 +
 +        Enter password
 +
 +        Login successful
 +
 + $OMS_HOME/bin/emcli add_swlib_storage_location -name="swlib_loc" -path="/u01/app/oracle/oraInventory"
 +Location configuration initiated, this may take some time to complete...
 +
 +Location 'swlib_loc' created.
 +Metadata registration will be initiated. This will take a few minutes to complete.
 +INFO [Fri Feb 07 16:31:17 CET 2025] Software Library metadata from all installed plug-ins will be registered.
 +
 +INFO [Fri Feb 07 16:31:17 CET 2025] The following ordered plug-ins were found:
 +
 +INFO [Fri Feb 07 16:31:17 CET 2025]     - oracle.sysman.cfw:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:17 CET 2025]     - oracle.sysman.db:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:17 CET 2025]     - oracle.sysman.si:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:17 CET 2025]     - oracle.sysman.xa:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:17 CET 2025]     - oracle.sysman.emas:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:17 CET 2025] Starting Software Library metadata registration for platform ...
 +
 +INFO [Fri Feb 07 16:31:28 CET 2025] Finished registering Software Library metadata for platform.
 +
 +INFO [Fri Feb 07 16:31:28 CET 2025] Starting Software Library metadata registration for plug-in - oracle.sysman.cfw:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:29 CET 2025] Finished registering Software Library metadata for plug-in - oracle.sysman.cfw:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:29 CET 2025] Starting Software Library metadata registration for plug-in - oracle.sysman.db:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:43 CET 2025] Finished registering Software Library metadata for plug-in - oracle.sysman.db:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:43 CET 2025] Starting Software Library metadata registration for plug-in - oracle.sysman.si:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:43 CET 2025] Finished registering Software Library metadata for plug-in - oracle.sysman.si:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:43 CET 2025] Starting Software Library metadata registration for plug-in - oracle.sysman.xa:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:43 CET 2025] Finished registering Software Library metadata for plug-in - oracle.sysman.xa:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:43 CET 2025] Starting Software Library metadata registration for plug-in - oracle.sysman.emas:13.5.1.0.0:0
 +
 +INFO [Fri Feb 07 16:31:51 CET 2025] Finished registering Software Library metadata for plug-in - oracle.sysman.emas:13.5.1.0.0:0
 +
 +Metadata registration has completed.
 +Location statistics refresh job will be submitted.
 +Location statistics refresh job has been submitted.
 +
 </code> </code>
  
 Installation terminée, connexion via:  Installation terminée, connexion via: 
 https://oem1.labo.local:7803/em https://oem1.labo.local:7803/em
 +
 +
 +
 +
 + \\
 +== ERREUR ORA-01843 : ==
 +//ORA-01843: not a valid month// en fin d'installation OMS
 +
 +https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=50257681401453&id=2880634.1&displayIndex=1&_afrWindowMode=0&_adf.ctrl-state=12cgnwxccx_73
 +
 +Il s'agit d'un bug, corrigé uniquement dans EM 23.
 +L'install est a nettoyer et relancer en changeant la langue
 + \\
 +
 +**__Nettoyage__**
 +  * Lancer le script detachHome
 +<code BASH>
 +cd $OMS_HOME/oui/bin 
 +./detachHome.sh
 +
 +Le fichier journal du lanceur est /tmp/OraInstall2025-02-01_08-21-52PM/launcher2025-02-01_08-21-52PM.log.
 +Vérification de l'espace de swap : il doit être supérieur à 500 Mo.   Réel 2047 Mo    Succès
 +Vérification visant à déterminer si la plate-forme requiert une JVM 64 bits.   Réel 64    Succès (64 bits non requis)
 +L'opération detachHome a abouti.
 +Journaux copiés vers /u01/app/oraInventory/logs.
 +
 +</code>
 +  * nettoyage des fichiers sur le FS 
 +<code BASH>
 +rm -Rf /u01/app/oracle/product/EnterpriseManager/oms_home/*
 +rm -Rf /u01/app/oracle/product/agent/agent_13.5.0.0.0/
 +</code>
 +  * valider qu'il n'y a plus de répertoire caché:
 +<code BASH>
 +ls -la /u01/app/oracle/product/EnterpriseManager/oms_home/
 +ls -la /u01/app/oracle/product/agent/
 +</code>
 +  * nettoyer la BDD
 +    * nettoyage des users
 +
 +<code PLSQL>
 +SQL> drop user sysman cascade;
 +SQL> drop user sysman_types cascade;
 +SQL> drop user sysman_stb cascade;
 +SQL> drop user sysman_opss cascade;
 +SQL> drop user sysman_biplatform cascade;
 +SQL> drop user sysman_bip cascade;
 +SQL> drop user sysmanupgr_opss cascade;
 +SQL> drop user sysman_apm cascade;
 +SQL> drop user sysman_ro cascade;
 +SQL> drop user sysman_mds cascade;
 +SQL> drop user cloud_engine_user cascade;
 +SQL> drop user cloud_swlib_user cascade;
 +SQL> drop user mgmt_view cascade;
 +SQL> drop user eus_engine_user cascade;
 +SQL> drop role mgmt_user;
 +</code>
 +
 +    * nettoyage des synonymes, si existants
 +<code PLSQL>
 +SQL> spool synonyms.lst
 +SQL> select owner,synonym_name from dba_synonyms where table_owner in ('SYSMAN', 'SYSMAN_MDS', 'MGMT_VIEW', 'SYSMAN_BIP', 'SYSMAN_APM', 'SYSMAN_OPSS', 'SYSMAN_RO', 'SYSMAN_BIPLATFORM', 'SYSMANUPGR_OPSS', 'CLOUD_ENGINE_USER', 'CLOUD_SWLIB_USER', 'EUS_ENGINE_USER', 'SYSMAN_TYPES', 'SYSMAN_STB') ;
 +SQL> spool off
 +SQL> @synonyms.lst
 +
 +SQL> DROP SYNONYM schema.synonym_name;
 +</code>
 +
 +    * supprimer les tablespaces
 +<code PLSQL>
 +SQL> drop tablespace MGMT_ECM_DEPOT_TS including contents and datafiles cascade constraints;
 +SQL> drop tablespace MGMT_TABLESPACE including contents and datafiles cascade constraints;
 +SQL> drop tablespace MGMT_AD4J_TS including contents and datafiles cascade constraints;
 +</code>
 +supprimer les entrées du registre
 +<code PLSQL>
 +SQL> delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Metadata Services';
 +SQL> delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Authorization Policy Manager';
 +SQL> delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Oracle Platform Security Services';
 +SQL> delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='OracleBI and EPM';
 +SQL> delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Service Table';
 +SQL> commit;
 +</code>
 + \\
 +
 +**__Reinstallation__**
 +
 +  * En root
 +<code BASH>
 +yum install langpacks-en
 +
 +sudo su - oracle
 +
 +locale
 +...
 +
 +localectl set-locale LANG=en_US.utf8
 +
 +locale
 +export LANG=en_US.utf8
 +export LC_ALL=en_US.utf8
 +export NLS_LANG=american_america.utf8
 +
 +
 +export ORACLE_HOSTNAME=oem1.labo.local
 +export CV_ASSUME_DISTID=OL8
 +export SOFTWARE_DIR=/u01/Downloads
 +export SOFTWARE_TEMPDIR=/u01/Downloads/tmp
 +export SOFTWARE_EM_InstallConfFiles=/u01/Downloads/EM_InstallConfFiles
 +
 +
 +cd $SOFTWARE_DIR
 +nohup ./em13500_linux64.bin -J-Djava.io.tmpdir=$SOFTWARE_TEMPDIR -silent -responseFile $SOFTWARE_EM_InstallConfFiles/new_install_oem1.rsp > /tmp/EnterpriseManager-install.log 2>&1 &
 + 
 +tail -f /tmp/EnterpriseManager-install.log 
 +</code>