0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

OracleEMCC13.4から13.5へのサイレント・アップグレードについて

Last updated at Posted at 2025-09-03

概要

Oracle Enterprise Manager Cloud Control13.4から13.5へのアップグレードですが、GUIで行う方法とサイレントで行う方法があります。今回は、サイレント・アップグレードで実施したのでまとめたいと思います。
アップグレード時にメモリエラーが発生したこともあり、対処法も記載します

環境

構成 バージョン
OS OEL-7.6.0
Oracle Management Service(以降 OMS) 13.4
Oracle Management Repository(以降 OMR) 19c

参考資料

事前作業

環境確認

まず、OMSサーバにログインして以下を確認します。

# OMSのバージョン確認
$ <OMS_HOME>/bin/emctl status oms -details
Oracle Enterprise Manager Cloud Control 13c Release 4
(省略)

# OMR接続情報の確認
$ <OMS_HOME>/bin/emctl config oms -list_repos_details
Repository Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<OMR_CLUSTER_NAME>)(PORT=99999)))(LOAD_BALANCE=ON)(CONNECT_DATA=(SERVICE_NAME=<OMR_SERVICE_NAME>)))

その後、OMRデータベースの確認を行います。

# OMRのデータベースを確認
$ sudo su - oracle
$ <GRID_HOME>/bin/crsctl stat res -w "( NAME coi <OMR_DB_NAME> )" -t

サイレント作業のためにレスポンスファイルの生成

メディアイメージのダウンロード

ダウンロードサイトから以下の5ファイルのメディアイメージをダウンロードします。
・em13500_linux64.bin
・em13500_linux64-[2-5].zip
※ zipは解凍不要です。そのまま利用します。

作業PCなどからOMSサーバにメディアイメージを転送します。

# 必要に応じでメディアイメージの配置
$ scp メディアイメージ <OMS_HOSTNAME>:.

OMSサーバにログインして以下の作業を実施していきます。

# レスポンスファイルの生成
$ mv メディアイメージ <INSTALL_MEDIA_PATH>
$ sudo chown -R oracle:oinstall <INSTALL_MEDIA_PATH>
$ sudo su - oracle
$ cd <INSTALL_MEDIA_PATH>
$ ./em13500_linux64.bin -getResponseFileTemplates -outputLoc <INSTALL_MEDIA_PATH>

# 以下のファイルが生成されます。
[oracle@emcc01]$ ls -l *.rsp
-rw-r----- 1 oracle oinstall  4718 Mar 17 17:36 emprereqkit_install.rsp
-rw-r----- 1 oracle oinstall  3769 Mar 17 17:45 emprereqkit_upgrade.rsp
-rw-r----- 1 oracle oinstall 17593 Mar 17 17:36 new_install.rsp
-rw-r----- 1 oracle oinstall  7144 Mar 17 17:36 softwareOnlyWithPlugins_install.rsp
-rw-r----- 1 oracle oinstall 11165 Mar 18 09:28 softwareOnlyWithPlugins_upgrade.rsp
-rw-r----- 1 oracle oinstall 15228 Mar 18 14:33 upgrade.rsp

アップグレードの前提条件チェックの実施OMSサーバ

レスポンスファイルの編集

emprereqkit_upgrade.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                                      ##
##                                                                ##
####################################################################
####################################################################
  
  
  
  
#------------------------------------------------------------------#
# Name        : RESPONSEFILE_VERSION
# Type        : string
# Description : Response file name.
#------------------------------------------------------------------#
RESPONSEFILE_VERSION=2.2.1.0.0
  
#------------------------------------------------------------------#
# Name        : UNIX_GROUP_NAME
# Type        : string
# Description : UNIX group name.
# Example     : UNIX_GROUP_NAME=dba
#------------------------------------------------------------------#
UNIX_GROUP_NAME=oinstall
  
#------------------------------------------------------------------#
# Name        : OLD_BASE_DIR
# Type        : string
# Description : Old middleware Home that you want to upgrade.This is applicable when ONE_SYSTEM=true.
#------------------------------------------------------------------#
OLD_BASE_DIR=<13.4_OMS_HOME>
  
#------------------------------------------------------------------#
# Name        : ONE_SYSTEM
# Type        : boolean
# Description : can be true or false. Setting this variable to true indicates
#               ONE_SYSTEM.Setting to false indicates "TWO_SYSTEM".
#------------------------------------------------------------------#
ONE_SYSTEM=true
  
#------------------------------------------------------------------#
# Name        : SYS_PASSWORD
# Type        : string
# Description : Password of DBA user used to create repository schema.
# Example     : SYS_PASSWORD=password
#------------------------------------------------------------------#
SYS_PASSWORD=(sysのパスワード)
  
#------------------------------------------------------------------#
# Name        : SYSMAN_PASSWORD
# Type        : string
# Description : Password for sysman user.
#------------------------------------------------------------------#
SYSMAN_PASSWORD=(sysmanのパスワード)
  
#------------------------------------------------------------------#
# Name        : b_upgrade
# Type        : boolean
# Description : To Specify whether it is Normal Install or Upgrade.
#------------------------------------------------------------------#
b_upgrade=true
  
