2012年3月18日 星期日

Installation of EMGrid Control in same location

when getting the error message about that the



ORACLE_MIDDLEWARE_HOME_LOCATION : "/export/home/oracle/Oracle/Middleware/oms11g" subdirectory already exists in oracle inventory: specify another home location.

try this:


/etc/oratab

and also you have to remove following four entries from each of directories that stores inventory information:

Locate your central inventory directory from /etc/oraInst.loc
inventory_loc=/u00/app/oraInventory

ls -l
backup
ContentsXML

cd ContentsXML
vi inventory.xml

delete all the entries for

#
#
#
#

Also note that under directory Backups, there are further directories and you need to remove these entries from each and every inventory.xml.

cd backup

grep -i inventory */*/in*

once you remove all the entries.

Go to your location where you have installed Middleware.

in my case
cd /u00/app/oracle/product/11.2.0/Middleware.

rm -rf oms11g agent11g oracle_common Oracle_WT.


==============================================================================
EMD upload error: uploadXMLFiles skipped - Error communicating with the agent
Problem description:


emctl upload agent


EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet. If this issue persists check trace files for ping to OMS related errors.
Resync Agent is failed with the following message:
Error communicating with the agent. Exception message - oracle.sysman.emSDK.emd.comm.CommException: java.io.IOException: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated




Solution:


emctl stop agent
cd $AGENT_HOME
rm sysman/emd/agntstmp.txt
rm sysman/emd/blackouts.xml
rm -r sysman/emd/state/*
rm -r sysman/emd/collection/*
rm -r sysman/emd/upload/*
rm sysman/emd/lastupld.xml
rm sysman/emd/protocol.ini


Go to the repository Grid Control Database


SQL> select target_name from mgmt_targets where target_type='oracle_emd';


TARGET_NAME
--------------------------------------------------------------------------------


si01.an.com:3872


SQL> exec mgmt_admin.cleanup_agent(' si01.an.com:3872);


PL/SQL procedure successfully completed.


emctl clearstate agent


emctl secure agent


emctl start agent


emctl upload agent

$AGENT_HOME/root.sh

reference:
http://bduan2.blog.163.com/blog/static/181238102201132192352424/
http://www.oracleangels.com/2011/07/emd-upload-error-uploadxmlfiles-skipped.html