Oracle Enterprise Manager Cloud Control 13c Release 4 补丁升级

本文描述Oracle Enterprise Manager Cloud Control 13c Release 4 补丁升级过程,主要包括WLS、 OMS以及agent组件的手动升级过程。

一、环境及软件准备
(一)运行环境

操作系统:Oracle Linux Server release 6.7,相当于centos6.7

vmware workstation 17 上导入VBox_EM13_4_0_0_Linux64.ova文件完成虚拟机安装,导入会提示不兼容问题,继续导入即可。启动虚拟机后有两个内核,选择Oracle Linux Server Red Hat Compatible Kernel (2.6.32-573.3.1.el6.x86_64)内核进行启动。如果选择Oracle Linux Server Unbreakable Enterprise Kernel (3.8.13-98.1.2.el6uek.x86_64),在vmware workstation环境中会死机。在Oracle VM VirtualBox中导入虚拟机,两个内核均可以正常使用。

(二)增加硬盘及数据迁移

安装后的虚拟机只有一个硬盘,容量80G,安装emcc(enterprise manager cloud control)13cR4后空间仅剩余12G,在补丁升级实践中,硬盘容量不足容易导致升级失败。为了保证升级顺利进行,添加一个100G的硬盘,BIOS中引导顺序放到启动硬盘之后。然后将原有emcc安装位置u01前移到新加的硬盘。

系统引导硬盘:/dev/sdb

新添加硬盘:   /dev/sda

1、将整个硬盘创建为一个linux分区/dev/sda1

# fdisk /dev/sda

2、创建ext4文件系统

# mkfs.ext4 /dev/sda1

3、挂载文件系统

# mkdir /u02

# mount /dev/sda1 /u02

4、迁移emcc数据

# chown  -R oracle.oinstall /u02

# cp -pR  /u01/*  /u02/

如果有无法迁移的文件,使用root用户进行前移

5、在/etc/fstab中挂载文件系统

#  mv  /u01 /u01bak

#  blkid  查询硬盘的UUID

#  vi  /etc/fstab 

将新加的硬盘挂载在/u01,并在系统启动时自动加载。

(三)上传升级的补丁文件

创建补丁文件存放目录

#  mkdir /u01/emup

上传补丁升级文件

由于补丁升级使用oracle用户安装,使用root用户上传文件后,需要再次修改文件权限

# chown -R  oracle.oinstall /u01/emup

二、升级Opatch、omspatcher及WLS
(一)升级opatch

以oracle用户登录进行升级

$ cd /u01/emup/
$ unzip p28186730_1394211_Generic.zip
Archive:  p28186730_1394211_Generic.zip
   creating: 6880880/
  inflating: 6880880/README.txt      
  inflating: 6880880/opatch_generic.jar  
  inflating: 6880880/version.txt     
$ cd 6880880/
$ /u01/OracleHomes/Middleware/OPatch/opatch version
OPatch Version: 13.9.4.2.2

OPatch succeeded.
$ /u01/OracleHomes/Middleware/oracle_common/jdk/bin/java -jar opatch_generic.jar -silent oracle_home=/u01/OracleHomes/Middleware
Launcher log file is /tmp/OraInstall2023-11-22_07-06-05AM/launcher2023-11-22_07-06-05AM.log.
Extracting the installer . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2194.916 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 6169 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (-d64 flag is not required)
Checking temp space: must be greater than 300 MB.   Actual 11224 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2023-11-22_07-06-05AM
Installation Summary


Disk Space : Required 43 MB, Available 36,845 MB

......

Saving the inventory glcm_common_logging_lib

 Component : glcm_encryption_lib

Saving the inventory glcm_common_lib

Saving the inventory glcm_encryption_lib

 Component : oracle.glcm.oplan.core.classpath

Saving the inventory oracle.glcm.oplan.core.classpath

The install operation completed successfully.

Logs successfully copied to /u01/app/oraInventory/logs.
$ /u01/OracleHomes/Middleware/OPatch/opatch version
OPatch Version: 13.9.4.2.11