#------------------------------------------------------------------#
# Name        : EM_INSTALL_TYPE
# Type        : string
# Description : Type of Grid Control install being performed.
#------------------------------------------------------------------#
EM_INSTALL_TYPE=NOSEED

前提条件チェックの実施

$ sudo su - oracle
$ cd <INSTALL_MEDIA_PATH>
$ ./em13500_linux64.bin EMPREREQ_KIT=true -silent -responseFile <INSTALL_MEDIA_PATH>/emprereqkit_upgrade.rsp -invPtrLoc <INST_LOC>/oraInst.loc
NGの例
[oracle@emcc01]$ ./em13500_linux64.bin EMPREREQ_KIT=true -silent -responseFile /home/oracle/work/em_13500/emprereqkit_upgrade.rsp -invPtrLoc /u01/oraInventory/oraInst.loc
Launcher log file is /tmp/OraInstall2025-01-23_01-49-31PM/launcher2025-01-23_01-49-31PM.log.
Extracting the installer . . . . . . . . . . . . . . . . . . . Done
Checking swap space: must be greater than 512 MB.   Actual 4095 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2025-01-23_01-49-31PM
Running EMPREREQ_KIT.
ScratchPathValue :/tmp/OraInstall2025-01-23_01-49-31PM
Jan 23, 2025 1:49:51 PM org.apache.sshd.common.io.DefaultIoServiceFactoryFactory getIoServiceProvider
INFO: No detected/configured IoServiceFactoryFactory using Nio2ServiceFactoryFactory
  
  
  
  
ERROR: There are some failed prereqs exist , Installer can not proceed further. Refer /tmp/OraInstall2025-01-23_01-49-31PM/prereqResultReport.html file for details.
  
  
  
The log(s) can be found here: /tmp/OraInstall2025-01-23_01-49-31PM.
ERROR: Installer execution failed (232).

prereqResultReport.htmlを参照するように案内があるため確認します。

以下のマニュアルを参照して「Warning」や「Failed」部分を対応していきます。

こちらに一部対応を紹介します

Check emkey is copied to the repositoryOMSサーバ

$ export OMS_HOME=<13.4_OMS_HOME>
$ $OMS_HOME/bin/emctl config emkey -copy_to_repos_from_file -repos_conndesc "\(DESCRIPTION=\(ADDRESS=\(PROTOCOL=TCP\)\(HOST=<OMR_CLUSTER_NAME>\)\(PORT=99999\)\)\(CONNECT_DATA=\(SERVICE_NAME=<OMR_SERVICE_NAME>\)\)\)" -repos_user sysman -emkey_file $OMS_HOME/sysman/config/emkey.ora
Oracle Enterprise Manager Cloud Control 13c Release 4 
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
Enter Admin User's Password : <ーー sysのパスワード
Enter Enterprise Manager Root (SYSMAN) Password : <ーー sysmanのパスワード
The EMKey has been copied to the Management Repository. This operation will cause the EMKey to become unsecure.
After the required operation has been completed, secure the EMKey by running "emctl config emkey -remove_from_repos".

Check if all adaptive features parameters are unsetOMRサーバ

SQL> alter system reset "_optimizer_nlj_hj_adaptive_join" scope=both sid='*';
SQL> alter system reset "_optimizer_strans_adaptive_pruning" scope=both sid='*';
SQL> alter system reset "_px_adaptive_dist_method" scope=both sid='*';
SQL> alter system reset "_sql_plan_directive_mgmt_control" scope=both sid='*';
SQL> alter system reset "_optimizer_dsdir_usage_control" scope=both sid='*';
SQL> alter system reset "_optimizer_use_feedback" scope=both sid='*';
SQL> alter system reset "_optimizer_gather_feedback" scope=both sid='*';
SQL> alter system reset "_optimizer_performance_feedback" scope=both sid='*';

Check the job_queue_processes instance parameter value.OMRサーバ

SQL> col JOBQUEUE for a10
SQL> select a.instance_name as sid, b.value as jobqueue from gv$instance a, gv$parameter b where a.inst_id = b.inst_id and b.name='job_queue_processes';
SQL> alter system set job_queue_processes=0 SID='*';
SQL> commit;
SQL> select l.id2 job, l.sid, to_char(last_date, 'DD-MON-YYYY:HH24.MI.SS') last_date, to_char(this_date, 'DD-MON-YYYY:HH24.MI.SS') this_date, l.inst_id instance from sys.job$ j, gv$lock l where l.type = 'JQ' and j.job (+) = l.id2 order by 5, 4;
SQL> select a.instance_name as sid, b.value as jobqueue from gv$instance a, gv$parameter b where a.inst_id = b.inst_id and b.name='job_queue_processes';

Check the CBO stats gathering jobOMRサーバ

SQL> BEGIN
   dbms_auto_task_admin.disable('auto optimizer stats collection', NULL, NULL);
END;/

再度、前提条件チェックの実施OMSサーバ

