Adding Targets in 12c OEM


Setup A New Database Target On Oracle EM 12c Cloud Control

  • Install the Linux OS of the database to be monitored.(see the Linux installation steps)
  • Install the Oracle database to be monitored.(see the database installation steps)

The first step is to create the user on the target OS of the target database and run the following commands (As root)

[root@lab ~]# useradd -g oinstall emc12

[root@lab ~]# passwd emc12

Changing password for user emc12.

New UNIX password:.

retype new UNIX password:

passwd: all authentication tokens updated successfully.

[root@lab ~]# mkdir -p /u02/app/emc12/emagent

[root@lab ~]# chown -R emc12:oinstall /u02/app/emc12

Now that the user is created, let’s set the .bash_profile for the emc12 user

[root@lab ~]#vi /home/emc12/.bash_profile

### Add the following lines at the end of emc12 profile

umask 027

export ORACLE_HOME=/u02/app/emc12/emagent/core/12.1.0.2.0

PATH=$PATH:$ORACLE_HOME/bin

Add the hostname and ip address on hosts add the source and target both ip address and hostname

[root@lab ~]#vi /etc/hosts

#EMC 12C

192.168.2.10 oracle.lab.com oracle

192.168.2.11 lab.thay.com lab

 Now, log into the instance unlock and change DBSNMP password. Put a random long password,

 sql>alter user DBSNMP identified by foxpro_pox account unlock;

Now that the OS and DB is ready to be monitored, we open the EM 12c and add the host.

Log into the EM with the SYSMAN or a user who has administrator permission. Go to “Setup >Add Target >Add TargetsManually.” Click the “Add Host …”. 

1 

2

3

Click the add give the target ip address and platform

4

  • Installation base directory means give the target database emagent directory

(/u02/app/emc12/emagent)

  • No need to give the instance directory once you entered in the base directory automatically it assigned
  • In the named credential click the plus symbol

 5

  • Give the target username(emc12),password
  • Click ok

 6

 

  • Select the created named credential and click Next

 7

    

  • View the summary and click the deploy agent

 8

 

  • It shown the warning in the Remote prerequisite steps
  • In the step click continue select  the all the host(ignore the warning)  

 9

 10

  • run the root.sh script on the target system
  • click done agent deployed. Let’s now add the target database

 11

  • click done agent deployed

 

 12

  • Let’s now add the target database

 13

  • Select the search list and click the add button

 14

  • Click the search button and select the added host target database ip address and click continue

 15

 

  • In this step click the configure
  • Give the monitor database username and password
  • Test the connection if succeeded press ok button

 17

 1819

 

  • Finalize step click the finish button
  • Finally click the save button and the database added successfully

 202122

 

  • Now you can monitor your database. Go on the “Targets >Databases”, open your body and monitor your database.

 23

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *