Oracle Enterprise Manager Console (OEM) 11g R2


Oracle Enterprise Manager Console (OEM) 11g R2 Useful Commands


Basic Comands
emctl start dbconsole
emctl stop dbconsole
emctl status dbconsole

Check SSH Connectivity for RAC Cluster
#host1> ssh -l <user> host2'date'
Fri Feb 24 10:31:15 +03 2017

Recreate Repository
. .profile.db
cd $ORACLE_HOME
mca -deconfig dbcontrol db -cluster
emca -config dbcontrol db -repos recreate -cluster

emca -displayConfig dbcontrol -cluster
emca -reconfig dbcontrol -cluster -EM_NODE hostname1 -EM_NODE_LIST hostname1,hostname2

Agent Commands
emctl status agent
emctl clear state
emctl upload

SSLPeerUnverifiedException peer not authenticated 
emctl stop dbconsole
emctl unsecure dbconsole
emctl secure dbconsole
Please enter repository schema password: SYSMAN user password
emctl start dbconsole


Timezone(Daylight Saving) Problem (If path only OS timezone not DB)
AGENT_HOME/sysman/admin/supportedtzs.lst  (supported timezone list)
AGENT_HOME/sysman/config/emd.properties    (Properties)
emctl stop dbconsole
export TZ=Europe/Moscow;
emctl resetTZ agent 
emctl start dbconsole

How to Change emd.properties for OEM agent?
emd.properties is the configuration file which is used to by agent. It is located $ORACLE_HOME/sysman/config. If there is a need to change the contents of this file.Please follow the below method.
On the target nodes, perform the following. i.e deleting the agent related files.
emctl stop agent
rm -r $AGENT_HOME/sysman/emd/state/*
rm -r $AGENT_HOME/sysman/emd/conllection/*
rm -r $AGENT_HOME/sysman/emd/upload/*
rm $AGENT_HOME/sysman/emd/lastupld.xml
rm $AGENT_HOME/sysman/emd/agntstmp.xml
rm $AGENT_HOME/sysman/emd/backouts.xml
rm $AGENT_HOME/sysman/emd/protocol.ini

emctl secure agent
emctl start agent
emctl clearstate agent
emctl upload agent


Yorum Gönder

Daha yeni Daha eski