OPatch succeeded.

(二)升级omspatcher

$ /u01/OracleHomes/Middleware/OMSPatcher/omspatcher version
OMSPatcher Version: 13.8.0.0.3
OPlan Version: 12.2.0.1.16
OsysModel build: Thu Oct 25 18:18:12 PDT 2018

OMSPatcher succeeded.
$ mv /u01/OracleHomes/Middleware/OMSPatcher/ /home/oracle/OMSPatcher_bak
$ cd /u01/emup
$ unzip p19999993_134000_Generic.zip
Archive:  p19999993_134000_Generic.zip
   creating: OMSPatcher/
  inflating: OMSPatcher/omspatcher.bat  
   creating: OMSPatcher/jlib/
  inflating: OMSPatcher/jlib/omspatcher.jar  mv OMSPatcher/ /u01/OracleHomes/Middleware/
  inflating: OMSPatcher/jlib/oracle.omspatcher.classpath.jar  
  inflating: OMSPatcher/jlib/oracle.omspatcher.classpath.unix.jar  
  inflating: OMSPatcher/jlib/oracle.omspatcher.classpath.windows.jar  
   creating: OMSPatcher/scripts/
   creating: OMSPatcher/scripts/oms/
   creating: OMSPatcher/scripts/oms/oms_child_scripts/
  inflating: OMSPatcher/scripts/oms/oms_child_scripts/omspatcher_jvm_discovery  
  inflating: OMSPatcher/scripts/oms/oms_child_scripts/omspatcher_jvm_discovery.bat  
  inflating: OMSPatcher/scripts/oms/oms_child_scripts/omspatcher_wls  
  inflating: OMSPatcher/scripts/oms/oms_child_scripts/omspatcher_wls.bat  
  inflating: OMSPatcher/scripts/oms/omspatcher  
  inflating: OMSPatcher/scripts/oms/omspatcher.bat  
   creating: OMSPatcher/wlskeys/
  inflating: OMSPatcher/wlskeys/createkeys.cmd  
  inflating: OMSPatcher/wlskeys/createkeys.sh  
  inflating: OMSPatcher/wlskeys/runCreateKeys.pl  
  inflating: OMSPatcher/wlskeys/storeKey.py  
  inflating: OMSPatcher/version.txt  
   creating: OMSPatcher/oms/
  inflating: OMSPatcher/oms/generateMultiOMSPatchingScripts.pl  
  inflating: OMSPatcher/omspatcher   
  inflating: readme.txt              
  inflating: PatchSearch.xml         
$ mv OMSPatcher/ /u01/OracleHomes/Middleware/
$ pwd
/u01/emup
$ /u01/OracleHomes/Middleware/OMSPatcher/omspatcher version
OMSPatcher Version: 13.9.4.8.0
OPlan Version: 12.2.0.1.16
OsysModel build: Thu Oct 25 18:18:12 PDT 2018

OMSPatcher succeeded.

(三)升级WLS

$ unzip p35247514_122130_Generic.zip
$ cd 35247514/
$ export ORACLE_HOME=/u01/OracleHomes/Middleware
$ export PATH=$ORACLE_HOME/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle/.local/bin:/home/oracle/bin
$ emctl stop oms -all
Oracle Enterprise Manager Cloud Control 13c Release 4  
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
Stopping Oracle Management Server...
WebTier Successfully Stopped
Node Manager Not Running
Oracle Management Server is Down
JVMD Engine is Down
BI Publisher Server is Down
$ emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 4  
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
WebTier is Down
Oracle Management Server is Down
JVMD Engine is Down
BI Publisher Server is Down

$ /u01/OracleHomes/Middleware/OPatch/opatch apply
Oracle Interim Patch Installer version 13.9.4.2.11
Copyright (c) 2023, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/OracleHomes/Middleware
Central Inventory : /u01/app/oraInventory
   from           : /u01/OracleHomes/Middleware/oraInst.loc
