Thursday, December 15, 2011

How to install Oracle Intelling Agent in Solaris, Linux or AIX

Summary

 

This document is intended as a guide for the processes and procedures to install oracle intelligent agent on Solaris, AIX or Linux servers.

 

The Installation process will be done using OUI in silent mode.

 

Oracle Intelligent agent can be installed on any target, regardless if in the server there is any Oracle product installed

 

Oracle Intelligent agent is used to monitoring and Administrating DBs, servers, OS and applications, gathering information and submitting to a Central repository called OMS.

 

We assume that ports to communicate between OMS and Target are already opened, in other words, there is communications between OMS and targets

Pre-Task

Determine the Operation system and bit of the target server

 

Login onto the server and using the following command will return the system name, not necessary

 

$ uname -s

 

AIX                 => For IBM AIX

SunOS             => For Sun Solaris

Linux               => For Linux

 

Determine if our OS is 32 or 64 bits

 

AIX

 

The command is:

 

$ getconf -a | grep KERN

 

The output will be like:

 

KERNEL_BITMODE: 64

 

This command can also be used:

 

$ file /usr/lib/boot/unix*

 

An output of the type:

64-bit XCOFF executable or object module not stripped will indicate it is 64 bit platform

 

For a 32-bit platform, the output will be like:

executable (RISC System/6000) or object module not stripped

 

HP-UX

 

The command is:

 

$ /usr/bin/ getconf KERNEL_BITS

 

It will return 32 or 64, accordingly.

 

This command can also be used:

 

$ /usr/bin/file /stand/vmunix

 

If this is 64-bit:

/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)

 

If this is 32-bit :

/stand/vmunix: PA-RISC1.1 executable -not stripped

 

SOLARIS

 

Solaris operating systems allow co-existence of 32-bit and 64-bit files.

The command is:

 

$ /usr/bin/isainfo -v

or

$ /usr/bin/isainfo -kv

 

If the system is running on 32-bit mode:

32-bit sparc application

 

If it is running on a 64 bit mode:

64-bit sparcv9 applications

32-bit sparc applications

 

LINUX

 

$ getconf LONG_BIT

 

This will return 32 or 64; based on OS bitness.

 

OR

 

$ uname -a

 

If the output of the above command contains:

 

x86_64

ia64

This indicates that it is a 64-bit platform.

Else it is a 32-bit platform.

Download binaries from OTN

Knowing the Operation system and bitness, go to oracle OTN to download binaries.

http://www.oracle.com/technetwork/oem/grid-control/downloads/index.html

Click on Oracle Enterprise Manager Grid Control Management Agent (All Releases)

Select the agent accordingly to your system; please make sure to take the latest version, unless other is indicated, for our case 11.1.0.1.0

 Test communication between OMS and Target

 

Verify that there is connectivity to the OMS hostname and the port from the machine where the Agent needs to be installed, please do the following test:

 

From OMS (my_oms_server)

 

$ telnet <target_server> 3872

 

And

 

$ telnet <target_server> <listener_port>

 

Ex.

 

$ telnet my_target_server 3872

$ telnet my_target_server 1521

 

 

From the target server:

 

$ telnet my_oms_server 1159

Installation

Agent Installation.

 

After you are tested the connectivity, move the zip file to the target server and uzipped on stage area

 

$ cd /<stage_area>

$ unzip –x Linux_x86_64_Grid_Control_agent_download_11_1_0_1_0.zip

 

Copy the response file also to the stage area (additional_agent.rsp)

 

Edit and change your some parameters accordingly, basically you need to change just few, the response file is currently full configured.

 

Oracle agent home $AGENT_HOME

 

Please, make sure that the files system have at least 1 Gb available for agent installation, the directory belongs to Oracle owner. ORACLE_AGENT_HOME_LOCATION:<String> The location of oracle agent home. Agent home "agent11g" would be created under the directory specified by ORACLE_AGENT_HOME_LOCATION.

 

ORACLE_AGENT_HOME_LOCATION=/u01/app/oracle

 

FOR Stand alone

 

Comment the following line:

 

#CLUSTER_NODES:<StringList>

 

For RAC

 

Uncomment following line and add the nodes names accordingly:

 

CLUSTER_NODES=" rac_node1, rac_node2"

 

To identify the nodes on your system:

 

$ CRS_HOME/bin/ $ olsnodes -n

rac_node1    1

rac_node2    2

 

