agentDownload – deploy Oracle EM agent on Solaris from Linux OMS

Q: Put my database into OEM grid control as soon as possible, can it be done in 10mins?
A: Deploy Oracle EM agent via agentDownload .

Example:
Oracle OMS: 10.2.0.4 on Linux x86
Target database to monitoring: 9.2.0.7 on Solaris

1 ) download EM agent from otn.oracle.com, put it to specific folder in OMS machine
Note: we have to do this because target database running on different platform

mkdir -p $OMS_HOME/agent_shiphome/tmp
cd $OMS_HOME/agent_shiphome/tmp
unzip -a ../Solaris_Grid_Control_agent_download_10_2_0_4_0.zip

ls  $OMS_HOME/agent_shiphome/tmp
agentdeployroot.sh  agent_download.rsp.bak  instructions.txt  solaris

mv agent_download.rsp.bak  agent_download.rsp

mv $OMS_HOME/agent_shiphome/tmp/solaris  $OMS_HOME/sysman/agent_download/10.2.0.4.0/.

2) download agentDownload script to target database server from Oracle OEM grid control
Note: make sure your oracle inventory is correct.  /* check /var/opt/oracle/oraInst.loc in Solaris */

cd $ORACLE_HOME/..
export OMS_HOST=myoms.x.com
export OMS_PORT=4889

wget http://$OMS_HOST:$OMS_PORT/agent_download/10.2.0.4.0/solaris/agentDownload.solaris

chmod u+x agentDownload.solaris

3) install EM agent via agentDownload
 ./agentDownload.solaris -h

Usage: agentDownload.solaris [-bcdhimnoprstuxN]
   b – baseDirectory of the Agent OracleHome
   d – Do NOT initiate automatic target discovery
   h – Usage (this message)
   i – Inventory pointer location file
   m – To specify the oms hostname for downloading the agent install
   n – To specify the cluster name
   o – OLD_ORACLE_HOME during Upgrade
   p – Static port list file
   r – Port for connecting to oms hostname
   t – Do NOT start the Agent
   u – Upgrade
   x – Debug output
   c – CLUSTER_NODES
   N – Don’t prompt for Agent Registration Password

./agentDownload.solaris -m $OMS_HOST -r $OMS_PORT -b $ORACLE_HOME/..
..
Enter Agent Registration Password: [ hit RETURN if you don’t need secure communication between Agent and OMS. In any case, we can configure it later after installation ]

$ORACLE_HOME/../agent10g/root.sh needs to be executed by root to complete this installation

Note: run root.sh by root to finish EM agent installation.

4) check target database in OEM grid control
By default, EM agent will discover target database during installation. However, you can always add/remove/configure target database in OEM grid control afterwards.
Note: check schema dbsnmp in target database, change password or unlock this account so that EM agent works properly

10 – 20 mins work depens on your machine . Easy piece, uh?

Advertisements

About Pang

Oracle DBA working in database, fusion middleware and identity management and cloud.
This entry was posted in OEM and grid control. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s