You are on page 1of 3

Agent install.

You need two agents running on each node. One agent to send data to your own
OEM and another to send data to CERN's OEM. When you do the RAC install as
detailed below the installation process will install the software on all nodes in the
cluster.

Steps to install your own agent

1. Log in as the oracle user.

2. Make sure the $ORACLE_HOME, $ORACLE_BASE and SID are set

3. Ensure user equivalences is set between all nodes in the cluster

4. Go to where you unzipped the agent files - cd linux/agent

5. ./runInstaller

6. Choose bottom option (Additional Management Agent)

You can put the agent directory under $ORACLE_HOME example parent
directory: /opt/oracle/app/oracle/

7. Ignore language error

8. Select ALL nodes in the cluster

9. When asked to "Specify OMS Location" put the hostname of the host where you
have your OMS running and the port number.

10. Leave password blank

11. Accept license agreement

12. Do not enable proxy

13. Do not enable Oracle Config Management

14. Install

15. It will ask you to run scripts as root - do so

16. Finish the install

For the CERN agent - follow all the steps above except the following steps are
changed slightly

6. Choose bottom option (Additional Management Agent)

example parent directory: /opt/oracle/app/oracle/agent10g_CERN


9. When asked to "Specify OMS Location" put the hostname of the OMS at CERN
oms3d.cern.ch port 4889

Post installation tasks

1. If running linux

cat /etc/sysconfig/selinux to check that SELINUX=disabled

If not log in as root and change this (on all nodes)

2. In your oracle user home create an ora10Wagent_xxx shell script - where xxx is the
shorted name of your site.

It will look something similar to this but the oracle base path will be site specific.

# Start of File
export ORACLE_BASE=/opt/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/agent10g
export AGENT_HOME=$ORACLE_BASE/agent10g
unset ORACLE_SID

export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:
$ORACLE_HOME/jdk/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
# End of File

When we log in to the box to work on the agent we run this script. We have to be
careful because if don't set these values we might stop the CERN agent by mistake!

You can always check by using the command

which emctl

3. Repeat step 2 but create an ora10agent_cern.sh script and put the CERN agent
home in.

eg

# Start of File
export ORACLE_BASE=/opt/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/agent10g_CERN/agent10g
export AGENT_HOME=$ORACLE_BASE/agent10g_CERN/agent10g
unset ORACLE_SID

export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:
$ORACLE_HOME/jdk/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
# End of File
4. Edit the $AGENT_HOME/NODE_NAME/sysman/emd/targets.xml - NOTE
NODE_NAME will be site specific!

Update "-vip" to public hostname.

Do this on every node.

6. Port Numbers & Firewalls.

The following ports and IP address’s are enabled in the RAL firewall

TCP: 1521
TCP: 1830
TCP: 4443

VIP address of all nodes because this is used in the tnsnames.ora.


Host IP address of all nodes as the agents will be using this to communicate with
OMS at CERN.

6. Reboot your node (close down the database, ASM instance and nodeapps
gracefully though!) so check that everything comes up ok - including your agent.

Starting, Stopping and Checking the status of the agent.

cd $AGENT_HOME/NODE_NAME/bin - NOTE NODE_NAME will be site specific!


Rember to check what agent you are working with – use the following command
which emctl

To check the agent


./emctl status agent

To start the agent


./emctl start agent

To stop the agent


./emctl stop agent

The following people at RAL contributed to the document

Lisa Blanshard
Gordon Brown
Nuala Cullen.

You might also like