Be sure to remove any ORACLE_HOME, NLS, LIB*, or any other environment variable you would set for an Oracle product from the current session where you will be installing the Agent.  Also, make sure that your software owner user default login script does not set Oracle specific environment variables.

 

Run the agent installer in silent mode:

 

$ runInstaller -silent -responseFile <path of responce file> -noconfig

 

Ex.

 

$ runInstaller -silent –responseFile /tmp/agent/additional_agent.rsp -noconfig

 

In RAC at the end of the installation you will need to run manually the command showed in the second node.

 

 

oracle@rac_node1.mycompany.com:/tmp/agent/linux_x64/agent>./runInstaller -silent -responseFile /tmp/agent/additional_agent.rsp -noconfig

Starting Oracle Universal Installer...

 

Checking Temp space: must be greater than 150 MB.   Actual 657 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 18877 MB    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-08-18_10-29-51PM. Please wait ...oracle@rac_node1.mycompany.com:/tmp/agent/linux_x64/agent>*** Check for updates ***

*** Select Installation Type ***

*** Check Prerequisites ***

*** Specify Oracle Management Service Location ***

*** Customize Ports ***

*** Review ***

 

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

Summary

Global Settings

    Source: /tmp/agent/linux_x64/agent//stage/../stage/products.xml

    Oracle Home: /u01/app/oracle/product/11.2.0/agent11g (agent11g1)

    Node Name: rac_node1

    Node Name: rac_node2

    Installation Type: Complete

Product Languages

   English

Space Requirements

   /u01/ Required 1.04GB : Available 10.23GB

   /tmp/ Required 34MB (only as temporary space) : Available 448MB

Remote Nodes

            rac_node2

                /u01/: Required 1.04GB : Available 43.04GB

                /tmp/: Required 0KB : Available 1.31GB

New Installations (58 products)

   Oracle Management Agent 11.1.0.1.0

   Agent Virtualization 11.1.0.1.0

   Enterprise Manager Agent 11.1.0.1.0

   Enterprise Manager Agent Core Files 11.1.0.1.0

   Secure Socket Layer 11.1.0.7.0

   Oracle Recovery Manager 11.1.0.7.0

   Enterprise Manager Common Files 11.1.0.1.0

   Enterprise Manager Common Core Files 11.1.0.1.0

   Required Support Files 11.1.0.7.0

   Oracle RAC Required Support Files-HAS 11.1.0.7.0

   Oracle JDBC/THIN Interfaces 11.1.0.7.0

   Oracle JDBC/OCI Instant Client 11.1.0.7.0

   Oracle Globalization Support 11.1.0.7.0

   Oracle Net Required Support Files 11.1.0.7.0

   SSL Required Support Files for InstantClient 11.1.0.7.0

   LDAP Required Support Files 11.1.0.7.0

   Oracle Globalization Support 11.1.0.7.0

   Perl Interpreter 5.10.0.0.1

   Perl Modules 5.10.0.0.1

   Expat libraries 2.0.1.0.1

   XML Parser for Java 11.1.0.7.0

   Precompiler Required Support Files 11.1.0.7.0

   RDBMS Required Support Files 11.1.0.7.0

   RDBMS Required Support Files for Instant Client 11.1.0.7.0

   Parser Generator Required Support Files 11.1.0.7.0

   Platform Required Support Files 11.1.0.7.0a

   Patch for Oracle Process Management Notification 10.1.3.4.0

   Oracle Process Management Notification 10.1.3.0.0

   Agent Required Support Files 10.2.0.4.1

   XDK Required Support Files 11.1.0.7.0

   SQL*Plus Required Support Files 11.1.0.7.0

   Secure Socket Layer 11.1.0.7.0

   Oracle Core Required Support Files 11.1.0.7.0

   Enterprise Manager Agent for Grid Control 11.1.0.1.0

   Installation Common Files 11.1.0.7.0

   Oracle Configuration Manager 10.3.2.1.0

   Oracle Bali Share 11.1.1.2.0

   Enterprise Manager Application Server Integrator Plugin -- Agent Support 11.1.0.2.0

   Oracle Dynamic Monitoring Service Patch 10.1.2.3.0

   Oracle Dynamic Monitoring Service 10.1.2.1.0

   Enterprise Manager Application Server Plugin -- Agent Support 11.1.0.1.0

   Enterprise Manager Application Server Plugin -- Common Support 11.1.0.1.0

   Enterprise Manager Database Plugin -- Agent Support 11.1.0.1.0

   Enterprise Manager Siebel Plugin -- Agent Support 11.1.0.1.0

   Provisioning Advisor Framework Common Files For Agent and OMS 11.1.0.1.0

   Common component for  Virtualization 11.1.0.1.0

   Oracle Notification Service (eONS) 11.2.0.1.0

   Enterprise Manager Collaboration Suite Plugin -- Agent Support 11.1.0.1.0

   Oracle Notification Service 10.1.3.0.0

   Oracle Required Support Files 32 bit 11.1.0.7.0

   OracleAS HTTP Client 11.1.1.2.0

   OracleAS J2EE BULKOPS 11.0.0.0.0

   Oracle Wallet Manager 11.1.0.7.0

   Oracle Security Developer Tools 11.1.0.7.0

   Oracle Universal Installer 11.1.0.8.0

   Oracle One-Off Patch Installer 11.1.0.8.0

   Installer SDK Component 11.1.0.8.0

   Sun JDK 1.6.0.14.0

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