$ sudo su - oracle
$ cd <INSTALL_MEDIA_PATH>
$ ./em13500_linux64.bin EMPREREQ_KIT=true -silent -responseFile <INSTALL_MEDIA_PATH>/emprereqkit_upgrade.rsp -invPtrLoc <INST_LOC>/oraInst.loc
OKの例
[oracle@emcc01]$ ./em13500_linux64.bin EMPREREQ_KIT=true -silent -responseFile /home/oracle/work/em_13500/emprereqkit_upgrade.rsp -invPtrLoc /u01/app/oraInventory/oraInst.loc
Launcher log file is /tmp/OraInstall2025-01-23_05-37-42PM/launcher2025-01-23_05-37-42PM.log.
Extracting the installer . . . . . . . . . . . . . . . . . . . Done
Checking swap space: must be greater than 512 MB.   Actual 4095 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2025-01-23_05-37-42PM
Running EMPREREQ_KIT.
ScratchPathValue :/tmp/OraInstall2025-01-23_05-37-42PM
Jan 23, 2025 5:38:02 PM org.apache.sshd.common.io.DefaultIoServiceFactoryFactory getIoServiceProvider
INFO: No detected/configured IoServiceFactoryFactory using Nio2ServiceFactoryFactory
Unable to copy the logs to the permanent location: The permanent log directory is unknown (null)..
  
The log(s) can be found here: /tmp/OraInstall2025-01-23_05-37-42PM.
[oracle@emcc01]$

アップグレード対応OMSサーバ

監視のブラックアウト設定

OMSの停止が入るため、稼働しているEMCCにて監視しているホストやデータベースがある場合は、ブラックアウト対応を実施します。

バックアップ対応(15分程度)

バックアップのためOMSを停止します。

# OMSの停止
$ <13.4_OMS_HOME>/bin/emctl stop oms -all

# OMSのバックアップ
$ cp -pr /emcc/swlib <OMS_BACKUP_PATH>/.

OMRサーバにてバックアップします。OMRサーバ

RMANなどで適宜バックアップを実施します。

終わったらOMSを起動します。

# OMSの起動
$ <13.4_OMS_HOME>/bin/emctl start oms

ソフトウェアのみインストール(15分程度)OMSサーバ

レスポンスファイルの編集

softwareOnlyWithPlugins_upgrade.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                                      ##
##                                                                ##
####################################################################
####################################################################
  
  
  
  
#------------------------------------------------------------------#
# Name        : RESPONSEFILE_VERSION
# Type        : string
# Description : Response file version
#------------------------------------------------------------------#
RESPONSEFILE_VERSION=2.2.1.0.0
  
#------------------------------------------------------------------#
# Name        : UNIX_GROUP_NAME
# Type        : string
# Description : UNIX group name.
# Example     : UNIX_GROUP_NAME=dba
#------------------------------------------------------------------#
UNIX_GROUP_NAME=oinstall
  
#------------------------------------------------------------------#
# Name        : INSTALL_UPDATES_SELECTION
# Type        : string
# Description : Option 1. If you want to skip the software updates, provide
#               INSTALL_UPDATES_SELECTION="skip".
#               Option 2. If you have already downloaded the updates then provide
#               INSTALL_UPDATES_SELECTION="staged".
#               If you choose the Option 2 then make sure you also provide STAGE_LOCATION.
#------------------------------------------------------------------#
INSTALL_UPDATES_SELECTION=skip
  
#------------------------------------------------------------------#
# Name        : STAGE_LOCATION
# Type        : string
# Description : Stage location for software updates. It will be effected only when INSTALL_UPDATES_SELECTION is  set to "staged".
#               If you want to download the updates during the installation, make sure you provide
#               MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES and MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES
#               and set INSTALL_UPDATES_SELECTION="download".
#------------------------------------------------------------------#
# STAGE_LOCATION=<string>
  
#------------------------------------------------------------------#
# Name        : MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES
# Type        : string
# Description : Stage location for software updates. It will be effected only when INSTALL_UPDATES_SELECTION is  set to "staged".
#               If you want to download the updates during the installation, make sure you provide
#               MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES and MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES
#               and set INSTALL_UPDATES_SELECTION="download".
#------------------------------------------------------------------#
# MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES=<string>
  
#------------------------------------------------------------------#
# Name        : MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES
# Type        : string
# Description : Stage location for software updates. It will be effected only when INSTALL_UPDATES_SELECTION is  set to "staged".
#               If you want to download the updates during the installation, make sure you provide
#               MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES and MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES
#               and set INSTALL_UPDATES_SELECTION="download".
#------------------------------------------------------------------#
# MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES=<string>
  
#------------------------------------------------------------------#
# Name        : ORACLE_MIDDLEWARE_HOME_LOCATION
# Type        : string
# Description : Middleware home location.
#------------------------------------------------------------------#
ORACLE_MIDDLEWARE_HOME_LOCATION=<13.5_OMS_HOME>
  
#------------------------------------------------------------------#
# Name        : OLD_BASE_DIR
# Type        : string
# Description : Old middleware Home that you want to upgrade.This is applicable when ONE_SYSTEM=true.
#------------------------------------------------------------------#
OLD_BASE_DIR=<13.4_OMS_HOME>
  
