Monday, September 27, 2010

Install Oracle RAC 11gR2 on Vmware with Windows 7 64-bit as host OS and Linux as guest(Part 11, Add Grid Control Agent to the new node in cluster)

We may have a hundred thousand folds of wisdom, even this does not help us
understand God.



Index of all the posts of Gurpartap Singh's Blog


Steps to install grid control agent to the new node in a cluster.

To copy binaries use following command form Grid home of existing server in cluster, i.e. $ORACLE_HOME/oui/bin:

./addNode.sh -silent 'CLUSTER_NEW_NODES={rac3}'

and it will finish like following:

oracle : rac1.rac.meditate.com : @AGENT : /u01/app/oracle/product/agent10g/oui/bin
/agent10g/oui/bin
$ ./addNode.sh -silent 'CLUSTER_NEW_NODES={rac3}'
Starting Oracle Universal Installer...

No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
Oracle Universal Installer, Version 10.2.0.5.0 Production
Copyright (C) 1999, 2009, Oracle. All rights reserved.


Performing tests to see whether nodes rac2,rac3 are available
............................................................... 100% Done.

..
-----------------------------------------------------------------------------
Cluster Node Addition Summary
Global Settings
Source: /u01/app/oracle/product/agent10g
New Nodes
Space Requirements
New Nodes
rac3
/: Required 1.19GB : Available 12.70GB
Installed Products
Product Names
Oracle Management Agent 10.2.0.5.0
Sun JDK 1.5.0.17.0
Installer SDK Component 10.2.0.5.0
Oracle One-Off Patch Installer 10.2.0.4.2
Oracle Universal Installer 10.2.0.5.0
Oracle Notification Service (eONS) - native client library 11.2.0.0.2
Common component for Virtualization 10.2.0.5.0
Agent Virtualization 10.2.0.5.0
Provisioning Advisor Framework Common Files For Agent and OMS 10.2.0.5.0
OracleAS J2EE BULKOPS 11.0.0.0.0
Enterprise Manager Siebel Plugin -- Agent Support 10.2.0.5.0
Bali Share 1.1.18.0.0
Oracle Application Server Repository API 10.1.2.0.2
Oracle Dynamic Monitoring Service 10.1.2.1.0
Oracle Dynamic Monitoring Service Patch 10.1.2.3.0
Enterprise Manager Application Server Plugin -- Common Support 10.2.0.5.0
Enterprise Manager Database Plugin -- Agent Support 10.2.0.5.0
Oracle Workspaces Plugin for Agent 10.2.0.3.0
Oracle Voice Mail and Fax Files Plugin for Agent 10.2.0.3.0
Oracle Ultra Search Plugin for Oracle Management Agent 10.2.0.3.0
Oracle Email components for Enterprise Manager Grid Control Agent 10.2.0.3.0
Oracle Collaboration Suite Web Access Agent Plugin 10.2.0.2.0
Oracle Mobile Collaboration Server Plugin for Agent 10.2.0.3.0
Oracle Content Services Plugin for Oracle Management Agent 10.2.0.3.0
Oracle Discussions Plugin for Agent 10.2.0.3.0
Enterprise Manager Collaboration Suite Plugin -- Agent Support 10.2.0.5.0
Oracle Content DB Plugin for Oracle Management Agent 10.2.0.3.0
Wireless EM Agent 10.2.0.3.0
Oracle Workflow Agent for Grid Control 10.2.0.3.0
Reports Services EM Plugin - Agent portion 10.2.0.2.0
Oracle Portal agent 10.2.0.3.0
Enterprise Manager BPEL Process Manager Plugin -- Agent Plugin 10.2.0.2.0
Enterprise Manager Integration InterConnect Plugin -- Agent Plugin 10.2.0.2.0
Enterprise Manager Integration B2B Plugin -- Agent Plugin 10.2.0.2.0
Oracle CM SDK and Oracle Files Plugin for Oracle Management Agent 10.2.0.3.0
Forms Services Management Agent Plugin 10.2.0.2.0
Oracle SSO Agent 10.2.0.3.0
Discoverer EM plugin - agent portion 10.2.0.2.0
Enterprise Manager BPEL Process Analytics Plugin -- Agent Plugin 10.2.0.2.0
ADF BC agent for OracleAS GC 10.2.0.3.0
Enterprise Manager Application Server Plugin -- Agent Support 10.2.0.5.0
Oracle Notification Service 10.1.2.1.0
Oracle Configuration Manager 10.3.1.0.0
Installation Common Files 10.2.0.1.0
Installation Common Files Patch 10.2.0.4.0
Enterprise Manager Agent for Grid Control 10.2.0.5.0
SQL*Plus Required Support Files 10.2.0.1.0
SQL*Plus Required Support Files Patch 10.2.0.4.0
DBJAVA Required Support Files 10.2.0.1.0
DBJAVA Required Support Files Patch 10.2.0.4.0
SSL Required Support Files for InstantClient 10.2.0.1.0
SSL Required Support Files for InstantClient Patch 10.2.0.4.0
Oracle Core Required Support Files 10.2.0.1.0
Oracle Core Required Support Files Patch 10.2.0.4.0
Platform Required Support Files 10.2.0.1.0
XDK Required Support Files 10.2.0.1.0
XDK Required Support Files Patch 10.2.0.4.0
Oracle Net Required Support Files 10.2.0.1.0
Oracle Net Required Support Files Patch 10.2.0.4.0
Parser Generator Required Support Files 10.2.0.1.0
RDBMS Required Support Files for Instant Client 10.2.0.1.0
RDBMS Required Support Files for Instant Client Patch 10.2.0.4.0
RDBMS Required Support Files 10.2.0.1.0
RDBMS Required Support Files Patch 10.2.0.4.0
Precompiler Required Support Files 10.2.0.1.0
Precompiler Required Support Files Patch 10.2.0.4.0
XML Parser for Java 10.2.0.1.0
XML Parser for Java Patch 10.2.0.4.0
Perl Interpreter 5.8.3.0.2
Oracle Globalization Support 10.2.0.1.0
Oracle Globalization Support Patch 10.2.0.4.0
LDAP Required Support Files 10.2.0.1.0
LDAP Required Support Files Patch 10.2.0.4.0
Secure Socket Layer 10.2.0.1.0
Secure Socket Layer Patch 10.2.0.4.0
Oracle JDBC/OCI Instant Client 10.2.0.1.0
Oracle JDBC/OCI Instant Client Patch 10.2.0.4.0
JDBC Common Files 10.2.0.1.0
Oracle JDBC Thin Driver for JDK 1.4 10.2.0.1.0
Oracle JDBC Thin Driver for JDK 1.4 Patch 10.2.0.4.0
Oracle RAC Required Support Files-HAS 10.2.0.1.0
Oracle RAC Required Support Files-HAS Patch 10.2.0.4.0
Agent Required Support Files 10.2.0.1.0
Agent Required Support Files Patch 10.2.0.4.0
Required Support Files 10.2.0.1.0
Enterprise Manager Common Core Files 10.2.0.5.0
Enterprise Manager Common Files 10.2.0.5.0
Oracle Recovery Manager 10.2.0.1.0
Oracle Recovery Manager Patch 10.2.0.4.0
Enterprise Manager Agent Core Files 10.2.0.5.0
Enterprise Manager Agent 10.2.0.5.0
-----------------------------------------------------------------------------