Installation in progress

.........................Installation in progress

.................

Install successful

Linking in progress

 

Link successful

Setup in progress

......

Setup successful

....Warning: Error while copying directory /u01/app/oracle/product/11.2.0/agent11g with exclude file list '/tmp/OraInstall2011-08-18_10-29-51PM/installExcludeFile.lst' to nodes 'rac_node2'. [PRKC-1002 : All the submitted commands did not execute successfully]

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

rac_node2:

    WARNING

 

    ... (more errors on this node).

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

 

Refer to '/u01/app/oraInventory/logs/installActions2011-08-18_10-29-51PM.log' for details. You may fix the errors on the required remote nodes. Refer to the install guide for error recovery. Click 'Yes' if you want to proceed. Click 'No' to exit the install. Do you want to continue?

.

 

 

 

 

 

ERROR: Remote 'AttachHome' failed on nodes: 'rac_node2'. Refer to '/u01/app/oraInventory/logs/installActions2011-08-18_10-29-51PM.log' for details.

You can manually re-run the following command on the failed nodes after the installation:

 /u01/app/oracle/product/11.2.0/agent11g/oui/bin/runInstaller -attachHome -noClusterEnabled ORACLE_HOME=/u01/app/oracle/product/11.2.0/agent11g ORACLE_HOME_NAME=agent11g1 CLUSTER_NODES=rac_node1,rac_node2 "INVENTORY_LOCATION=/u01/app/oraInventory" LOCAL_NODE=<node on which command is to be run>.

 

Ignore the above error and go to the second node and run the command:

 

oracle@rac_node2.mycompany.com:/u01/app/oracle/product/11.2.0/agent11g/oui/bin>./runInstaller -attachHome -noClusterEnabled ORACLE_HOME=/u01/app/oracle/product/11.2.0/agent11g ORACLE_HOME_NAME=agent11g1 CLUSTER_NODES=rac_node1,rac_node2 "INVENTORY_LOCATION=/u01/app/oraInventory" LOCAL_NODE=rac_node2

Starting Oracle Universal Installer...

 

Checking swap space: must be greater than 500 MB.   Actual 19538 MB    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-08-18_10-38-06PM. Please wait ...oracle@rac_node2.mycompany.com:/u01/app/oracle/product/11.2.0/agent11g/oui/bin>The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /u01/app/oraInventory

Please execute the 'null' script at the end of the session.

'AttachHome' was successful.

Post-Task

 

Run root.sh

 

As root run $AGENT_HOME/root.sh

For RAC need to run in both nodes

 

Go to $AGENT_HOME/bin and run the following command:

 

Configure agent

 

Please make sure the $AGENT_HOME/sysman/config/emd.properties parameter EMD_URL is correctly setup, if not make changes as follow.

 

EMD_URL=https://<target_server>:3872/emd/main

 

Ex.

 

EMD_URL=https://rac_node1.mycompany.com:3872/emd/main

 

For Stand Alone

 

Run following command to config agent

 

$ $AGENT_HOME/bin/agentca –d

 

For RAC

 

Need to run in both nodes

 

$ $AGENT_HOME/bin/emctl –f –n <cluster_name> -c <node1, node2…>

 

 

To get the node name

 

$ $CRS_HOME/bin/cemutlo –n

 

Or

 

$ $CRS_HOME/bin/ocrdump


 

Patch Agent

 

From MOS (My Oracle Support, AKA Metalink) download the latest recommended patch for the agent Note Id: 822485.1

 

Apply the patch as per instructions on README file.

 


 

Response File

 

##########################################################

## copyright (c) 1999, 2010 Oracle. All rights reserved.                            ##