#------------------------------------------------------------------#
# Name        : ORACLE_HOSTNAME
# Type        : string
# Description : Current Host name where the installer is invoked.
#               By default the fully qualified hostname of the machine will taken(without providing this value)
#               Value for this ORACLE_HOSTNAME has to be provided only if you want to configure with different hostname.
#------------------------------------------------------------------#
ORACLE_HOSTNAME=<OMS_HOSTNAME>
  
#------------------------------------------------------------------#
# Name        : SYS_PASSWORD
# Type        : string
# Description : Password of DBA user used to create repository schema.
# Example     : SYS_PASSWORD=password
#------------------------------------------------------------------#
SYS_PASSWORD=(sysのいつもの)
  
#------------------------------------------------------------------#
# Name        : SYSMAN_PASSWORD
# Type        : string
# Description : Password for sysman user.
#------------------------------------------------------------------#
SYSMAN_PASSWORD=(sysmanのいつもの)
  
#------------------------------------------------------------------#
# Name        : REPOSITORY_BACKUP_DONE
# Type        : boolean
# Description : Applicable for ONE_SYSTEM upgrade scenario from 10.2.0.5/11.1/12.1.0.1.0
#               /12.1.0.2.0/12.1.0.3.0  -> 12.1.0.4.0
#               As a prerequisite, you must back up the Management Repository before you start upgrading your Enterprise Manager system.
#               If you have already taken a backup, then set this parameter to TRUE. Otherwise,
#               take a backup immediately, then set this parameter to TRUE, and then proceed with the upgrade operation.
#------------------------------------------------------------------#
REPOSITORY_BACKUP_DONE=TRUE
  
#------------------------------------------------------------------#
# Name        : DISABLE_DDMP_JOBS
# Type        : boolean
# Description : If you have to stop the Enterprise Manager system
#               for postupgrade maintenance, then set this parameter to TRUE to disable the
#               DDMP jobs. If you do not plan to stop the Enterprise Manager system for
#               postupgrade maintenance, and hence do not want to disable the DDMP jobs, then
#               set this parameter to FALSE.
#------------------------------------------------------------------#
DISABLE_DDMP_JOBS=true
  
#------------------------------------------------------------------#
# Name        : EMPREREQ_AUTO_CORRECTION
# Type        : boolean
# Description : To Specify whether prereqs can be auto correct.
#------------------------------------------------------------------#
EMPREREQ_AUTO_CORRECTION=false
  
#------------------------------------------------------------------#
# Name        : Is_oneWaySSL
# Type        : string
# Description : Set true if Database is configured with One way SSL.
#------------------------------------------------------------------#
# Is_oneWaySSL=<string>
  
#------------------------------------------------------------------#
# Name        : TRUSTSTORE_LOCATION
# Type        : string
# Description : Absolute location of TrustStore Wallet file.
#------------------------------------------------------------------#
# TRUSTSTORE_LOCATION=<string>
  
#------------------------------------------------------------------#
# Name        : TRUSTSTORE_PASSWORD
# Type        : string
# Description : TrustStore Wallet Password
#------------------------------------------------------------------#
# TRUSTSTORE_PASSWORD=<string>
  
#------------------------------------------------------------------#
# Name        : Is_twoWaySSL
# Type        : string
# Description : Set true if Database is configured with Two way SSL.
#------------------------------------------------------------------#
# Is_twoWaySSL=<string>
  
#------------------------------------------------------------------#
# Name        : KEYSTORE_LOCATION
# Type        : string
# Description : Absolute location of KeyStore Wallet file.
#------------------------------------------------------------------#
# KEYSTORE_LOCATION=<string>
  
#------------------------------------------------------------------#
# Name        : KEYSTORE_PASSWORD
# Type        : string
# Description : KeyStore Wallet Password
#------------------------------------------------------------------#
# KEYSTORE_PASSWORD=<string>
  
#------------------------------------------------------------------#
# Name        : PLUGIN_SELECTION
# Type        : string
# Description : PLUGIN_SELECTION:(StringList)  List of new plug-ins to be deployed during install.
#               StringList contains list of strings and each string is PLUGIN_ID of that plugin.
#               (DVD)/Disk1/plugins has list of plugins that are shipped as part of DVD.
#               If you want to install 12.1.0.4.0_oracle.sysman.empa_2000_0.opar and 12.1.0.4.0_oracle.sysman.vt_2000_0.opar then
#               pass PLUGIN_SELECTION={"oracle.sysman.empa","oracle.sysman.vt"}
# Example     : PLUGIN_SELECTION={'oracle.sysman.empa','oracle.sysman.vt'}
#------------------------------------------------------------------#
PLUGIN_SELECTION={}
  
#------------------------------------------------------------------#
# Name        : b_upgrade
# Type        : boolean
# Description : To Specify it is Upgrade.
#------------------------------------------------------------------#
b_upgrade=true
  
#------------------------------------------------------------------#
# Name        : EM_INSTALL_TYPE
# Type        : string
# Description : Type of Grid Control install being performed.
#------------------------------------------------------------------#
EM_INSTALL_TYPE=NOSEED
  
#------------------------------------------------------------------#
# Name        : CONFIGURATION_TYPE
# Type        : string
# Description : Value will be "LATER".
#------------------------------------------------------------------#
CONFIGURATION_TYPE=LATER