Instantiating scripts for add node (Tuesday, September 21, 2010 7:01:00 PM UTC)
. 1% Done.
Instantiation of add node scripts complete

Copying to remote nodes (Tuesday, September 21, 2010 7:01:03 PM UTC)
............................................................................................... 96% Done.
Home copied to new nodes

Saving inventory on nodes (Tuesday, September 21, 2010 7:01:54 PM UTC)
. 100% Done.
Save inventory complete
WARNING:
The following configuration scripts need to be executed as the "root" user in each cluster node.
#!/bin/sh
#Root script to run
/u01/app/oracle/product/agent10g/root.sh #On nodes rac3
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts in each cluster node

The Cluster Node Addition of /u01/app/oracle/product/agent10g was successful.
Please check '/tmp/silentInstall.log' for more details.
you have mail in /var/spool/mail/oracle

oracle : rac3.rac.meditate.com : @AGENT : /u01/app/oracle/product/agent10g
$

--------------------------------------------
then on new node run root.sh:

After that you just need to run the root.sh and its output is as:

oracle : rac3.rac.meditate.com : @AGENT : /u01/app/oracle/product/agent10g
$ sudo /u01/app/oracle/product/agent10g/root.sh
Running Oracle10 root.sh script...

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/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]:
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

oracle : rac3.rac.meditate.com : @AGENT : /u01/app/oracle/product/agent10g
$