##                                                                                                            ##

## Specify values for the variables listed below to customize                    ##

## your installation.                                                                                  ##

##                                                                                                            ##

## Each variable is associated with a comment. The comment                 ##

## identifies the variable type.                                                                  ##

##                                                                                                            ##

## Please specify the values in the following format:                                ##

##                                                                                                            ##

##         Type         Example                                                                     ##

##         String       "Sample Value"                                                           ##

##         Boolean      True or False                                                            ##

##         Number       1000                                                                        ##

##         StringList   {"String value 1","String Value 2"}                              ##

##                                                                                                            ##

## The values that are given as <Value Required> need to be                ##

## specified for a silent installation to be successful.                                ##

##                                                                                                            ##

##                                                                                                            ##

## This response file is generated by Oracle Software                             ##

## Packager.                                                                                           ##

## In RED you need to take care and/or change                                   ##

##########################################################

 

RESPONSEFILE_VERSION=2.2.1.0.0

 

#################################################################################

#Inputs for Oracle Configuration Manager

#################################################################################

#-------------------------------------------------------------------------------

#SECURITY_UPDATES_VIA_MYORACLESUPPORT:<Boolean> Whether security updates are reqi-

#        uired via My Oracle Support

#DECLINE_SECURITY_UPDATES:<Boolean> Whether security updates should be declined.

#MYORACLESUPPORT_USERNAME & MYORACLESUPPORT_PASSWORD:<String> User name and passw-

#        ord for My Oracle Support access, these will be effected only when SECU-

#        RITY_UPDATES_VIA_MYORACLESUPPORT=true

#COLLECTOR_SUPPORTHUB_URL:<String> If there is not direct connection and Support

#        hub is deployed. Need to specify that URL.

#-------------------------------------------------------------------------------

SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

DECLINE_SECURITY_UPDATES=true

#MYORACLESUPPORT_USERNAME=<Value Unspecified>

#MYORACLESUPPORT_PASSWORD=<Value Unspecified>

#COLLECTOR_SUPPORTHUB_URL=<Value Unspecified>

 

################################################################################

#PARAMETERS FOR SOFTWARE UPDATES

################################################################################

#-------------------------------------------------------------------------------

#INSTALL_UPDATES_SELECTION:<String>

# Option 1. If you want to skip the software updates, provide

#      INSTALL_UPDATES_SELECTION="skip"

# Option 2. If you have already downloaded the updates then provide

#      INSTALL_UPDATES_SELECTION="staged"

# If you choose the Option 2 then make sure you also provide STAGE_LOCATION.

#STAGE_LOCATION:<String> Stage location for software updates. It will be effected

#       only when INSTALL_UPDATES_SELECTION is  set to "staged"

#-------------------------------------------------------------------------------

INSTALL_UPDATES_SELECTION="skip"

#STAGE_LOCATION=<Value Unspecified>

 

################################################################################

#PROXY DETAILS FOR SECURITY UPDATES/ SOFTWARE UPDATES

################################################################################

#-------------------------------------------------------------------------------

#PROXY_USER:<String> User name for proxy access.

#PROXY_PWD:<String> Password for proxy access.

#PROXY_HOST:<String> Server providing proxy access.

#PROXY_PORT:<String> Port for proxy access.

#------------------------------------------------------------------------------

#PROXY_USER=<Value Unspecified>

#PROXY_PWD=<Value Unspecified>

#PROXY_HOST=<Value Unspecified>

#PROXY_PORT=<Value Unspecified>

 

################################################################################

#Various inputs required for Installation and Configuration

################################################################################

#-------------------------------------------------------------------------------

#ORACLE_AGENT_HOME_LOCATION:<String> The location of oracle agent home.

#Agent home "agent11g" would be created under the directory specified by

#ORACLE_AGENT_HOME_LOCATION.

#-------------------------------------------------------------------------------

ORACLE_AGENT_HOME_LOCATION=/u01/app/oracle

 

#-------------------------------------------------------------------------------

#DEINSTALL_LIST:<StringList> List of components to be deinstalled during a

#      deinstall session.The following choices are available. The value should

#      contain only one of these choices.The choices are of the form

#      Internal Name, Version : External name. Please use the internal name and

#      version while specifying the value.

#    oracle.sysman.top.agent, 10.2.0.0.0 : Oracle Management Agent 10.2.0.0.0

#    oracle.sysman.top.em_seed, 10.2.0.0.0 : Oracle Enterprise Manager Repository Database 10.2.0.0.0