インストール

$ sudo su - oracle
$ cd <INSTALL_MEDIA_PATH>
$ ./em13500_linux64.bin -silent -responseFile <INSTALL_MEDIA_PATH>/softwareOnlyWithPlugins_upgrade.rsp -invPtrLoc <INST_LOC>/oraInst.loc
実行時のログ
[oracle@emcc01]$ ./em13500_linux64.bin -silent -responseFile /home/oracle/work/
/em_13500/softwareOnlyWithPlugins_upgrade.rsp -invPtrLoc /u01/app/oraInventory/oraInst.loc
Launcher log file is /tmp/OraInstall2025-03-18_01-55-48PM/launcher2025-03-18_01-55-48PM.log.
Extracting the installer . . . . . . . . . . . . . . . . Done
Checking swap space: must be greater than 512 MB.   Actual 4095 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2025-03-18_01-55-48PM
ScratchPathValue :/tmp/OraInstall2025-03-18_01-55-48PM
Mar 18, 2025 1:56:04 PM org.apache.sshd.common.io.DefaultIoServiceFactoryFactory getIoServiceProvider
INFO: No detected/configured IoServiceFactoryFactory using Nio2ServiceFactoryFactory

*****(省略)*****

Saving inventory (Tuesday, March 18, 2025 1:59:27 PM JST)
Saving inventory complete

End of install phases.(Tuesday, March 18, 2025 1:59:29 PM JST)
.Prompt for the allroot.sh

Warning: You must run the following configuration scripts as the "root" user.
  /u01/base/app/middleware/em13.5/allroot.sh
To execute the configuration scripts:
 1. Open a new  terminal window.
 2. Login in as "root".
 3. Run the scripts.

Successfully installed Enterprise Manager Cloud Control.
Logs successfully copied to /u01/app/oraInventory/logs.

別ターミナルで実施

$ sudo su -
# <13.5_OMS_HOME>/allroot.sh

構成のアップグレードOMSサーバ

メモリ変更対応

マニュアルに記載はありませんが、いくつかフェーズにおいてjava.lang.OutOfMemoryErrorが発生したため以下の対応を実施しました。

$ vi <13.5_OMS_HOME>/sysman/install/ConfigureGC.sh
=======
INSTALLER_JAVA_OPTIONS="-mx1024m -Doracle.installer.appendjre=true"
↓
INSTALLER_JAVA_OPTIONS="-Xms2048m -Xmx8192m -Doracle.installer.appendjre=true"
=======
 
$ vi <13.5_OMS_HOME>/bin/omsca
=======
${JAVA_HOME}/bin/java  $JAVAMODE -classpath・・・
↓
${JAVA_HOME}/bin/java  $JAVAMODE -Xms2048m -Xmx8192m -classpath・・・
=======
 
※ 13.5のパスではないが問題ない
$ <13.4_OMS_HOME>/bin/emctl get property -name JAVA_EM_ARGS
$ <13.4_OMS_HOME>/bin/emctl set property -name JAVA_EM_ARGS -value "-XX:ReservedCodeCacheSize=1024M"
$ <13.4_OMS_HOME>/bin/emctl get property -name JAVA_EM_ARGS

レスポンスファイルの編集

upgrade.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                                      ##
##                                                                ##
####################################################################
####################################################################
  
  
  
  
#------------------------------------------------------------------#
# Name        : RESPONSEFILE_VERSION
# Type        : string
# Description : Response file name.
#------------------------------------------------------------------#
RESPONSEFILE_VERSION=2.2.1.0.0
  
#------------------------------------------------------------------#
# Name        : UNIX_GROUP_NAME
# Type        : string
# Description : UNIX group name.
# Example     : UNIX_GROUP_NAME=dba
#------------------------------------------------------------------#
UNIX_GROUP_NAME=oinstall
  
#------------------------------------------------------------------#
# Name        : INVENTORY_LOCATION
# Type        : string
# Description : Inventory location.
# Example     : INVENTORY_LOCATION=/scratch/oracle/oraInventory
#------------------------------------------------------------------#
INVENTORY_LOCATION=<INST_LOC>
  
#------------------------------------------------------------------#
# Name        : INSTALL_UPDATES_SELECTION
# Type        : string
# Description : (String)
#               Option 1. If you want to skip the software updates, provide
#               INSTALL_UPDATES_SELECTION="skip".
#               Option 2. If you have already downloaded the updates then provide
#               INSTALL_UPDATES_SELECTION="staged".
#               If you choose the Option 2 then make sure you also provide STAGE_LOCATION.
#------------------------------------------------------------------#
INSTALL_UPDATES_SELECTION=skip
  
#------------------------------------------------------------------#
# Name        : STAGE_LOCATION
# Type        : string
# Description : Stage location for software updates. It will be effected only when INSTALL_UPDATES_SELECTION is  set to "staged".
#               If you want to download the updates during the installation, make sure you
#               provide MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES and MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES.
#               and set INSTALL_UPDATES_SELECTION="download".
#------------------------------------------------------------------#
#STAGE_LOCATION=<string>
  
