Configuring the Management Agent to Use a New Management Service - Is there a trick to it?
OMS serverLinux 2.6.39-200.24.1.el6uek.x86_64
Oracle 11.2.0.3
OMS version 12C
Database Server
Linux 2.6.39-400.209.1.el6uek.x86_64
Oracle 11.2.0.4
I installed the agent via the OMS console to the database server. Everything works as designed. What I want to do is to point the agent to our DR OMS server. I want this to be scripted so that we can automate failing over to the DR OMS server. Here is what I ran:
export AGENT_HOME=/blah/12.1.0/agent_inst
cd $AGENT_HOME
bin/emctl stop agent
cp sysman/config/emd.properties sysman/config/emd.properties.`date '+%F:%T'`
perl -pi -e "s/REPOSITORY_URL=https:\/\/.*:/REPOSITORY_URL=https:\/\/DR_OMS_SERVER:/" sysman/config/emd.properties
0