#    oracle.sysman.top.oms, 10.2.0.0.0 : Oracle Enterprise Manager Grid Console 10.2.0.0.0

#-------------------------------------------------------------------------------

DEINSTALL_LIST={"oracle.sysman.top.agent","11.1.0.1.0"}

 

#-------------------------------------------------------------------------------

#b_silentInstall:<Boolean> The user should not change this value

#CLUSTER_NODES:<StringList> This variable represents the cluster node names

#       selected by the user for installation.

# if you are installing non-RAC, please comment CLUSTER_NODES

#-------------------------------------------------------------------------------

b_silentInstall=true

CLUSTER_NODES="rac_node1,rac_node2"

 

#-------------------------------------------------------------------------------

#TOPLEVEL_COMPONENT:<StringList> The top level component to be installed in the

#      current session.Value should contain only one of the following available

#      choices.The choices are of the form Internal Name, Version : External name.

#      Please use the internal name and version while specifying the value.

#    oracle.sysman.top.agent, 10.3.0.0.0 : Oracle Management Agent 10.3.0.0.0

#    Example: TOPLEVEL_COMPONENT = {"oracle.sysman.top.agent","10.3.0.0.0"}

#-------------------------------------------------------------------------------

TOPLEVEL_COMPONENT={"oracle.sysman.top.agent","11.1.0.1.0"}

 

#-------------------------------------------------------------------------------

#SELECTED_LANGUAGES:<StringList> Languages in which the components will be installed.

#      The following choices are available. The value should contain only one of

#      these choices.The choices are of the form Internal Name : External name.

#      Please use the internal name while specifying the value.

#    en,   : English

#    de,   : German

#    es,   : Latin American Spanish

#    es_MX,   : Mexican Spanish

#    es_ES,   : Spanish

#    fr,   : French

#    fr_CA,   : Canadian French

#    it,   : Italian

#    iw,   : Hebrew

#    ja,   : Japanese

#    ko,   : Korean

#    pt_BR,   : Brazilian Portuguese

#    zh_CN,   : Simplified Chinese

#    zh_TW,   : Traditional Chinese

#Example: SELECTED_LANGUAGES = {"en"}

#-------------------------------------------------------------------------------

#SELECTED_LANGUAGES={"en"}

 

#-------------------------------------------------------------------------------

#COMPONENT_LANGUAGES:<StringList> Languages in which the components will be installed.

#      The following choices are available. The value should contain only one of

#      these choices.The choices are of the form Internal Name : External name.

#      Please use the internal name while specifying the value.

#    en,   : English

#    de,   : German

#    es,   : Latin American Spanish

#    es_MX,   : Mexican Spanish

#    es_ES,   : Spanish

#    fr,   : French

#    fr_CA,   : Canadian French

#    it,   : Italian

#    iw,   : Hebrew

#    ja,   : Japanese

#    ko,   : Korean

#    pt_BR,   : Brazilian Portuguese

#    zh_CN,   : Simplified Chinese

#    zh_TW,   : Traditional Chinese

#Example: COMPONENT_LANGUAGES = {"en"}

#-------------------------------------------------------------------------------

COMPONENT_LANGUAGES={"en"}

 

#-------------------------------------------------------------------------------

#OMS_HOST:my_oms_server.mycompany.com:

#OMS_PORT:1159

#AGENT_REGISTRATION_PASSWORD:mycompany1234

#     establish a secure connection to the OMS.

#-------------------------------------------------------------------------------

OMS_HOST=my_oms_server.mycompany.com

OMS_PORT=1159

AGENT_REGISTRATION_PASSWORD=mycompany_2011

 

#-------------------------------------------------------------------------------

#s_agentServiceName:<String> Sets the agent Service Name and this variable can be

#      used to overrite the agent service name calculated by the install. This is

#      required for only Windows.

#      Example:

#      s_agentServiceName = "Oracleagent10gAgent"      ;  default value

#      s_agentServiceName = "GridAgent"               ;  User specified value

#-------------------------------------------------------------------------------

#s_agentServiceName=""

 

####################################################################################

#Please Don't change the values of these variables

####################################################################################

#-------------------------------------------------------------------------------

#FROM_LOCATION:<String> Complete path to the products.xml.

#b_upgrade:<Boolean> "whether it is Upgrade or not"

#EM_INSTALL_TYPE:<STRING> install type

#-------------------------------------------------------------------------------

FROM_LOCATION="../stage/products.xml"

b_upgrade=false

EM_INSTALL_TYPE="AGENT"