Ports: 1521,4901,3872,3873,22
EM_UPLOAD_PORT: 4900 AGENT_PORT=3872
changed in
REPOSITORY_URL=https://
emdWalletSrcUrl=http://
Install(10g) : Cloning
tar existing agent on a server. untar it on the new server
tar -xvf agent10g.tar
$AGANT_HOME/oui/bin/runInstaller -clone -forceClone ORACLE_HOME=/app/oracle/agent10g ORACLE_HOME_NAME=Agent10g_Home -noconfig -silent
#Root script to run
/app/oracle/agent10g/root.sh
$AGANT_HOME/bin/agentca -f
Deinstall(12c) :
$
or
/u01/oracle/product/12c/agent12c/core/12.1.0.1.0/perl/bin/perl /u01/oracle/product/12c/agent12c/core/12.1.0.1.0/sysman/install/NFSAgentDeInstall.pl ORACLE_HOME=/u01/oracle/product/12c/agent12c/core/12.1.0.1.0 AGENT_INSTANCE_HOME=/u01/oracle/product/12c/agent12c/agent_inst
connect to the OEM Grid Repository and perform the following:
SQL> select target_name from mgmt_targets where target_type=’oracle_emd’;
This command show me the list of all the registered targets from my OEM and I can see that Server1 is still there. Then to manually remove Server1 from the list, I then execute:
SQL> exec mgmt_admin.cleanup_agent(‘Server1:3872′);
exec mgmt_admin.delete_target('PROD','oracle_database');
/app/oracle/product/agent10g/sysman/config/emd.properties
check : /app/oracle/oraInventory/ContentsXML/inventory.xml
/app/oracle/product/10g/oui/bin/runInstaller -silent -detachHome -invPtrLoc /var/opt/oracle/oraInst.loc ORACLE_HOME="/app/oracle/product/12c/agent12c/core/12.1.0.1.0" ORACLE_HOME_NAME="agent12g1"
/app/oracle/product/10g/oui/bin/runInstaller -silent -detachHome -invPtrLoc /var/opt/oracle/oraInst.loc ORACLE_HOME="/app/oracle/product/12c/agent12c/sbin" ORACLE_HOME_NAME="sbin12g1"
/app/oracle/product/10g/oui/bin/runInstaller -silent -detachHome -invPtrLoc /var/opt/oracle/oraInst.loc ORACLE_HOME="/app/oracle/product/12c/agent12c/sbin" ORACLE_HOME_NAME="sbin12g1"
http://www.liberidu.com/blog/2012/07/02/oracle-enterprise-manager-cloud-control-12-1-agent-installation-issues-and-solutions/
Clearing the Agent ;
emctl stop agent
rm -r $AGENT_HOME/sysman/emd/state/*
rm -r $AGENT_HOME/sysman/emd/collection/*
rm -r $AGENT_HOME/sysman/emd/upload/*
rm $AGENT_HOME/sysman/emd/lastupld.xml
rm $AGENT_HOME/sysman/emd/agntstmp.txt
rm $AGENT_HOME/sysman/emd/blackouts.xml
emctl clearstate agent
emctl start agent
emctl upload agent
GC agents page (Setup -> Agents). enter the agent page and click on "Start Resynchronization" leaving the unblock agent after success mark set.
When OMS server Down and doesn't start :
Stop if Alive : /oracle/app/product/Middleware/gc_inst/WebTierIH1/bin/opmnctl stopall
Check file in : ls -l /oracle/app/product/Middleware/gc_inst/WebTierIH1/config/OPMN/opmn/states
Move that file : mv /oracle/app/product/Middleware/gc_inst/WebTierIH1/config/OPMN/opmn/states/p873085201 /oracle/app/product/Middleware/gc_inst/WebTierIH1/config/OPMN/opmn/states/del_p873085201_bkp
Delete any emctl.log : find / -name emctl.log -type f 2>/dev/null > files_and_folders
rm /oracle/app/product/Middleware/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log
rm /oracle/app/product/Middleware/agent/agent_inst/sysman/log/emctl.log
Start oms : /oracle/app/product/Middleware/oms/bin/emctl start oms
Network Ports Used in Oracle Enterprise Manager 12c
https://docs.oracle.com/cd/E26854_01/install.121/e24089/getstrtd_proc_sw.htm#EMADV282
Installation :
https://docs.oracle.com/cd/E26854_01/install.121/e24089/getstrtd_proc_sw.htm#EMADV282
/app/oracle/product/10g/oui/bin/runInstaller -silent -detachHome -invPtrLoc /var/opt/oracle/oraInst.loc ORACLE_HOME="/app/oracle/product/12c/agent12c/core/12.1.0.1.0" ORACLE_HOME_NAME="agent12g1"
/app/oracle/product/10g/oui/bin/runInstaller -silent -detachHome -invPtrLoc /var/opt/oracle/oraInst.loc ORACLE_HOME="/app/oracle/product/12c/agent12c/sbin" ORACLE_HOME_NAME="sbin12g1"
/app/oracle/product/10g/oui/bin/runInstaller -silent -detachHome -invPtrLoc /var/opt/oracle/oraInst.loc ORACLE_HOME="/app/oracle/product/12c/agent12c/sbin" ORACLE_HOME_NAME="sbin12g1"
http://www.liberidu.com/blog/2012/07/02/oracle-enterprise-manager-cloud-control-12-1-agent-installation-issues-and-solutions/
Clearing the Agent ;
emctl stop agent
rm -r $AGENT_HOME/sysman/emd/state/*
rm -r $AGENT_HOME/sysman/emd/collection/*
rm -r $AGENT_HOME/sysman/emd/upload/*
rm $AGENT_HOME/sysman/emd/lastupld.xml
rm $AGENT_HOME/sysman/emd/agntstmp.txt
rm $AGENT_HOME/sysman/emd/blackouts.xml
emctl clearstate agent
emctl start agent
emctl upload agent
GC agents page (Setup -> Agents). enter the agent page and click on "Start Resynchronization" leaving the unblock agent after success mark set.
When OMS server Down and doesn't start :
Stop if Alive : /oracle/app/product/Middleware/gc_inst/WebTierIH1/bin/opmnctl stopall
Check file in : ls -l /oracle/app/product/Middleware/gc_inst/WebTierIH1/config/OPMN/opmn/states
Move that file : mv /oracle/app/product/Middleware/gc_inst/WebTierIH1/config/OPMN/opmn/states/p873085201 /oracle/app/product/Middleware/gc_inst/WebTierIH1/config/OPMN/opmn/states/del_p873085201_bkp
Delete any emctl.log : find / -name emctl.log -type f 2>/dev/null > files_and_folders
rm /oracle/app/product/Middleware/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log
rm /oracle/app/product/Middleware/agent/agent_inst/sysman/log/emctl.log
Start oms : /oracle/app/product/Middleware/oms/bin/emctl start oms
Network Ports Used in Oracle Enterprise Manager 12c
https://docs.oracle.com/cd/E26854_01/install.121/e24089/getstrtd_proc_sw.htm#EMADV282
Installation :
https://docs.oracle.com/cd/E26854_01/install.121/e24089/getstrtd_proc_sw.htm#EMADV282