#------------------------------------------------------------------#
# Name        : MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES
# Type        : string
# Description : If you want to download the updates during the installation, make sure you
#               provide MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES and MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES.
#               and set INSTALL_UPDATES_SELECTION="download".
#------------------------------------------------------------------#
#MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES=<string>
  
#------------------------------------------------------------------#
# Name        : MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES
# Type        : string
# Description : If you want to download the updates during the installation, make sure you
#               provide MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES and MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES.
#               and set INSTALL_UPDATES_SELECTION="download".
#------------------------------------------------------------------#
#MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES=<string>
  
#------------------------------------------------------------------#
# Name        : ORACLE_MIDDLEWARE_HOME_LOCATION
# Type        : string
# Description : Oms ,oracle_common ,Oracle_WT Oracle Homes will be created under
#               this specified ORACLE_MIDDLEWARE_HOME_LOCATION.
#------------------------------------------------------------------#
ORACLE_MIDDLEWARE_HOME_LOCATION="<13.5_OMS_HOME>"
  
#------------------------------------------------------------------#
# Name        : ORACLE_INSTANCE_HOME_LOCATION
# Type        : string
# Description : Oracle Instance home location.
#------------------------------------------------------------------#
ORACLE_INSTANCE_HOME_LOCATION="<GC_HOME>"
  
#------------------------------------------------------------------#
# Name        : OLD_BASE_DIR
# Type        : string
# Description : Old middleware Home that you want to upgrade.This is applicable when ONE_SYSTEM=true.
#------------------------------------------------------------------#
OLD_BASE_DIR="<13.4_OMS_HOME>"
  
#------------------------------------------------------------------#
# Name        : ORACLE_HOSTNAME
# Type        : string
# Description : Current Host name where the installer is invoked.
#               this value may be provided only for TWO_SYSTEM Upgrade. This value should not be passed for ONE_SYSTEM upgrade.
#               By default the fully qualified hostname of the machine will taken(without providing this value)
#               Value for this ORACLE_HOSTNAME has to be provided only if you want to configure with different hostname.
#------------------------------------------------------------------#
ORACLE_HOSTNAME=<OMS_HOSTNAME>
  
#------------------------------------------------------------------#
# Name        : ONE_SYSTEM
# Type        : boolean
# Description : can be true or false. Setting this variable to true indicates
#               ONE_SYSTEM.Setting to false indicates "TWO_SYSTEM".
#------------------------------------------------------------------#
ONE_SYSTEM=true
  
#------------------------------------------------------------------#
# Name        : AGENT_BASE_DIR
# Type        : string
# Description : Applicable for ONE_SYSTEM=false
#               Agent home location where agent will be installed.
#------------------------------------------------------------------#
#AGENT_BASE_DIR=<string>
  
#------------------------------------------------------------------#
# Name        : OLD_DATABASE_CONNECTION_DESCRIPTION
# Type        : string
# Description : Provide value for below variable when old repository connect descriptor is not updated
#               through Pre-upgrade console. This is applicable for Two-System upgrade. i.e, ONE_SYSTEM=false.
#               OLD_DATABASE_CONNECTION_DESCRIPTION:(String) Old Repository Connect Descriptor.
#------------------------------------------------------------------#
#OLD_DATABASE_CONNECTION_DESCRIPTION=<string>
  
#------------------------------------------------------------------#
# Name        : OLD_DATABASE_SYSMAN_PASSWORD
# Type        : string
# Description : Old Repository SYSMAN password required only for TWO_SYSTEM system upgrade.
#------------------------------------------------------------------#
#OLD_DATABASE_SYSMAN_PASSWORD=<string>
  
#------------------------------------------------------------------#
# Name        : WLS_ADMIN_SERVER_USERNAME
# Type        : string
# Description : Weblogic server user name.
#------------------------------------------------------------------#
#WLS_ADMIN_SERVER_USERNAME=<string>
  
#------------------------------------------------------------------#
# Name        : WLS_ADMIN_SERVER_PASSWORD
# Type        : string
# Description : Weblogic admin server password and confirm password.
#------------------------------------------------------------------#
WLS_ADMIN_SERVER_PASSWORD=(sysmanのパスワード)
  
#------------------------------------------------------------------#
# Name        : WLS_ADMIN_SERVER_CONFIRM_PASSWORD
# Type        : string
# Description : Weblogic admin server password and confirm password.
#------------------------------------------------------------------#
WLS_ADMIN_SERVER_CONFIRM_PASSWORD=(sysmanのパスワード)
  
#------------------------------------------------------------------#
# Name        : NODE_MANAGER_PASSWORD
# Type        : string
# Description : Node Manager Password and Node Manager Confirm Password.
#------------------------------------------------------------------#
NODE_MANAGER_PASSWORD=(sysmanのパスワード)
  
#------------------------------------------------------------------#
# Name        : NODE_MANAGER_CONFIRM_PASSWORD
# Type        : string
# Description : Node Manager Password and Node Manager Confirm Password.
#------------------------------------------------------------------#
NODE_MANAGER_CONFIRM_PASSWORD=(sysmanのパスワード)
  