---------------------------------------------------------------------

Then you need to create a directory as 'fully qualified hostname' as a copy of any exsisting directory of the other server in the binaries on the
new node.

Under ORACLE_HOME of agent of new server execute the following:

oracle : rac3.rac.meditate.com : @AGENT : /u01/app/oracle/product/agent10g
$ cp -r rac1.rac.meditate.com rac3.rac.meditate.com

-----------------------------------------------------------------------

Now we will make a soft link for 'rac3' to point to this new directory under same please as:

oracle : rac3.rac.meditate.com : @AGENT : /u01/app/oracle/product/agent10g
$ ln -s rac3.rac.meditate.com rac3


and it looks like:

oracle : rac3.rac.meditate.com : @AGENT : /u01/app/oracle/product/agent10g
$ ls -lart grep rac3
drwxr-xr-x 5 oracle oinstall 4096 Sep 21 19:10 rac3.rac.meditate.com
lrwxrwxrwx 1 oracle oinstall 21 Sep 21 19:12 rac3 -> rac3.rac.meditate.com

oracle : rac3.rac.meditate.com : @AGENT : /u01/app/oracle/product/agent10g
$

-----------------------------------------------------------------------

Now we will need to modify two of the files:
targets.xml and emd.properties

Lets fist edit file targets.xml

Location of this file is:
/u01/app/oracle/product/agent10g/rac3/sysman/emd

and replace all occurences of rac1. with rac3. and
replace ASM1 with ASM3 and trim it to have just the cluster info and the ASM info as we don't have any other database here.
and now save it.


-----------------------------------------------------------------------

Now lets fix emd.properties file as:

/u01/app/oracle/product/agent10g/rac3/sysman/config

here replace all the occurrences of 'rac1' with 'rac3'

and save it.

----------------------------------------------------------------------

Now start agent and check its status as:

oracle : rac3.rac.meditate.com : @AGENT : /u01/app/oracle/product/agent10g/rac3/sysman/config
$ emctl start agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Starting agent ...... started.

oracle : rac3.rac.meditate.com : @AGENT : /u01/app/oracle/product/agent10g/rac3/sysman/config
$ emctl status agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 10.2.0.5.0
OMS Version : 10.2.0.5.0
Protocol Version : 10.2.0.5.0
Agent Home : /u01/app/oracle/product/agent10g/rac3
Agent binaries : /u01/app/oracle/product/agent10g
Agent Process ID : 2596
Parent Process ID : 2564
Agent URL : http://rac3.rac.meditate.com:3872/emd/main
Repository URL : http://gridcontrol.rac.meditate.com:4889/em/upload/
Started at : 2010-09-21 19:24:00
Started by user : oracle
Last Reload : 2010-09-21 19:24:00
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 5
Size of XML files pending upload(MB) : 1.19
Available disk space on upload filesystem : 47.69%
Last successful heartbeat to OMS : 2010-09-21 19:24:03
---------------------------------------------------------------
Agent is Running and Ready

oracle : rac3.rac.meditate.com : @AGENT : /u01/app/oracle/product/agent10g/rac3/sysman/config
$

Thats it !!!!


Then, how can we know the Truth (The True One), and how can we remove our
doubts?

The answer is to stay in the Will of God (doubts will clear up and we
will attain Him).

No comments:

Post a Comment