Subscribe to Posts by Email

Subscriber Count

    700

Disclaimer

All information is offered in good faith and in the hope that it may be of use for educational purpose and for Database community purpose, but is not guaranteed to be correct, up to date or suitable for any particular purpose. db.geeksinsight.com accepts no liability in respect of this information or its use. This site is independent of and does not represent Oracle Corporation in any way. Oracle does not officially sponsor, approve, or endorse this site or its content and if notify any such I am happy to remove. Product and company names mentioned in this website may be the trademarks of their respective owners and published here for informational purpose only. This is my personal blog. The views expressed on these pages are mine and learnt from other blogs and bloggers and to enhance and support the DBA community and this web blog does not represent the thoughts, intentions, plans or strategies of my current employer nor the Oracle and its affiliates or any other companies. And this website does not offer or take profit for providing these content and this is purely non-profit and for educational purpose only. If you see any issues with Content and copy write issues, I am happy to remove if you notify me. Contact Geek DBA Team, via geeksinsights@gmail.com

Pages

Grid Control: Configuring targets in grid control

Once the grid agent has been installed on target servers, we have to log to Grid control and configure the targets located by the agent,
in order to collect the metrics by agent and upload to OMS, (typically dbnsmp password etc to be provided) other wise the in GUI you will see metric collection errors

We have two options to configure the metric collections for the targets

Option 1:- Log to grid control and click on databases and then click on your respective database,
Go to Target --> Databases --> Select your database target --> Configure.
At a minimum, update DBSNMP password and verify/change listener port.

If the database to be configured is not shown in the list of available targets,
Click Add Database, provide HOST name and OEMGC will discover all databases on that host.

Some times you do not have a sysman password or the authentication password to log into OMS, in this cases you can use manual approach via emcli by logging into target server where you want to configure. Here is the second option.

Option 2:- Configure the targets manually via command line using emcli config agent
1) $AGENT_HOME/emctl config agent list_targets, identify the targets known to that agent

From the list target, pick the name of the target and type and use in step 2 below.
For Example:-
$AGENT_HOME/bin/emctl config agent list_targets
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
[targetserver:3872, oracle_emd]
[CRS_11g_Prod, cluster]
[targetserver, host]
[11gr2_RAC1, oracle_database]
[+ASM1_targetserver, osm_instance]
[TEST_TEST, oracle_database]
[LISTENER_targetserver_targetserver, oracle_listener]
[LISTENER_targetserver0_targetserver, oracle_listener]

2) Config agent credentials for target type oracle_database
(though they were rac_database , configure under oracle_database target type only)

Rac Node 2: Instance TEST1
oracle@targetserver1:/u01/gi/Agent11g/agent11g/bin>
./emctl config agent credentials TEST_TEST1:oracle_database
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Name = TEST_TEST, Type = oracle_database
Want to change for "UserName" (y/n):n
Want to change for "password" (y/n):y
Enter the new value for "password" :********
Re-enter the new value for "password" :********
EMD reload completed successfully

Rac Node 2: Instance TEST2

oracle@targetserver2:/u01/gi/Agent11g/agent11g/bin>
./emctl config agent credentials TEST_TEST2:oracle_database
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Name = TEST_TEST, Type = oracle_database
Want to change for "UserName" (y/n):n
Want to change for "password" (y/n):y
Enter the new value for "password" :********
Re-enter the new value for "password" :********
EMD reload completed successfully

Non - RAC database RAC1
oracle@targetserver:/u01/gi/Agent11g/agent11g/bin>
./emctl config agent credentials 11gr2_RAC1:oracle_database
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Name = TEST_TEST, Type = oracle_database
Want to change for "UserName" (y/n):n
Want to change for "password" (y/n):y
Enter the new value for "password" :********
Re-enter the new value for "password" :********

-Thanks
Geek DBA

Comments are closed.