#------------------------------------------------------------------#
# Name        : WLS_ADMIN_SERVER_PASSWORD
# Type        : string
# Description : Weblogic admin server password.
#------------------------------------------------------------------#
WLS_ADMIN_SERVER_PASSWORD=(sysmanのパスワード)
  
#------------------------------------------------------------------#
# Name        : JVM_DIAGNOSTICS_TABLESPACE_LOCATION
# Type        : string
# Description : Applicable for both ONE_SYSTEM and TWO_SYSTEM upgrade scenario from 10.2.0.5 -> 12.1.0.4.0
#               JVM table space location.
#------------------------------------------------------------------#
JVM_DIAGNOSTICS_TABLESPACE_LOCATION=+DATA/mgmt_deepdive.dbf
  
#------------------------------------------------------------------#
# Name        : DATABASE_HOSTNAME
# Type        : string
# Description : Hostname of the Repository database.
# Example     : DATABASE_HOSTNAME=hostname.domain.com
#------------------------------------------------------------------#
DATABASE_HOSTNAME=<OMR_CLUSTER_NAME>
  
#------------------------------------------------------------------#
# Name        : LISTENER_PORT
# Type        : string
# Description : Port on which the Repository database is running.
# Example     : LISTENER_PORT=1521
#------------------------------------------------------------------#
LISTENER_PORT=99999
  
#------------------------------------------------------------------#
# Name        : SERVICENAME_OR_SID
# Type        : string
# Description : SID or Service name  of the Repository database.
# Example     : SERVICENAME_OR_SID=emrep
#------------------------------------------------------------------#
SERVICENAME_OR_SID=<OMR_SERVICE_NAME>
  
#------------------------------------------------------------------#
# Name        : SYS_PASSWORD
# Type        : string
# Description : Password of DBA user used to create repository schema.
# Example     : SYS_PASSWORD=password
#------------------------------------------------------------------#
SYS_PASSWORD=(sysのパスワード)
  
#------------------------------------------------------------------#
# Name        : SYSMAN_PASSWORD
# Type        : string
# Description : Password for sysman user.
#------------------------------------------------------------------#
SYSMAN_PASSWORD=(sysmanのパスワード)
  
#------------------------------------------------------------------#
# Name        : EMPREREQ_AUTO_CORRECTION
# Type        : boolean
# Description : To Specify whether prereqs can be auto correct.
#------------------------------------------------------------------#
EMPREREQ_AUTO_CORRECTION=false
  
#------------------------------------------------------------------#
# Name        : Is_oneWaySSL
# Type        : string
# Description : Set true if Database is configured with One way SSL.
#------------------------------------------------------------------#
#Is_oneWaySSL=<string>
  
#------------------------------------------------------------------#
# Name        : TRUSTSTORE_LOCATION
# Type        : string
# Description : Absolute location of TrustStore Wallet file.
#------------------------------------------------------------------#
#TRUSTSTORE_LOCATION=<string>
  
#------------------------------------------------------------------#
# Name        : TRUSTSTORE_PASSWORD
# Type        : string
# Description : TrustStore Wallet Password
#------------------------------------------------------------------#
#TRUSTSTORE_PASSWORD=<string>
  
#------------------------------------------------------------------#
# Name        : REPOSITORY_BACKUP_DONE
# Type        : boolean
# Description : Applicable for ONE_SYSTEM upgrade scenario from 10.2.0.5/11.1/12.1.0.1.0
#               /12.1.0.2.0/12.1.0.3.0  -> 12.1.0.4.0
#               As a prerequisite, you must back up the Management Repository before you start upgrading your Enterprise Manager system.
#               If you have already taken a backup, then set this parameter to TRUE. Otherwise,
#               take a backup immediately, then set this parameter to TRUE, and then proceed with the upgrade operation.
#------------------------------------------------------------------#
REPOSITORY_BACKUP_DONE=TRUE
  
#------------------------------------------------------------------#
# Name        : PLUGIN_SELECTION
# Type        : string
# Description : PLUGIN_SELECTION:(StringList)  List of new plug-ins to be deployed during upgrade.
#               All plug-ins deployed to the old Enterprise Manager system will be automatically
#               upgraded/migrated based on the  availability of newer version of plug-in software.
#               StringList contains list of strings and each string is PLUGIN_ID of that plugin.
#               (DVD)/Disk1/plugins has list of plugins that are shipped as part of DVD.
#               If you want to install 12.1.0.4.0_oracle.sysman.empa_2000_0.opar and 12.1.0.4.0_oracle.sysman.vt_2000_0.opar then
#               pass PLUGIN_SELECTION={"oracle.sysman.empa","oracle.sysman.vt"}
# Example     : PLUGIN_SELECTION={'oracle.sysman.empa','oracle.sysman.vt'}
#------------------------------------------------------------------#
PLUGIN_SELECTION={}
  
#------------------------------------------------------------------#
# Name        : b_upgrade
# Type        : boolean
# Description : To Specify whether it is Normal Install or Upgrade.
#------------------------------------------------------------------#
b_upgrade=true
  
#------------------------------------------------------------------#
# Name        : EM_INSTALL_TYPE
# Type        : string
# Description : Type of Grid Control install being performed.
#------------------------------------------------------------------#
EM_INSTALL_TYPE=NOSEED

構成のアップグレード(1時間程度OMSが停止します)

$ nouhp <13.5_OMS_HOME>/sysman/install/ConfigureGC.sh -silent -responseFile <INSTALL_MEDIA_PATH>/upgrade.rsp -invPtrLoc <INST_LOC>/oraInst.loc &
実行ログ
[oracle@emcc01]$ nohup /u01/base/app/middleware/em13.5/sysman/install/ConfigureGC.sh -silent -responseFile /home/oracle/work/em_13500/upgrade.rsp -invPtrLoc /u01/app/oraInventory/oraInst.loc &
[1] 13558

[oracle@emcc01]$ cat nohup.out
ScratchPathValue :/u01/base/app/middleware/em13.5
*************************************
Error Messages:
----------------------------------------------------
* Invalid option(s): sourceLoc
Mar 18, 2025 2:37:25 PM org.apache.sshd.common.io.DefaultIoServiceFactoryFactory getIoServiceProvider
INFO: No detected/configured IoServiceFactoryFactory using Nio2ServiceFactoryFactory
13NGCHEKAGGREGATE  : oracle.sysman.top.oms
13NGCHEKAGGREGATE  : encap_oms
13NGCHEKAGGREGATE  : OuiConfigVariables
2025-03-18_02-37-49PM: Configuration Assistant "Upgrade Prerequisite Check" is in progress.

Stopping the Admin Server ...: /u01/base/app/middleware/bin/emctl stop oms -all

*****(省略)*****

Export config of OMS is successful.

java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at oracle.sysman.oms.JVMDWrapper.initClassLoader(JVMDWrapper.java:128)
	at oracle.sysman.oms.JVMDWrapper.getJVMDWrapper(JVMDWrapper.java:49)
	at oracle.sysman.oms.StartOMS.checkForLoadBalancer(StartOMS.java:369)
	at oracle.sysman.oms.StartOMS.perform(StartOMS.java:80)
	at oracle.sysman.oms.BaseConfiguration.invoke(BaseConfiguration.java:211)
	at oracle.sysman.emCfg.core.PerformMicroStep.runJavaClass(PerformMicroStep.java:540)
	at oracle.sysman.emCfg.core.PerformMicroStep.executeMicroStep(PerformMicroStep.java:120)
	at oracle.sysman.emCfg.core.ActionPerformer.performMicroStep(ActionPerformer.java:917)
	at oracle.sysman.emCfg.core.ActionPerformer$Performer.run(ActionPerformer.java:1038)
log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by 
log4j:ERROR [java.net.URLClassLoader@5ca2c971] whereas object of type 
log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by [sun.misc.Launcher$AppClassLoader@75b84c92].
log4j:ERROR Could not instantiate appender named "logAppender".
log4j:WARN No appenders could be found for logger (emctl.secure.oms.AdminCredsWalletUtil).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Detaching the old OMS home from the central inventory.

detachHome was successful.
Detached the old Home from Central Inventory

2025-03-18_03-21-50PM: Configuration Assistant "Start Oracle Management Service" has Succeeded.

*** The Installation was Successful. ***


This information is also available at: 

	/u01/base/app/middleware/em13.5//install/setupinfo.txt

See the following for information pertaining to your Enterprise Manager installation:


Use the following URL to access:

	1. Enterprise Manager Cloud Control URL: https://emcc01.test.co.jp:7803/em
	2. Admin Server URL: https://emcc01.test.co.jp:7102/console

The following details need to be provided while installing an additional OMS:

	1. Admin Server Host Name: emcc01.test.co.jp
	2. Admin Server Port: 7102

 A backup of the OMS configuration is available in /u01/base/app/gc_inst135/em/EMGC_OMS1/sysman/backup on host emcc01.test.co.jp. See Cloud Control Administrators Guide for details on how to back up and recover an OMS.

 NOTE: This backup is valid only for the initial OMS configuration. For example, it will not reflect plug-ins installed later, topology changes like the addition of a load balancer, or changes to other properties made using emctl or emcli. Backups should be created on a regular basis to ensure they capture the current OMS configuration. Use the following command to backup the OMS configuration:
/u01/base/app/middleware/em13.5//bin/emctl exportconfig oms -dir <backup dir> 

Prompt for the allroot.sh

※ClassNotFoundExceptionは発生してますが、log4j関連のようなので無視可能と判断しました。

別ターミナルで実施

$ sudo su -
# <13.5_OMS_HOME>/allroot.sh

OMSのバージョン確認

$ <13.5_OMS_HOME>/bin/emctl status oms -details
Oracle Enterprise Manager Cloud Control 13c Release 5
(省略)

監視のブラックアウト解除OMSサーバ

最後にブラックアウト設定を解除します。

まとめ

・OMSの停止時間はバックアップ時の停止も含めて75分程度でした。
・停止時間を短くしたいため、ソフトウェアのインストールとアップグレードをわけた手順にしましたが、インストールにはそこまで時間がかからなかったため、同時に実行でも良かったのかもしれません。
・アップグレード時にOutOfMemoryErrorで失敗しましたがバックアップから戻す必要はなく、再実行のみで問題ありませんでした。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?