OMS
MIGRATION to NEW SERVER
OMS
12c R5 movement to new server
For management repository migration Click
Here -
Oracle Management Repository Migration to new server for my existing
posts.
- OLD OMS : oem250.ora.com
- NEW OMS : oem251.ora.com
Get the list of pluggins installed on existing OMS. This pluggins must be required in order to
complete OMS migration. If you have
below listed pluggins then move to newly created OMS Server (oem251) else you
can download from Oracle Support.
SQL> SELECT
2
epv.display_name
3 ,
epv.plugin_id
4 ,
epv.version
5 ,
epv.rev_version
6 ,
decode(su.aru_file, null,'Media/External' ,
7
'https://updates.oracle.com/Orion/Services/download/' ||
8
aru_file||'?aru='||aru_id||chr(38)||'patch_file='||aru_file) URL
9 FROM
em_plugin_version epv
10 ,
em_current_deployed_plugin ecp
11 ,
em_su_entities su
12
WHERE epv.plugin_type NOT IN ('BUILT_IN_TARGET_TYPE', 'INSTALL_HOME')
13 AND
ecp.dest_type='2'
14 AND
epv.plugin_version_id = ecp.plugin_version_id
15 AND
su.entity_id = epv.su_entity_id
SQL> /
DISPLAY_NAME PLUGIN_ID VERSION REV_VERSION URL
---------------------------------------- -------------------------
--------------- ----------- --------------------------------------------------
Oracle MOS (My Oracle Support) oracle.sysman.mos 12.1.0.6.0 0
https://updates.oracle.com/Orion/Services/download
/p18729126_112000_Generic.zip?aru=17699773&patch_f
ile=p18729126_112000_Generic.zip
Exalogic Elastic Cloud Infrastructure oracle.em.soee 12.1.0.2.0 0 Media/External
Oracle Audit Vault oracle.em.soav 12.1.0.4.0 0 Media/External
Oracle Exadata oracle.sysman.xa 12.1.0.6.0 0
https://updates.oracle.com/Orion/Services/download
/p18729140_112000_Generic.zip?aru=17699776&patch_f
ile=p18729140_112000_Generic.zip
Oracle Virtual Networking oracle.em.sovn 12.1.0.2.0 0
https://updates.oracle.com/Orion/Services/download
/p17628215_112000_Generic.zip?aru=16927340&patch_f
ile=p17628215_112000_Generic.zip
Oracle Engineered System Healthchecks oracle.em.sehc 12.1.0.5.0 0
https://updates.oracle.com/Orion/Services/download
/p18729180_112000_Generic.zip?aru=17699790&patch_f
ile=p18729180_112000_Generic.zip
Oracle Virtual Infrastructure oracle.sysman.vi 12.1.0.2.0 0
https://updates.oracle.com/Orion/Services/download
/p21207020_112000_Generic.zip?aru=19028873&patch_f
ile=p21207020_112000_Generic.zip
Oracle Database
oracle.sysman.db 12.1.0.8.0 0
https://updates.oracle.com/Orion/Services/download
/p21206990_112000_Generic.zip?aru=19028871&patch_f
ile=p21206990_112000_Generic.zip
Zero Data Loss Recovery Appliance oracle.sysman.am 12.1.0.1.0 0 https://updates.oracle.com/Orion/Services/download
/p19670730_112000_Generic.zip?aru=18111662&patch_f
ile=p19670730_112000_Generic.zip
Oracle Virtualization oracle.sysman.vt 12.1.0.7.0 0
https://updates.oracle.com/Orion/Services/download
/p19651949_112000_Generic.zip?aru=18090362&patch_f
ile=p19651949_112000_Generic.zip
Oracle Cloud Application oracle.sysman.ssa 12.1.0.10.0 0
https://updates.oracle.com/Orion/Services/download
/p21207040_112000_Generic.zip?aru=19028874&patch_f
ile=p21207040_112000_Generic.zip
Oracle Fusion Middleware oracle.sysman.emas 12.1.0.8.0 0
https://updates.oracle.com/Orion/Services/download
/p21206966_112000_Generic.zip?aru=19028870&patch_f
ile=p21206966_112000_Generic.zip
Oracle Cloud Framework oracle.sysman.cfw 12.1.0.3.0 0
https://updates.oracle.com/Orion/Services/download
/p21207005_112000_Generic.zip?aru=19028872&patch_f
ile=p21207005_112000_Generic.zip
13 rows selected.
Before installation I have create the same directory structure on new server.
Unzip the OEM-12c-R5 and then run ./runInstaller
Following the self explanatory wizard...
Skip and click next
Set the Inventory Location
Verify the prerequisites
Here we are choosing Install Software Only as we have configure using old oms export configuration file.
Setting the Middleware home and Agent Base directory
Review and install ....
Run Root.sh to continue the OMS Software installation.
[oracle@oem251 OEM_12c_R5]$ sudo /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory
Adding read,write permissions for group,Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete
[oracle@oem251 OEM_12c_R5]$ sudo /u01/app/oracle/Middleware12105/oms/allroot.sh
Starting to execute allroot.sh .........
Starting to execute /u01/app/oracle/Middleware12105/oms/root.sh ......
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/Middleware12105/oms
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
/etc exist
Creating /etc/oragchomelist file...
/u01/app/oracle/Middleware12105/oms
Finished execution of /u01/app/oracle/Middleware12105/oms/root.sh ......
Starting to execute /u01/app/oracle/gc_inst1/core/12.1.0.5.0/root.sh ......
Finished product-specific root actions.
/etc exist
/u01/app/oracle/gc_inst1/core/12.1.0.5.0
Finished execution of /u01/app/oracle/gc_inst1/core/12.1.0.5.0/root.sh ......
[oracle@oem251 OEM_12c_R5]$
Click OK.
Now run the PlugginInstall.sh under sysman/install directory. Choose as per existing configuration.
Continue the plugins installation
Software installation has completed. Now it's time to configure new
OMS.
Check the status of old OMS.
[oracle@oem250 ~]$ emctl status oms -details
Oracle
Enterprise Manager Cloud Control 12c Release 5
Copyright (c)
1996, 2015 Oracle Corporation. All
rights reserved.
Enter
Enterprise Manager Root (SYSMAN) Password :
Console Server
Host : oem250.ora.com
HTTP Console
Port : 7788
HTTPS Console
Port : 7802
HTTP Upload
Port : 4889
HTTPS Upload
Port : 4903
EM Instance
Home : /u01/app/oracle/gc_inst1/em/EMGC_OMS1
OMS Log
Directory Location : /u01/app/oracle/gc_inst1/em/EMGC_OMS1/sysman/log
OMS is not
configured with SLB or virtual hostname
Agent Upload
is locked.
OMS Console is
locked.
Active CA ID:
1
Console URL:
https://oem250.ora.com:7802/em
Upload URL:
https://oem250.ora.com:4903/empbs/upload
WLS Domain
Information
Domain
Name : GCDomain
Admin Server
Host : oem250.ora.com
Admin Server
HTTPS Port: 7102
Admin Server
is RUNNING
Oracle
Management Server Information
Managed Server
Instance Name: EMGC_OMS1
Oracle
Management Server Instance Host: oem250.ora.com
WebTier is Up
Oracle
Management Server is Up
BI Publisher
is not configured to run on this host.
Export all the configuration for old OMS, so that we can configure
new oms with old oms configuration. Also copy the configuration file to new
server
[oracle@oem250 ~]$ emctl exportconfig oms
Oracle
Enterprise Manager Cloud Control 12c Release 5
Copyright (c)
1996, 2015 Oracle Corporation. All
rights reserved.
Enter
Enterprise Manager Root (SYSMAN) Password :
ExportConfig
started...
Backup
directory is /u01/app/oracle/gc_inst1/em/EMGC_OMS1/sysman/backup
Machine is
Admin Server host. Performing Admin Server backup...
Exporting
emoms properties...
Exporting
secure properties...
Export has
determined that the OMS is not fronted
by an SLB. The
local hostname was NOT exported.
The exported
data can be imported on any host but
resecure of
all agents will be required. Please
see the EM
Advanced Configuration Guide for more
details.
Warning: Could
not export files for module bip: Unable to read file
/u01/app/oracle/gc_inst1/em/EMGC_OMS1/embip.properties for exporting
Exporting
configuration for pluggable modules...
Preparing
archive file...
Backup has
been written to file: /u01/app/oracle/gc_inst1/em/EMGC_OMS1/sysman/backup/opf_ADMIN_20151001_065852.bka
The export
file contains sensitive data.
You must keep it secure.
ExportConfig
completed successfully!
Copying to shared location (in my case) this location available on
both nodes
[root@oem250 ~]# cp
/u01/app/oracle/gc_inst1/em/EMGC_OMS1/sysman/backup/opf_ADMIN_20151001_065852.bka
/ora_global_nfs/software/Oracle/OMS_Configuration_oem250/
Download list of plugging from Oracle
Support :
SQL> SELECT
2 decode(su.aru_file,
null,'Media/External' ,
3
'https://updates.oracle.com/Orion/Services/download/' ||
4
aru_file||'?aru='||aru_id||chr(38)||'patch_file='||aru_file) URL
5 FROM em_plugin_version epv
6 , em_current_deployed_plugin
ecp
7 , em_su_entities su
8 WHERE epv.plugin_type NOT IN
('BUILT_IN_TARGET_TYPE', 'INSTALL_HOME')
9 AND ecp.dest_type='2'
10 AND
epv.plugin_version_id = ecp.plugin_version_id
11 AND
su.entity_id = epv.su_entity_id;
URL
------------------------------------------------------------------
https://updates.oracle.com/Orion/Services/download/p18729126_112000_Generic.zip?aru=17699773&patch_file=p18729126_112000_Generic.zip
https://updates.oracle.com/Orion/Services/download/p18729140_112000_Generic.zip?aru=17699776&patch_file=p18729140_112000_Generic.zip
https://updates.oracle.com/Orion/Services/download/p17628215_112000_Generic.zip?aru=16927340&patch_file=p17628215_112000_Generic.zip
https://updates.oracle.com/Orion/Services/download/p18729180_112000_Generic.zip?aru=17699790&patch_file=p18729180_112000_Generic.zip
https://updates.oracle.com/Orion/Services/download/p21207020_112000_Generic.zip?aru=19028873&patch_file=p21207020_112000_Generic.zip
https://updates.oracle.com/Orion/Services/download/p21206990_112000_Generic.zip?aru=19028871&patch_file=p21206990_112000_Generic.zip
https://updates.oracle.com/Orion/Services/download/p19670730_112000_Generic.zip?aru=18111662&patch_file=p19670730_112000_Generic.zip
https://updates.oracle.com/Orion/Services/download/p19651949_112000_Generic.zip?aru=18090362&patch_file=p19651949_112000_Generic.zip
https://updates.oracle.com/Orion/Services/download/p21207040_112000_Generic.zip?aru=19028874&patch_file=p21207040_112000_Generic.zip
https://updates.oracle.com/Orion/Services/download/p21206966_112000_Generic.zip?aru=19028870&patch_file=p21206966_112000_Generic.zip
https://updates.oracle.com/Orion/Services/download/p21207005_112000_Generic.zip?aru=19028872&patch_file=p21207005_112000_Generic.zip
After downloading all pluggins it's require to change the extension
(.zip) to (.opar).
[root@oem250
Pluggins]# mv
p17628215_112000_Generic.zip
p17628215_112000_Generic.opar
[root@oem250
Pluggins]# mv
p18729126_112000_Generic.zip
p18729126_112000_Generic.opar
[root@oem250
Pluggins]# mv
p18729140_112000_Generic.zip
p18729140_112000_Generic.opar
[root@oem250
Pluggins]# mv
p18729180_112000_Generic.zip
p18729180_112000_Generic.opar
[root@oem250
Pluggins]# mv
p19651949_112000_Generic.zip
p19651949_112000_Generic.opar
[root@oem250
Pluggins]# mv
p19670730_112000_Generic.zip
p19670730_112000_Generic.opar
[root@oem250
Pluggins]# mv
p21206966_112000_Generic.zip
p21206966_112000_Generic.opar
[root@oem250
Pluggins]# mv
p21206990_112000_Generic.zip
p21206990_112000_Generic.opar
[root@oem250
Pluggins]# mv
p21207005_112000_Generic.zip
p21207005_112000_Generic.opar
[root@oem250
Pluggins]# mv
p21207020_112000_Generic.zip
p21207020_112000_Generic.opar
[root@oem250
Pluggins]# mv p21207040_112000_Generic.zip p21207040_112000_Generic.opar
Now configure new oms using exported old oms configuration file
using OMSCA utility using download pluggins location.
[oracle@oem251 swlib]$ omsca recover -as -ms -nostart -backup_file
/ora_global_nfs/software/Oracle/OMS_Configuration_oem250/opf_ADMIN_20151001_065852.bka
Oracle
Enterprise Manager Cloud Control 12c Release 12.1.0.5.0
Copyright (c)
1996, 2015, Oracle. All rights reserved.
OS check
passed.
OMS version
check passed.
Performing
Admin Server Recovery...
Retrieved
Admin Server template.
Source
Instance Host name where configuration is exported : oem250.ora.com
instHost name
retrieved from local host name : oem251.ora.com
Populated
install params from backup...
Enter
Administration Server user password:
Confirm
Password:
Enter Node
Manager Password:
Confirm
Password:
Enter
Repository database user password:
Enter Agent
Registration password:
Confirm
Password:
Doing pre
requisite checks ......
Pre requisite
checks completed successfully
Checking
Plugin software bits
Proceed to
recovery
Setting up
domain from template...
Setup EM
infrastructure succeeded!
Admin Server
recovered from backup.
Now performing
cleanup of OMS EMGC_OMS1...
Now launching
DeleteOMS...
OMS Deleted
successfully
Delete
finished successfully
Now launching
AddOMS...
Infrastructure
setup of EM completed successfully.
Doing pre
deployment operations ......
Pre deployment
of EM completed successfully.
Deploying EM
......
Deployment of
EM completed successfully.
Configuring
webtier ......
Configuring
webTier completed successfully.
Importing OMS
configuration from recovery file...
If you have
software library configured
please make
sure it is functional and accessible
from this OMS
by visiting:
Setup->Provisioning and
Patching->Software Library
Securing OMS
......
Adapter
already exists: emgc_USER
Adapter
created successfully: emgc_GROUP
Post
"Deploy and Repos Setup" operations completed successfully.
Performing
Post deploy operations ....
Total 0
errors, 81 warnings. 0 entities imported.
pluginID:oracle.sysman.core
Done with csg
import
pluginID:oracle.sysman.core
Done with csg
import
No logging has
been configured and default agent logging support is unavailable.
Post deploy
operations completed successfully.
EM
configuration completed successfully.
EM URL
is:https://oem251.ora.com:7802/em
Add OMS
finished successfully
Recovery of
server EMGC_OMS1 completed successfully
OMSCA Recover
completed successfully
[oracle@oem251
swlib]$
Check the status of OMS, its must be down as we recover using
-nostart option.
[oracle@oem251 swlib]$ emctl
status oms
Oracle
Enterprise Manager Cloud Control 12c Release 5
Copyright (c)
1996, 2015 Oracle Corporation. All
rights reserved.
WebTier is
Down
Oracle
Management Server is Down
[oracle@oem251 swlib]$ emctl
status oms -details
Oracle
Enterprise Manager Cloud Control 12c Release 5
Copyright (c)
1996, 2015 Oracle Corporation. All
rights reserved.
Enter
Enterprise Manager Root (SYSMAN) Password :
Console Server
Host : oem251.ora.com
HTTP Console
Port : 7788
HTTPS Console
Port : 7802
HTTP Upload
Port : 4889
HTTPS Upload
Port : 4903
EM Instance
Home :
/u01/app/oracle/gc_inst1/em/EMGC_OMS1
OMS Log
Directory Location : /u01/app/oracle/gc_inst1/em/EMGC_OMS1/sysman/log
OMS is not configured
with SLB or virtual hostname
Agent Upload
is locked.
OMS Console is
locked.
Active CA ID:
1
Console URL:
https://oem251.ora.com:7802/em
Upload URL:
https://oem251.ora.com:4903/empbs/upload
WLS Domain
Information
Domain
Name : GCDomain
Admin Server
Host : oem251.ora.com
Admin Server
HTTPS Port: 7102
Admin Server
is RUNNING
Oracle
Management Server Information
Managed Server
Instance Name: EMGC_OMS1
Oracle
Management Server Instance Host: oem251.ora.com
WebTier is
Down
Oracle
Management Server is Down
BI Publisher
is not configured to run on this host.
Start the newly configure OMS
[oracle@oem251 swlib]$ emctl start
oms
Oracle
Enterprise Manager Cloud Control 12c Release 5
Copyright (c)
1996, 2015 Oracle Corporation. All
rights reserved.
Starting Oracle
Management Server...
Starting
WebTier...
WebTier
Successfully Started
Oracle
Management Server Successfully Started
Oracle
Management Server is Up
Check the status.
[oracle@oem251 swlib]$ emctl status oms
Oracle
Enterprise Manager Cloud Control 12c Release 5
Copyright (c)
1996, 2015 Oracle Corporation. All
rights reserved.
WebTier is Up
Oracle
Management Server is Up
[oracle@oem251
swlib]$ emctl status oms -details
Oracle Enterprise
Manager Cloud Control 12c Release 5
Copyright (c)
1996, 2015 Oracle Corporation. All
rights reserved.
Enter
Enterprise Manager Root (SYSMAN) Password :
Console Server
Host : oem251.ora.com
HTTP Console
Port : 7788
HTTPS Console
Port : 7802
HTTP Upload
Port : 4889
HTTPS Upload
Port : 4903
EM Instance
Home :
/u01/app/oracle/gc_inst1/em/EMGC_OMS1
OMS Log
Directory Location : /u01/app/oracle/gc_inst1/em/EMGC_OMS1/sysman/log
OMS is not
configured with SLB or virtual hostname
Agent Upload
is locked.
OMS Console is
locked.
Active CA ID:
1
Console URL:
https://oem251.ora.com:7802/em
Upload URL:
https://oem251.ora.com:4903/empbs/upload
WLS Domain
Information
Domain
Name : GCDomain
Admin Server
Host : oem251.ora.com
Admin Server
HTTPS Port: 7102
Admin Server
is RUNNING
Oracle
Management Server Information
Managed Server
Instance Name: EMGC_OMS1
Oracle
Management Server Instance Host: oem251.ora.com
WebTier is Up
Oracle Management
Server is Up
BI Publisher
is not configured to run on this host.
Relocate the target to the new OMS (oem251.ora.com)
[oracle@oem251
Agent12c]$ . oraenv
ORACLE_SID =
[agent] ? oms
The Oracle
base for ORACLE_HOME=/u01/app/oracle/Middleware12105/oms is
/u01/app/oracle/gc_inst1/core/12.1.0.5.0
[oracle@oem251 Agent12c]$ emcli
login -username=sysman -password=amit1234
Login
successful
[oracle@oem251 Agent12c]$ emcli
sync
Synchronized
successfully
[oracle@oem251 Agent12c]$ emctl
config emrep -agent https://oem251.ora.com:3872
Oracle
Enterprise Manager Cloud Control 12c Release 5
Copyright (c)
1996, 2015 Oracle Corporation. All
rights reserved.
Please enter
repository password: Enter password :
Login successful
Moved all
targets from https://oem250.ora.com:3872 to https://oem251.ora.com:3872
Command
completed successfully!
Enter password
:
Login
successful
Moved all
targets from https://oem250.ora.com:3872 to https://oem251.ora.com:3872
Command
completed successfully!
Hope this will help ....