Tuesday, October 7, 2008

Using emcli to connect to OEM

export JAVA_HOME=/opt/oracle/product/10.2.0/oms10g/jdk
export PATH=$PATH:$JAVA_HOME/bin

cd /opt/oracle/product/10.2.0/oms10g/sysman/jlib
java -jar emclikit.jar client -install_dir=/home/oradba/scripts

emcli setup -url="https://test-oemnode-10:1159/em -username oradba -dir /home/oracle/scripts -trustall -novalidate

emcli get_targets
emcli get_jobs