Friday 15 November 2019

Oracle OEM Cloud Control : Adding Targets for Monitoring

1. In order to add databases to OEM for monitoring, we need to add the Host target first on which the database was created.

For this, first create the Linux user emc12 on target host.
#useradd -d /home/emc12 -u 11001 -g dba emc12

Create Agent Installation base directory in /opt
#cd /opt
#mkdir emc12

change the ownership of this directory to emc12 user
#chown emc12:dba emc12


2. Remaining steps should be done on Oracle EM console.
         Go to Setup-> Add Target -> Add Target Manually.



2. Select Add Host Target Radio button and Click on Add Host .
3. Click on Add, Provide hostname and Platform and Click next.


4. In the Agent Installation Details, Provide the Installation Base Directory as /opt/emc12 and create a new named credential by clicking on the + Sign


5. Provide the Username as emc12 and enter the same password that was set for the user in the remote host. Click OK. and then Click Next. It will take you to the review screen.



6. Click on Deploy Agent.EM will start deploying agent on to remote host.


7. The deployment will finish in less than 15 minutes. Sometimes the result will be shown as Agent Deployment Failed. This is because the OS user emc12 on remote host wasn't given the sudo privilege to execute the root.sh script as root user. You will have to manually run this script in the remote host as root user.



8. Next we need to add the databases and listeners on the remote Host
Select add Targets Manually-> Add Targets using Guided Process. And then select the Target Types as Oracle Database, Listener and ASM from the Drop down Menu. 
Click on Add Using Guided Process.



9. Specify the hostname and click Next
10. From  the next screen, Select the targets from the List specified. Provide the password for dbsnmp. If the password is not not set, reset it in the host database and provide it here and Click on Test
11. If the test is successful, click Next.
12. Save the Target details.


No comments:

Post a Comment