Oracle Grid Agent Deployment on RAC 10gR2

download Oracle Grid Agent Deployment on RAC 10gR2

of 9

Transcript of Oracle Grid Agent Deployment on RAC 10gR2

  • 8/3/2019 Oracle Grid Agent Deployment on RAC 10gR2

    1/9

    - 1 -

    Installation of Grid Control Server and Agent Part II

    This document is to gain hands on to deploy Grid Agent, and no ware in match to

    implement this on a Production Server or on Business units. Subject of usage should bewith License from Oracle Corporation.

    Oracle GRID : 10.2.0.1

    Oracle GRID Server : oraclegrid.mycorpdomain.com

    Target Servers Information:

    Oracle Cluster : 10.2.0.4Oracle RAC Database : 10.2.0.4

    Operating System : Enterprise Linux 4, Update 2 2.6.42.0.0.0.1.ELhugemem

    References:

    1) Oracle Enterprise Manager Grid Control Quick Installation Guide for Linux x8610gRelease 2 (10.2)Part Number B28091-03

    http://download.oracle.com/docs/cd/B16240_01/doc/install.102/b28091/b28091_03.htm

    2) Deploying the Management Agent

    http://download.oracle.com/docs/cd/B16240_01/doc/install.102/e10953/deploying_the_mgt_agent.htm#CIHHJJJJ

    3) Oracle 10g Grid & Real Application Clusters Mike Ault & Madhu Tummahttp://www.rampant-books.com/book_2004_1_10g_grid.htm

  • 8/3/2019 Oracle Grid Agent Deployment on RAC 10gR2

    2/9

    - 2 -

    1. Oracle Enterprise Manager Grid Control should be running and accessible onthe Grid utility server.

    oraclegrid-> $OMS_HOME/opmn/bin/opmnctl status

    Processes in Instance: EnterpriseManager0.oraclegrid.mycorpdomain.com-------------------+--------------------+---------+---------ias-component | process-type | pid | status-------------------+--------------------+---------+---------DSA | DSA | N/A | DownHTTP_Server | HTTP_Server | 6024 | AliveLogLoader | logloaderd | N/A | Downdcm-daemon | dcm-daemon | 10074 | AliveOC4J | home | 7243 | AliveOC4J | OC4J_EMPROV | 6022 | AliveOC4J | OC4J_EM | 7833 | AliveWebCache | WebCache | 6045 | AliveWebCache | WebCacheAdmin | 7242 | Alive

  • 8/3/2019 Oracle Grid Agent Deployment on RAC 10gR2

    3/9

    - 3 -

    2. Set the environment (.profile) for the Enterprise Grid Control agent as below

    export OMR_HOME=/u01/app/oracle/product/OracleHomes/db10gexport OMS_HOME=/u01/app/oracle/product/OracleHomes/oms10gexport OMA_HOME=/u01/app/oracle/product/OracleHomes/agent10gexport OPMN_HOME=/u01/app/oracle/product/OracleHomes/oms10g/opmn

    3.run ./runInstaller, from the staging area of the 10g Grid Control softwarelocation as a Oracle User.

  • 8/3/2019 Oracle Grid Agent Deployment on RAC 10gR2

    4/9

    - 4 -

    4. Specify Installation Type Screen opens, selectAdditional Management Agent to installOEM Grid Agent and click Next

    5. Specify the Oracle Home location.

  • 8/3/2019 Oracle Grid Agent Deployment on RAC 10gR2

    5/9

    - 5 -

    6. Select both the clustered nodes, here its rac1, rac2. By default only one node will be selected.

    7. Product-Specific Prerequisite checks

  • 8/3/2019 Oracle Grid Agent Deployment on RAC 10gR2

    6/9

    - 6 -

    8. Specify Oracle Management Service location enter fully qualified Hostname of theManagement server.

    9. Specify Agent Registration Password, which is entered at the time of Oracle EM Grid ControlServer installation.

  • 8/3/2019 Oracle Grid Agent Deployment on RAC 10gR2

    7/9

    - 7 -

    10. Summary Screen cross check before you proceed here

    11. Installation Screen

  • 8/3/2019 Oracle Grid Agent Deployment on RAC 10gR2

    8/9

    - 8 -

    12. Remote Operations in Progress it will Install Oracle Grid Agent on RAC 2 as well.

    13. Execute the script as a root as on the both the Cluster nodes, one after the other, and thenclickOKto continue further.

    [root@rac1 ~]# /u01/app/oracle/OracleHomes/agent10g/root.shRunning Oracle10 root.sh script...

    The following environment variables are set as:ORACLE_OWNER= oracleORACLE_HOME= /u01/app/oracle/OracleHomes/agent10g

    Enter the full pathname of the local bin directory: [/usr/local/bin]:The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)[n]: y

  • 8/3/2019 Oracle Grid Agent Deployment on RAC 10gR2

    9/9

    - 9 -

    Copying dbhome to /usr/local/bin ...The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]: y

    Copying oraenv to /usr/local/bin ...The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]: y

    Copying coraenv to /usr/local/bin ...Entries will be added to the /etc/oratab file as needed by

    Database Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.Finished product-specific root actions.************ NODE 2 *************************[root@rac2 ~]# hostnamerac2.mycorpdomain.com[root@rac2 ~]#[root@rac2 ~]# /u01/app/oracle/OracleHomes/agent10g/root.shRunning Oracle10 root.sh script...The following environment variables are set as:

    ORACLE_OWNER= oracleORACLE_HOME= /u01/app/oracle/OracleHomes/agent10g

    Enter the full pathname of the local bin directory: [/usr/local/bin]:The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)[n]: y

    Copying dbhome to /usr/local/bin ...

    The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]: yCopying oraenv to /usr/local/bin ...

    The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]: y

    Copying coraenv to /usr/local/bin ...Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.Finished product-specific root actions.

    14. End of Installation of Agent.

    This is Installation only, Please refer my next document for Setup and configuration of OEM forthe Cluster Database.Comments, Inputs and suggestions are welcome.

    Ravi Prakash, http://ravidba-oracle.blogspot.com/