Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
321 views6 pages

OEM 13c Patching Guide

The document outlines the steps for applying, checking, and rolling back patches for Oracle Management Service and Oracle Management Agent. It includes commands for backing up databases, using the OMSPatcher for patch installation, and managing JDBC patches. Additionally, it provides instructions for both manual and Cloud Control UI patch applications, as well as prerequisites and cleanup processes.

Uploaded by

oracle.pratham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
321 views6 pages

OEM 13c Patching Guide

The document outlines the steps for applying, checking, and rolling back patches for Oracle Management Service and Oracle Management Agent. It includes commands for backing up databases, using the OMSPatcher for patch installation, and managing JDBC patches. Additionally, it provides instructions for both manual and Cloud Control UI patch applications, as well as prerequisites and cleanup processes.

Uploaded by

oracle.pratham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

-- Oracle Management Service Patch --

-- Oracle Management Service Patch

-- Backup

export ORACLE_SID=oemdb
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH

rman target /

RUN {
BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG;
}
=======================================================================
-- OMSPatcher

export ORACLE_HOME=/u01/app/oracle/middleware
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OMSPatcher:$PATH

$ORACLE_HOME/OMSPatcher/omspatcher version

mv $ORACLE_HOME/OMSPatcher $ORACLE_HOME/OMSPatcher_backup

cd /u01/patches/

unzip -q /u01/patches/p19999993_135000_Generic.zip -d $ORACLE_HOME

$ORACLE_HOME/OMSPatcher/omspatcher version
=======================================================================
-- DB Patch Checks

COL action_time FORMAT A30


COL patch_id FORMAT 99999999
COL action FORMAT A10
COL status FORMAT A20
COL description FORMAT A60

SELECT action_time, patch_id, action, status, description


FROM dba_registry_sqlpatch
ORDER BY action_time DESC;
=======================================================================
-- JDBC Patches

export ORACLE_HOME=/u01/app/oracle/middleware
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OMSPatcher:$PATH
-- Oracle Management Service Patch --

$ORACLE_HOME/OPatch/opatch lspatches

Apply the Required JDBC Patches


Download from My Oracle Support (MOS):

Patch 35430934

Patch 34153238

Patch 31657681

export ORACLE_HOME=/u01/app/oracle/middleware
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OMSPatcher:$PATH

cd /u01/patches/

unzip -q p31657681_191000_Generic.zip
unzip -q p34153238_122140_Generic.zip
unzip -q p35430934_122140_Generic.zip

cd /u01/patches/31657681
$ORACLE_HOME/OPatch/opatch apply

cd /u01/patches/34153238
$ORACLE_HOME/OPatch/opatch apply

cd /u01/patches/35430934
$ORACLE_HOME/OPatch/opatch apply
=======================================================================
-- Last Check

export ORACLE_HOME=/u01/app/oracle/middleware
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OMSPatcher:$PATH

$ORACLE_HOME/OPatch/opatch lspatches
$ORACLE_HOME/OMSPatcher/omspatcher version
=======================================================================
-- Installing with Traditional Patching

export ORACLE_HOME=/u01/app/oracle/middleware
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OMSPatcher:$PATH

emctl stop oms

cd /u01/patches

unzip -q p37784425_135000_Generic.zip
-- Oracle Management Service Patch --

cd /u01/patches/37784425

omspatcher apply

emcli sync
=======================================================================
-- Installing with Rapid Platform Update, Faster method, less downtime

export ORACLE_HOME=/u01/app/oracle/middleware
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OMSPatcher:$PATH

cd /u01/patches

unzip -q p37784425_135000_Generic.zip

cd /u01/patches/37784425

omspatcher deploy
OR
omspatcher deploy OMSPatcher.OMS_DISABLE_HOST_CHECK=true

Please enter OMS weblogic admin server URL :>


Please enter OMS weblogic admin server username:
Please enter OMS weblogic admin server password:

Enter DB user name:


Enter 'sys' password:

omspatcher update

Please enter OMS weblogic admin server URL :>


Please enter OMS weblogic admin server username:
Please enter OMS weblogic admin server password:

Enter DB user name:


Enter 'sys' password:

/u01/app/oracle/agent/agent_13.5.0.0.0/bin/emctl status agent


/u01/app/oracle/agent/agent_13.5.0.0.0/bin/emctl start agent

/u01/app/oracle/middleware/bin/emctl status oms -details


/u01/app/oracle/middleware/bin/emctl start oms

emcli login -username=sysman

emcli sync
emcli list_targets
emcli get_targets
-- Oracle Management Service Patch --

=======================================================================
-- Removing (De-Installing) the Patch

emctl stop oms

omspatcher rollback -id 37437845,36752903,... (list continues)

emctl start oms

emcli sync
=======================================================================
-- Delete Inactive Patch

export ORACLE_HOME=/u01/app/oracle/middleware
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OMSPatcher:$PATH

$ORACLE_HOME/OPatch/opatch lspatches

$ORACLE_HOME/OPatch/opatch util cleanup


=======================================================================
-- Oracle Management Agent Patch

-- Completely Clean Oracle Agent from a Machine

1. Stop the Agent (if running)


/u01/app/oracle/agent/agent_inst/bin/emctl stop agent

2. Decommission Agent
Setup > Manage Cloud Control > Agents

-- PREREQUISITES (Before You Start)

> OMS patch 37784425 must be applied before applying this patch
-- Oracle Management Service Patch --

> Oracle Management Agent version must be 13.5.0.0


> AgentPatcher version must be 13.9.5.10.0 or later
> Environment variables must be set:

export ORACLE_HOME=/your/path/agent_13.5.0.0.0
export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/AgentPatcher
=======================================================================
-- OPTION 1: APPLY PATCH USING CLOUD CONTROL UI

Upload the Oracle® Enterprise Manager 13c Release 5 Update 27 (13.5.0.27) for Oracle Management
Agent
Enterprise Menu > Patching and Provisioning > Saved Patches
Upload Catalog
Setup > Patching and Provisioning > Patches and Updates
Enterprise Menu > Patching and Provisioning > Patches and Updates
Search for Patch
Enter 37784435 and click Search
Create a Patch Plan
Right-click patch > Add to Plan > Add to New
Enter plan name
Select Agent targets to patch > Click Create Plan
Review Plan
Add optional description or schedule
Click Next
Deployment Options
Keep default staging location %emd_emstagedir%
Set Oracle Home credentials if not preconfigured
Click Next
Validation
Click Analyze
If issues appear, resolve and click Re-Analyze
Click Next
Deploy
Click Deploy to apply patch
==============================================================
-- OPTION 2: MANUAL PATCH INSTALLATION (Command Line)

mkdir -p /tmp/patches

cd /u01/app/oem13c/agent_13.5.0.0.0

unzip /tmp/patches/p33355570_135000_Generic.zip

cd /tmp/patches

unzip p37784435_135000_Generic.zip
-- Oracle Management Service Patch --

cd /tmp/patches/37784435
agentpatcher apply -analyze

emctl stop agent

agentpatcher apply

emctl start agent

Repeat steps on all nodes if its a cluster.


=======================================================================
-- ROLLBACK PATCH (Command Line)

emctl stop agent

agentpatcher rollback -id 37784475,36335380,37731001,32968787

emctl start agent

Again, repeat on all cluster nodes if applicable.

agentpatcher list
=======================================================================

You might also like