OPatch version    : 13.9.4.2.11
OUI version       : 13.9.4.0.0
Log file location : /u01/OracleHomes/Middleware/cfgtoollogs/opatch/opatch2023-11-21_03-53-26AM_1.log


OPatch detects the Middleware Home as "/u01/OracleHomes/Middleware"

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   35247514  

Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/OracleHomes/Middleware')


Is the local system ready for patching? [y|n]
yUser Responded with: Y
Backing up files...
Applying interim patch '35247514' to OH '/u01/OracleHomes/Middleware'
ApplySession: Optional component(s) [ oracle.fmwconfig.common.wls.shared, 12.2.1.3.0 ] , [ oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.yaml, 2.7.9.0.0 ] , [ oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.yaml, 2.7.9.0.0 ] , [ .

......

Patching component oracle.wls.core.app.server, 12.2.1.3.0...

Patching component oracle.mysqlconn, 5.1.22.0.0...

Patch 35247514 successfully applied.
Sub-set patch [30386660] has become inactive due to the application of a super-set patch [35247514].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/OracleHomes/Middleware/cfgtoollogs/opatch/opatch2023-11-21_03-53-26AM_1.log

OPatch succeeded.

$ /u01/OracleHomes/Middleware/OPatch/opatch lspatches |grep WLS
35247514;WLS PATCH SET UPDATE 12.2.1.3.230402

三、升级oms

$ export ORACLE_HOME=/u01/OracleHomes/Middleware
$ export PATH=$ORACLE_HOME/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle/.local/bin:/home/oracle/bin

$ emctl start oms

$ cd /u01/emup
$ unzip p35174911_134000_Generic.zip
$ cd 35174911/
$ /u01/OracleHomes/Middleware/OMSPatcher/omspatcher apply -analyze
OMSPatcher Automation Tool
Copyright (c) 2017, Oracle Corporation.  All rights reserved.


OMSPatcher version : 13.9.4.8.0
OUI version        : 13.9.4.0.0
Running from       : /u01/OracleHomes/Middleware
Log file location  : /u01/OracleHomes/Middleware/cfgtoollogs/omspatcher/opatch2023-11-21_04-24-52AM_1.log
OMSPatcher log file: /u01/OracleHomes/Middleware/cfgtoollogs/omspatcher/35174911/omspatcher_2023-11-21_04-25-08AM_analyze.log

Please enter OMS weblogic admin server URL(t3s://emcc.example.com:7102):> 
Please enter OMS weblogic admin server username(weblogic):> 
Please enter OMS weblogic admin server password:> 

Configuration Validation: Success


Running apply prerequisite checks for sub-patch(es) "34378999,32198970,34136697,34629730,33975669,35174208,35173890,33412695,34629745,35174586,35173914,34378982,34416288,35174220,31889317,34336705" and Oracle Home "/u01/OracleHomes/Middleware"...
Sub-patch(es) "34378999,32198970,34136697,34629730,33975669,35174208,35173890,33412695,34629745,35174586,35173914,34378982,34416288,35174220,31889317,34336705" are successfully analyzed for Oracle Home "/u01/OracleHomes/Middleware"

Complete Summary
================


All log file names referenced below can be accessed from the directory "/u01/OracleHomes/Middleware/cfgtoollogs/omspatcher/2023-11-21_04-24-52AM_SystemPatch_35174911_1"

Prerequisites analysis summary:
-------------------------------

The following sub-patch(es) are applicable:

             Featureset                                                                                                                                       Sub-patches                                                                                                                                                                            Log file
             ----------                                                                                                                                       -----------                                                                                                                                                                            --------
  oracle.sysman.top.oms   34378999,32198970,34136697,34629730,33975669,35174208,35173890,33412695,34629745,35174586,35173914,34378982,34416288,35174220,31889317,34336705   34378999,32198970,34136697,34629730,33975669,35174208,35173890,33412695,34629745,35174586,35173914,34378982,34416288,35174220,31889317,34336705_opatch2023-11-21_04-25-06AM_1.log

Log file location: /u01/OracleHomes/Middleware/cfgtoollogs/omspatcher/35174911/omspatcher_2023-11-21_04-25-08AM_analyze.log

OMSPatcher succeeded.

其中要输入weblogic的密码。

$ emctl stop oms

$ /u01/OracleHomes/Middleware/OMSPatcher/omspatcher apply
OMSPatcher Automation Tool
Copyright (c) 2017, Oracle Corporation.  All rights reserved.


OMSPatcher version : 13.9.4.8.0
OUI version        : 13.9.4.0.0
Running from       : /u01/OracleHomes/Middleware
Log file location  : /u01/OracleHomes/Middleware/cfgtoollogs/omspatcher/opatch2023-11-22_09-23-01AM_1.log

OMSPatcher log file: /u01/OracleHomes/Middleware/cfgtoollogs/omspatcher/35174911/omspatcher_2023-11-22_09-23-14AM_deploy.log

Please enter OMS weblogic admin server URL(t3s://emcc.example.com:7102):> 
Please enter OMS weblogic admin server username(weblogic):> 
Please enter OMS weblogic admin server password:> 

Configuration Validation: Success


Running apply prerequisite checks for sub-patch(es) "34378999,32198970,34136697,34629730,33975669,35174208,35173890,33412695,34629745,35174586,35173914,34378982,34416288,35174220,31889317,34336705" and Oracle Home "/u01/OracleHomes/Middleware"...
Sub-patch(es) "34378999,32198970,34136697,34629730,33975669,35174208,35173890,33412695,34629745,35174586,35173914,34378982,34416288,35174220,31889317,34336705" are successfully analyzed for Oracle Home "/u01/OracleHomes/Middleware"

To continue, OMSPatcher will do the following:
[Patch and deploy artifacts]   : Apply sub-patch(es) [ 31889317 32198970 33412695 33975669 34136697 34336705 34378982 34378999 34416288 34629730 34629745 35173890 35173914 35174208 35174220 35174586 ]
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/35173890_May_2_2023_12_38_08/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/34629745_Dec_20_2022_00_40_00/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/33975669_Apr_13_2022_03_21_21/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/34416288_Aug_24_2022_01_02_18/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/32198970_Feb_21_2021_06_39_36/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/34629730_Dec_20_2022_00_40_07/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/33412695_Nov_22_2021_06_10_03/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/35174220_May_2_2023_12_41_18/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/35174586_May_2_2023_12_41_36/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/35173914_May_2_2023_12_42_15/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/34378982_Aug_24_2022_01_02_37/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/34336705_Aug_24_2022_01_03_17/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/34378999_Aug_24_2022_01_03_19/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/31889317_Oct_15_2020_05_11_35/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/35174208_May_2_2023_12_41_09/original_patch";
                                 Apply RCU artifact with patch "/u01/OracleHomes/Middleware/.omspatcher_storage/34136697_Jun_13_2022_06_57_21/original_patch";
                                 Register MRS artifact "commands";
                                 Register MRS artifact "procedures";
                                 Register MRS artifact "swlib";
                                 Register MRS artifact "targetType";
                                 Register MRS artifact "storeTargetType";
                                 Register MRS artifact "default_collection";
                                 Register MRS artifact "omsPropertyDef";
                                 Register MRS artifact "jobTypes";
                                 Register MRS artifact "systemStencil";
                                 Register MRS artifact "gccompliance";
                                 Register MRS artifact "discovery";
                                 Register MRS artifact "OutOfBoxRole";
                                 Register MRS artifact "SecurityClassManager";
                                 Register MRS artifact "CredstoreMetadata";
                                 Register MRS artifact "assoc";
                                 Register MRS artifact "EcmMetadataOnlyRegistration";
                                 Register MRS artifact "OracleCertifiedTemplate";
                                 Register MRS artifact "TargetPrivilege";
                                 Register MRS artifact "derivedAssocs"


Do you want to proceed? [y|n]
y
User Responded with: Y

Applying sub-patch(es) "31889317,32198970,33412695,33975669,34136697,34336705,34378982,34378999,34416288,34629730,34629745,35173890,35173914,35174208,35174220,35174586"
Please monitor log file: /u01/OracleHomes/Middleware/cfgtoollogs/opatch/opatch2023-11-22_09-23-12AM_1.log


Updating repository with RCU reference file "/u01/OracleHomes/Middleware/.omspatcher_storage/35173890_May_2_2023_12_38_08/original_patch"

Updating repository with RCU reference file "/u01/OracleHomes/Middleware/.omspatcher_storage/34629745_Dec_20_2022_00_40_00/original_patch" for plugin home "/u01/OracleHomes/Middleware/plugins/oracle.sysman.vt.oms.plugin_13.4.1.0.0"

Updating repository with RCU reference file "/u01/OracleHomes/Middleware/.omspatcher_storage/33975669_Apr_13_2022_03_21_21/original_patch" for plugin home "/u01/OracleHomes/Middleware/plugins/oracle.sysman.emct.oms.plugin_13.4.1.0.0"

Updating repository with RCU reference file "/u01/OracleHomes/Middleware/.omspatcher_storage/34416288_Aug_24_2022_01_02_18/original_patch" for plugin home "/u01/OracleHomes/Middleware/plugins/oracle.sysman.am.oms.plugin_13.4.1.0.0"

Updating repository with RCU reference file "/u01/OracleHomes/Middleware/.omspatcher_storage/32198970_Feb_21_2021_06_39_36/original_patch" for plugin home "/u01/OracleHomes/Middleware/plugins/oracle.sysman.vi.oms.plugin_13.4.1.0.0"

Updating repository with RCU reference file "/u01/OracleHomes/Middleware/.omspatcher_storage/34629730_Dec_20_2022_00_40_07/original_patch" for plugin home "/u01/OracleHomes/Middleware/plugins/oracle.sysman.emas.oms.plugin_13.4.1.0.0"

Updating repository with RCU reference file "/u01/OracleHomes/Middleware/.omspatcher_storage/33412695_Nov_22_2021_06_10_03/original_patch" for plugin home "/u01/OracleHomes/Middleware/plugins/oracle.sysman.bda.oms.plugin_13.4.1.0.0"

Updating repository with RCU reference file "/u01/OracleHomes/Middleware/.omspatcher_storage/35174220_May_2_2023_12_41_18/original_patch" for plugin home "/u01/OracleHomes/Middleware/plugins/oracle.sysman.xa.oms.plugin_13.4.1.0.0"

Updating repository with RCU reference file "/u01/OracleHomes/Middleware/.omspatcher_storage/35174586_May_2_2023_12_41_36/original_patch" for plugin home "/u01/OracleHomes/Middleware/plugins/oracle.sysman.si.oms.plugin_13.4.1.0.0"

Updating repository with RCU reference file "/u01/OracleHomes/Middleware/.omspatcher_storage/35173914_May_2_2023_12_42_15/original_patch" for plugin home "/u01/OracleHomes/Middleware/plugins/oracle.sysman.db.oms.plugin_13.4.1.0.0"

......

Registering service "derivedAssocs" with register file "/u01/OracleHomes/Middleware/plugins/oracle.sysman.si.oms.plugin_13.4.1.0.0/metadata/derivedAssocs/storage/local_filesystems_assoc_rules.xml" for plugin id as "oracle.sysman.si"...
Please monitor log file: /u01/OracleHomes/Middleware/cfgtoollogs/omspatcher/2023-11-22_09-23-01AM_SystemPatch_35174911_1/emctl_register_derivedAssocs_2023-11-22_11-11-43AM.log


Registering service "derivedAssocs" with register file "/u01/OracleHomes/Middleware/plugins/oracle.sysman.db.oms.plugin_13.4.1.0.0/metadata/derivedAssocs/dg_assoc_rules.xml" for plugin id as "oracle.sysman.db"...
Please monitor log file: /u01/OracleHomes/Middleware/cfgtoollogs/omspatcher/2023-11-22_09-23-01AM_SystemPatch_35174911_1/emctl_register_derivedAssocs_2023-11-22_11-11-56AM.log


Complete Summary
================


All log file names referenced below can be accessed from the directory "/u01/OracleHomes/Middleware/cfgtoollogs/omspatcher/2023-11-22_09-23-01AM_SystemPatch_35174911_1"

Patching summary:
-----------------

Binaries of the following sub-patch(es) have been applied successfully:

                        Featureset                                                                                                                                       Sub-patches                                                                                                                                                                            Log file
                        ----------                                                                                                                                       -----------                                                                                                                                                                            --------
  oracle.sysman.top.oms_13.4.0.0.0   31889317,32198970,33412695,33975669,34136697,34336705,34378982,34378999,34416288,34629730,34629745,35173890,35173914,35174208,35174220,35174586   31889317,32198970,33412695,33975669,34136697,34336705,34378982,34378999,34416288,34629730,34629745,35173890,35173914,35174208,35174220,35174586_opatch2023-11-22_09-23-12AM_1.log

Deployment summary:
-------------------

The following artifact(s) have been successfully deployed:

                        Artifacts                                                               Log file
                        ---------                                                               --------
                              SQL                rcu_applypatch_original_patch_2023-11-22_09-57-45AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-04-09AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-04-52AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-06-01AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-06-46AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-07-29AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-08-09AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-08-54AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-09-44AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-10-31AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-11-37AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-12-29AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-13-26AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-14-25AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-15-28AM.log
                              SQL                rcu_applypatch_original_patch_2023-11-22_10-16-27AM.log
                     MRS-commands                      emctl_register_commands_2023-11-22_10-17-27AM.log
                     MRS-commands                      emctl_register_commands_2023-11-22_10-17-36AM.log
                     MRS-commands                      emctl_register_commands_2023-11-22_10-17-45AM.log
                   MRS-procedures                    emctl_register_procedures_2023-11-22_10-17-54AM.log
                   MRS-procedures                    emctl_register_procedures_2023-11-22_10-18-06AM.log
                   MRS-procedures                    emctl_register_procedures_2023-11-22_10-18-17AM.log
                   MRS-procedures                    emctl_register_procedures_2023-11-22_10-18-31AM.log
                   MRS-procedures                    emctl_register_procedures_2023-11-22_10-18-43AM.log
                   MRS-procedures                    emctl_register_procedures_2023-11-22_10-19-08AM.log
                   MRS-procedures                    emctl_register_procedures_2023-11-22_10-19-19AM.log
                   MRS-procedures                    emctl_register_procedures_2023-11-22_10-19-29AM.log
                        MRS-swlib                         emctl_register_swlib_2023-11-22_10-19-39AM.log
                        MRS-swlib                         emctl_register_swlib_2023-11-22_10-19-55AM.log
                        MRS-swlib                         emctl_register_swlib_2023-11-22_10-20-10AM.log
                        MRS-swlib                         emctl_register_swlib_2023-11-22_10-20-41AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-20-53AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-22-47AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-22-58AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-23-14AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-23-28AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-24-32AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-24-45AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-25-14AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-30-07AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-30-22AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-49-13AM.log
                   MRS-targetType                    emctl_register_targetType_2023-11-22_10-50-01AM.log
              MRS-storeTargetType               emctl_register_storeTargetType_2023-11-22_10-50-16AM.log
              MRS-storeTargetType               emctl_register_storeTargetType_2023-11-22_10-50-31AM.log
              MRS-storeTargetType               emctl_register_storeTargetType_2023-11-22_10-50-41AM.log
              MRS-storeTargetType               emctl_register_storeTargetType_2023-11-22_10-50-51AM.log
              MRS-storeTargetType               emctl_register_storeTargetType_2023-11-22_10-51-01AM.log
              MRS-storeTargetType               emctl_register_storeTargetType_2023-11-22_10-51-12AM.log
              MRS-storeTargetType               emctl_register_storeTargetType_2023-11-22_10-51-23AM.log
              MRS-storeTargetType               emctl_register_storeTargetType_2023-11-22_10-51-34AM.log
              MRS-storeTargetType               emctl_register_storeTargetType_2023-11-22_10-52-01AM.log
              MRS-storeTargetType               emctl_register_storeTargetType_2023-11-22_10-52-24AM.log
              MRS-storeTargetType               emctl_register_storeTargetType_2023-11-22_10-52-36AM.log
           MRS-default_collection            emctl_register_default_collection_2023-11-22_10-52-47AM.log
           MRS-default_collection            emctl_register_default_collection_2023-11-22_10-53-46AM.log
           MRS-default_collection            emctl_register_default_collection_2023-11-22_10-53-55AM.log
           MRS-default_collection            emctl_register_default_collection_2023-11-22_10-54-07AM.log
           MRS-default_collection            emctl_register_default_collection_2023-11-22_10-54-18AM.log
           MRS-default_collection            emctl_register_default_collection_2023-11-22_10-54-47AM.log
           MRS-default_collection            emctl_register_default_collection_2023-11-22_10-54-59AM.log
           MRS-default_collection            emctl_register_default_collection_2023-11-22_10-55-20AM.log
           MRS-default_collection            emctl_register_default_collection_2023-11-22_10-58-48AM.log
           MRS-default_collection            emctl_register_default_collection_2023-11-22_11-02-56AM.log
           MRS-default_collection            emctl_register_default_collection_2023-11-22_11-03-43AM.log
               MRS-omsPropertyDef                emctl_register_omsPropertyDef_2023-11-22_11-03-55AM.log
               MRS-omsPropertyDef                emctl_register_omsPropertyDef_2023-11-22_11-04-07AM.log
               MRS-omsPropertyDef                emctl_register_omsPropertyDef_2023-11-22_11-04-17AM.log
                     MRS-jobTypes                      emctl_register_jobTypes_2023-11-22_11-04-27AM.log
                     MRS-jobTypes                      emctl_register_jobTypes_2023-11-22_11-04-43AM.log
                     MRS-jobTypes                      emctl_register_jobTypes_2023-11-22_11-04-55AM.log
                     MRS-jobTypes                      emctl_register_jobTypes_2023-11-22_11-05-06AM.log
                     MRS-jobTypes                      emctl_register_jobTypes_2023-11-22_11-05-16AM.log
                     MRS-jobTypes                      emctl_register_jobTypes_2023-11-22_11-05-28AM.log
                     MRS-jobTypes                      emctl_register_jobTypes_2023-11-22_11-05-47AM.log
                     MRS-jobTypes                      emctl_register_jobTypes_2023-11-22_11-05-57AM.log
                MRS-systemStencil                 emctl_register_systemStencil_2023-11-22_11-06-07AM.log
                MRS-systemStencil                 emctl_register_systemStencil_2023-11-22_11-06-17AM.log
                MRS-systemStencil                 emctl_register_systemStencil_2023-11-22_11-06-26AM.log
                MRS-systemStencil                 emctl_register_systemStencil_2023-11-22_11-06-35AM.log
                MRS-systemStencil                 emctl_register_systemStencil_2023-11-22_11-06-44AM.log
                MRS-systemStencil                 emctl_register_systemStencil_2023-11-22_11-06-54AM.log
                MRS-systemStencil                 emctl_register_systemStencil_2023-11-22_11-07-04AM.log
                 MRS-gccompliance                  emctl_register_gccompliance_2023-11-22_11-07-14AM.log
                 MRS-gccompliance                  emctl_register_gccompliance_2023-11-22_11-08-42AM.log
                    MRS-discovery                     emctl_register_discovery_2023-11-22_11-09-02AM.log
                    MRS-discovery                     emctl_register_discovery_2023-11-22_11-09-11AM.log
                 MRS-OutOfBoxRole                  emctl_register_OutOfBoxRole_2023-11-22_11-09-21AM.log
         MRS-SecurityClassManager          emctl_register_SecurityClassManager_2023-11-22_11-09-31AM.log
         MRS-SecurityClassManager          emctl_register_SecurityClassManager_2023-11-22_11-09-40AM.log
            MRS-CredstoreMetadata             emctl_register_CredstoreMetadata_2023-11-22_11-09-50AM.log
                        MRS-assoc                         emctl_register_assoc_2023-11-22_11-09-59AM.log
                        MRS-assoc                         emctl_register_assoc_2023-11-22_11-10-10AM.log
  MRS-EcmMetadataOnlyRegistration   emctl_register_EcmMetadataOnlyRegistration_2023-11-22_11-10-19AM.log
  MRS-EcmMetadataOnlyRegistration   emctl_register_EcmMetadataOnlyRegistration_2023-11-22_11-10-30AM.log
  MRS-EcmMetadataOnlyRegistration   emctl_register_EcmMetadataOnlyRegistration_2023-11-22_11-10-40AM.log
  MRS-EcmMetadataOnlyRegistration   emctl_register_EcmMetadataOnlyRegistration_2023-11-22_11-10-53AM.log
      MRS-OracleCertifiedTemplate       emctl_register_OracleCertifiedTemplate_2023-11-22_11-11-03AM.log
              MRS-TargetPrivilege               emctl_register_TargetPrivilege_2023-11-22_11-11-14AM.log
              MRS-TargetPrivilege               emctl_register_TargetPrivilege_2023-11-22_11-11-22AM.log
                MRS-derivedAssocs                 emctl_register_derivedAssocs_2023-11-22_11-11-34AM.log
                MRS-derivedAssocs                 emctl_register_derivedAssocs_2023-11-22_11-11-43AM.log
                MRS-derivedAssocs                 emctl_register_derivedAssocs_2023-11-22_11-11-56AM.log


Log file location: /u01/OracleHomes/Middleware/cfgtoollogs/omspatcher/35174911/omspatcher_2023-11-22_09-23-14AM_deploy.log

OMSPatcher succeeded.
$ emctl start oms
Oracle Enterprise Manager Cloud Control 13c Release 4  
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
Starting Oracle Management Server...
WebTier Successfully Started
Oracle Management Server Successfully Started
Oracle Management Server is Up
JVMD Engine is Up
Starting BI Publisher Server ...
BI Publisher Server Already Started
BI Publisher Server is Up
You have new mail in /var/spool/mail/oracle
$ emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 4  
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
BI Publisher Server is Up
 

四、升级agent

$ export ORACLE_HOME=/u01/OracleHomes/agent/agent_13.4.0.0.0
$ export PATH=$ORACLE_HOME/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle/.local/bin:/home/oracle/bin
$ pwd
/u01/emup/34692141
$ cd 34692141/
$ emctl stop  agent
Oracle Enterprise Manager Cloud Control 13c Release 4  
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.
$ $ORACLE_HOME/OPatch/opatch apply
Oracle Interim Patch Installer version 13.9.4.2.2
Copyright (c) 2023, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/OracleHomes/agent/agent_13.4.0.0.0
Central Inventory : /u01/app/oraInventory
   from           : /u01/OracleHomes/agent/agent_13.4.0.0.0/oraInst.loc
OPatch version    : 13.9.4.2.2
OUI version       : 13.9.4.0.0
Log file location : /u01/OracleHomes/agent/agent_13.4.0.0.0/cfgtoollogs/opatch/opatch2023-11-22_21-23-18PM_1.log


OPatch detects the Middleware Home as "/u01/OracleHomes/agent/agent_13.4.0.0.0"

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   34692141  

Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Backing up files...
Applying interim patch '34692141' to OH '/u01/OracleHomes/agent/agent_13.4.0.0.0'

Patching component oracle.sysman.top.agent, 13.4.0.0.0...
Patch 34692141 successfully applied.
Log file location: /u01/OracleHomes/agent/agent_13.4.0.0.0/cfgtoollogs/opatch/opatch2023-11-22_21-23-18PM_1.log

OPatch succeeded.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值