How to rollback patch from EM management agent 12c
Here we are performing the rollback patch from EM management agent in EM12c.
Please follow below steps to apply patch on EM agent -
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$ export
ORACLE_HOME=/u01/oraem12c/agent12c/core/12.1.0.4.0
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$ export
PLUGIN_HOME=/u01/oraem12c/agent12c/plugins/oracle.sysman.vi.agent.plugin_12.1.0.1.0
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$ emctl status agent
-bash: emctl: command not found
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$
/u01/oraem12c/agent12c/agent_inst/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version
: 12.1.0.4.0
OMS Version
: (unknown)
Protocol Version
: 12.1.0.1.0
Agent Home
: /u01/oraem12c/agent12c/agent_inst
Agent Log Directory
: /u01/oraem12c/agent12c/agent_inst/sysman/log
Agent Binaries
: /u01/oraem12c/agent12c/core/12.1.0.4.0
Agent Process ID
: 20717
Parent Process ID
: 20630
Agent URL
: https://examyservdbadm1.cris.co.in:3872/emd/main/
Local Agent URL in NAT : https://examyservdbadm1.cris.co.in:3872/emd/main/
Repository URL
: https://tfoisapp1:1159/empbs/upload
Started at
: 2017-04-03 14:33:15
Started by user
: oraem12c
Operating System
: Linux version 2.6.39-400.276.1.el6uek.x86_64 (amd64)
Last Reload
: (none)
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 295
Size of XML files pending upload(MB) : 0.42
Available disk space on upload filesystem : 90.85%
Collection Status : Collections
enabled
Heartbeat Status
: OMS responded illegally [ERROR- Failed to update Target type Metadata]
Last attempted heartbeat to OMS : 2017-04-03 15:23:39
Last successful heartbeat to OMS : (none)
Next scheduled heartbeat to OMS : 2017-04-03 15:24:10
---------------------------------------------------------------
Agent is Running and Ready
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$
/u01/oraem12c/agent12c/agent_inst/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Stopping agent ..... stopped.
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$ $ORACLE_HOME/OPatch/opatch
rollback -id 22068912 -oh $PLUGIN_HOME^C
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$ echo $PLUGIN_HOME
/u01/oraem12c/agent12c/plugins/oracle.sysman.vi.agent.plugin_12.1.0.1.0
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$ $ORACLE_HOME/OPatch/opatch
rollback -id 22068912 -oh $PLUGIN_HOME
Oracle Interim Patch Installer version 11.1.0.10.4
Copyright (c) 2017, Oracle Corporation. All rights reserved.
Oracle Home :
/u01/oraem12c/agent12c/plugins/oracle.sysman.vi.agent.plugin_12.1.0.1.0
Central Inventory : /u01/app/oraInventory
from :
/u01/oraem12c/agent12c/plugins/oracle.sysman.vi.agent.plugin_12.1.0.1.0/oraInst.loc
OPatch version :
11.1.0.10.4
OUI version :
11.1.0.12.0
Log file location :
/u01/oraem12c/agent12c/plugins/oracle.sysman.vi.agent.plugin_12.1.0.1.0/cfgtoollogs/opatch/22068912_Apr_03_2017_15_25_11/rollback2017-04-03_15-25-11PM_1.log
RollbackSession rolling back interim patch '22068912'
from OH '/u01/oraem12c/agent12c/plugins/oracle.sysman.vi.agent.plugin_12.1.0.1.0'
Patching component oracle.sysman.vi.plugin.agent,
12.1.0.1.0...
RollbackSession removing interim patch '22068912' from
inventory
Log file location:
/u01/oraem12c/agent12c/plugins/oracle.sysman.vi.agent.plugin_12.1.0.1.0/cfgtoollogs/opatch/22068912_Apr_03_2017_15_25_11/rollback2017-04-03_15-25-11PM_1.log
OPatch succeeded.
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$
/u01/oraem12c/agent12c/agent_inst/bin/emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Starting agent ............... started.
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$
/u01/oraem12c/agent12c/agent_inst/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version
: 12.1.0.4.0
OMS Version
: 12.1.0.4.0
Protocol Version
: 12.1.0.1.0
Agent Home
: /u01/oraem12c/agent12c/agent_inst
Agent Log Directory
: /u01/oraem12c/agent12c/agent_inst/sysman/log
Agent Binaries
: /u01/oraem12c/agent12c/core/12.1.0.4.0
Agent Process ID
: 105020
Parent Process ID
: 104922
Agent URL
: https://examyservdbadm1.cris.co.in:3872/emd/main/
Local Agent URL in NAT : https://examyservdbadm1.cris.co.in:3872/emd/main/
Repository URL
: https://tfoisapp1:1159/empbs/upload
Started at
: 2017-04-03 15:25:38
Started by user
: oraem12c
Operating System
: Linux version 2.6.39-400.276.1.el6uek.x86_64 (amd64)
Last Reload
: (none)
Last successful upload : 2017-04-03 15:25:55
Last attempted upload : 2017-04-03 15:25:55
Total Megabytes of XML files uploaded so far : 0.47
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 90.85%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2017-04-03 15:25:49
Last successful heartbeat to OMS : 2017-04-03 15:25:49
Next scheduled heartbeat to OMS : 2017-04-03 15:26:49
---------------------------------------------------------------
Agent is Running and Ready
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$
[oraem12c@examyservdbadm1 ~]$ ps -ef | grep pmon
oracle
15668 1 0 Jan19 ? 00:15:03 ora_pmon_WEB1
oracle
40405 1 0 2016
? 00:15:28 asm_pmon_+ASM1
oracle
42298 1 0 2016
? 00:10:52 mdb_pmon_-MGMTDB
oraem12c 116133
92657 0 15:31 pts/4 00:00:00 grep pmon
oracle
263080 1 0 Feb27 ? 00:15:22 ora_pmon_FOIS1
[oraem12c@examyservdbadm1 ~]$
pwd
/oragrid/oemcc/middleware/oms/bin
$
$ ./emcli login -username=sysman
Syntax Error: Unrecognized argument -username
Syntax Error: Too many positional arguments
--
=sysman"
$
$ ./emcli login -username=sysman
Enter password :
Login successful
$ ./emcli list_plugins_on_server
OMS name is tfoisapp1:4889_Management_Service
Plug-in Name Plugin-id Version [revision]
Oracle Engineered System Healthchecks oracle.em.sehc 12.1.0.5.0
Oracle Tuxedo
oracle.fmw.txdo
12.1.0.3.0
Oracle Cloud Framework oracle.sysman.cfw 12.1.0.1.0
Oracle Database oracle.sysman.db 12.1.0.6.0
Oracle Fusion Middleware oracle.sysman.emas 12.1.0.6.0
Oracle MOS (My Oracle Support) oracle.sysman.mos 12.1.0.6.0
Oracle Virtual Infrastructure oracle.sysman.vi 12.1.0.1.0
Oracle Virtualization oracle.sysman.vt 12.1.0.6.0
Oracle Exadata
oracle.sysman.xa
12.1.0.6.0
$
$
No comments:
Post a Comment