Install GC 10.2.0.5.0 on Enterprise Linux 4 x86 Using Existing DB (11g)_793870.1

rongshiyuan發表於2014-08-05

How to Install Grid Control 10.2.0.5.0 on Enterprise Linux 4 x86 Using the Existing Database (11g) Option (Doc ID 793870.1)


In this Document
  Goal
  Solution
  References


Applies to:

Enterprise Manager Grid Control - Version: 10.2.0.5 to 10.2.0.5 - Release: 10.2 to 10.2
Linux x86
Oracle Enterprise Linux 4.0
x86 32 bit (for Enterprise Linux only)

Goal

The software-only method of installation is specifically required for installation of Grid Control 10.2.0.5.0 on Oracle Enterprise Linux 4 or Red Hat Enterprise Linux 4 on x86 platforms with an existing 11g database for use as a repository database. This example demonstrates one successful scenario.

Note: .
Do NOT use this method to patch or upgrade any existing Grid Control installation.
This procedure does not apply to Linux installations on x86_64 platforms.


Note that filepath designations such as .../oms10g, .../agent10g and .../db10g are relative, represent generic locations, are for descriptive use only and indicate that the Parent Directory should be prepended to arrive at a usable filepath value. A descriptive character string such as ".../agent10g" should never be used in an installation exercise. The same is true for .../oraInventory, but in this case, the filepath to be prepended may not be the Parent Directory, rather the actual value should be that described in the /etc/oraInst.loc file.


For this exercise, the following configuration is used in the examples.


10.2.0.1.0 base product install stage: /u02/gc10201/
10.2.0.5.0 patchset install stage: /u02/gc10205/
Parent directory for installation: /u01/app/gc/
/oradata/ location for repository database: /u01/app/gc/oradata
/oraInventory location: /u01/app/oraInventory
All OS and DB access passwords, for simplicity: linux32
Existing respository database SID: db111
Database Oracle Home filepath: /u01/app/db111
OMS will be unlocked
Existing /etc/oraInst.loc pointing to /u01/app/oraInventory


Values used in response files and command executions must be altered if a different configuration is used.

These values are for demonstration use only and should be adapted to be applicable to the system receiving the installation.

For this example, Enterprise Linux 4 was installed with all required OS packages as described in the Installtion Guide.

Solution

Database Prerequisites:

All of the requirements of the Grid Control installation with a new database must be met as described in the Oracle? Enterprise Manager Grid Control Installation Guide, 10g Release 5 (10.2.0.5.0). This document describes general (i.e, must be an enterprise edition with fine grained access control active) and specific (i.e., initialization parameters) requirements for the existing database. Note that a default enterprise edition database installation is not sufficient for use as a Grid Control repository due to these general and specific requirements, but must be configured to meet them.

Additionally, the database must be free of any prior repository contents, whether for Database Control or Grid Control. Use emca, RepManager or the manual procedure in Note.278100.1 to remove an existing repository before installing Grid Control with the existing database. Use of the emca utility is described in chapter 1 of Oracle? Enterprise Manager Advanced Configuration, 10g Release 5 (10.2.0.5). Use of RepManager is described in chapter 9 of the same document, available on the OTN Enterprise Manager documentation site.

Lastly, the database must be a version currently certified for database support and use as a Grid Control repository as shown in the Certify section of My Oracle Support.



Software Only Procedure:

To install Enterprise Manager Grid Control 10.2.0.5.0 using an existing 11g database with the silent, software-only method, follow these steps:


A. Install Source Staging and Response File Preparation

1. Place the base product install stage for Linux (10.2.0.1.0) in an accessible directory: i.e., /u02/gc10201

2. Modify the base install response file for the "Grid Control with an existing database" install type, located at: /u02/gc10201/response/em_using existing_db.rsp.

Generic filepath form:

/response/em_using_existing_db.rsp

3. Alter the following parameters from default as follows (archive this file before alterations):

UNIX_GROUP_NAME="dba"
FROM_LOCATION="/u02/gc10201/oms/Disk1/stage/products.xml"
BASEDIR="/u01/app/gc"
INSTALLATION_NAME="r5"
s_reposHost="gamma.clspco.adelphia.net"
s_reposPort="1523"
s_reposSID="db111"
s_reposDBAPwd="linux32"
s_mgmtTbsName="/u01/app/oradata/db111/mgmt.dbf"
s_ecmTbsName="/u01/app/oradata/db111/mgmt_ecm_depot1.dbf"
s_securePassword="linux32"
s_securePasswordConfirm="linux32"
b_lockedSelected=false
s_reposPwd="linux32"
s_reposPwdConfirm="linux32"

 

Notes:

- "dba" must be a valid OS user group
- INSTALLATION_NAME is user selectable, but a value must be provided


4. Place the 10.2.0.5.0 Grid Control patchset in a different staging location, i.e., /u02/gc10205

5. Make a copy of the patchset response file located at:

/u02/gc10205/3731593/Disk1/response/patchset.rsp

generic filepath form:

//3731593/Disk1/response/patchset.rsp

6. Rename the copy in place to oms_patchset.rsp.

Alter the following parameters from default as follows in the oms_patchset.rsp file:

ORACLE_HOME="/u01/app/gc/oms10g"
b_softwareonly=true
s_sysPassword="linux32"
sl_pwdInfo={ "linux32" }
oracle.iappserver.st_midtier:szl_InstanceInformation={ "linux32" }


7. Make a copy of the patchset response file located at:

/u02/gc10205/3731593/Disk1/response/patchset.rsp

generic filepath form:

//3731593/Disk1/response/patchset.rsp 

8. Rename the copy in place to agent_patchset.rsp.

9. Alter the following parameters from default as follows in the agent_patchset.rsp file:

ORACLE_HOME="/u01/app/gc/agent10g"
b_softwareonly=true
s_sysPassword="linux32"
sl_pwdInfo={ "linux32" }


10. Verify the 11.1.0.6.0 database characteristics are as specified in this reference, available on OTN:

Oracle? Enterprise Manager Grid Control Installation Guide
10g Release 5 (10.2.0.5.0)

Chapter 3 and Chapter 7 show what is required of an existing database for repository use. A default installation of an Enterprise Edition database is not sufficient to support a repository.


B. Product and Patchset Installation without Configuration

1. Install the base release (10.2.0.1.0) for Linux using the following command:

/u02/gc10201/runInstaller -noconfig -silent
-responseFile /u02/gc10201/response/em_using_existing_db.rsp use_prereq_checker=false


generic command form:

base product install_stage>/runInstaller -noconfig -silent
-responseFile /response/em_using existing_db.rsp use_prereq_checker=false


Notes:

- Install in an existing, empty directory.

- Base product installation will be logged in two installActions<>.log files located in:

.../oraInventory/logs/ location (i.e., /u01/app/oraInventory/logs/ )


- In addition, the installActions<>.log for each component is located in:

.../oms10g/cfgtoollogs/oui/
.../agent10g/cfgtoollogs/oui/


These two installActions<>.log files will represent the installations of the oms10g and agent10g Oracle Homes in time sequence. Note that the configuration assistant content normally to be found in the agent installActions<>.log (last in the time sequence) will be missing due to the “-noconfig” option used in the runInstaller command.

2. Log in as a root user in a new command session and run the following scripts on the host where the base release of Enterprise Manager Grid Control is installed, when prompted by the installer:

If this is the first Oracle product you just installed on the host (i.e., no /etc/oraInst.loc file exists yet), then run the orainstRoot.sh script from the Central Inventory:

.../oraInventory/orainstRoot.sh


Run the allroot.sh script from the Oracle home directory of the OMS:

.../oms10g/allroot.sh


3. Certain opmn processes will be running merely as a result of installation, in spite of the fact that no configuration of the OMS Oracle Home has been performed. Stop these OPMN processes by running the following command from the Oracle Home directory of the OMS:

.../oms10g/opmn/bin/opmnctl stopall


4. Apply the 10.2.0.5.0 patchset to OMS Oracle Home:

Note that the 10.2.0.1.0 Grid Control base product installation is loaded with the proper system prerequisite checks and the patchset also has the ability to check for EL4 prerequisites, so the "-ignoreSysPrereqs" option should not be used for any of the installations in this procedure.

/u02/gc10205/3731593/Disk1/runInstaller -noconfig -silent -responseFile /u02/gc10205/3731593/Disk1/response/oms_patchset.rsp

 generic command form:

/3731593/Disk1/runInstaller -noconfig -silent-responseFile /3731593/Disk1/response/oms_patchset.rsp

 Logging for the oms patchset application will be in the installActions<>.log for the patchset application found in either of these locations:

.../oraInventory/logs/
.../oms10g/cfgtoollogs/oui/


The installActions<>.log for the OMS patchset application will be later in timestamp than the three files created during installation. Again, no configuration assistant logging will be included due to the -noconfig option used in the runInstaller command.

5. Run the root.sh command:

.../oms10g/root.sh


No feedback will be given on successful execution in this case.

6. Apply 10.2.0.5.0 patchset he agent Oracle Home:

/u02/gc10205/3731593/Disk1/runInstaller -noconfig -silent -responseFile /u02/gc10205/3731593/Disk1/response/agent_patchset.rsp


generic form:

/3731593/Disk1/runInstaller -noconfig -silent-responseFile /3731593/Disk1/response/agent_patchset.rsp


Logging for the agent patchset application will be in the installActions<>.log for the patchset application found in either of these locations:

.../oraInventory/logs/
.../agent10g/cfgtoollogs/oui/


The installActions<>.log for the agent patchsest application will be later in timestamp than the three files created during installation or the file created during oms patchset application. Again, no configuration assistant logging will be included in the associated installActions<>.log due to the -noconfig option used in the runInstaller command.

7. Run the root.sh command as root:

.../agent10g/root.sh.

 
C. Configuring the Grid Control Installation with the ConfigureGC.pl Script

1. Ensure that the .../db10g/oui/bin/runConfig.sh file has ’execute’ permission.

2. Use the following procedure to preserve and set the PERL5IB environment variable:

Make a backup of the PERL5LIB variable value:

> setenv PERL5LIB_BACKUP $PERL5LIB

 

Set PERL5LIB:

export PERL5LIB=.../oms10g/perl/lib/5.6.1


3. Configure Enterprise Manager Grid Control by running the ConfigureGC.pl script:

.../oms10g/perl/bin/perl .../oms10g/sysman/install/ConfigureGC.pl
/u01/app/gc

 

generic form:

/perl/bin/perl /sysman/install/ConfigureGC.pl

 
Logging for this action will start in the:

.../oms10g/cfgtoollogs/oui/configActions<>.log.

 
As the configuration assistants are run through the progress of the script, ORACLE_HOME/cfgtoollogs/cf**/ files will begin to populate with the results of these configuration actions for each Oracle Home in its respective directory (i.e., .../db10g/, .../oms10g/ or .../agent10g/). As operational actions (i.e., process start) are taken in the configuration steps, operational logs will be populated in these locations:

.../oms10g/sysman/log/
.../agent10g/sysman/log/
.../oms10g/opmn/logs/
.../oms10g/j2ee/OC4J_EM/log/
.../oms10g/Apache/Apache/logs

among others.

4. The configuration may take around an hour with little command session update at times.
It may be instructive to follow the progress of the configuration in these files, alternative to the command session:

.../oms10g/cfgtoollogs/cf**/CfmLogger<>.log (for the OMS configuration assistants details)
.../oms10g/sysman/log/emrepmgr* (for the progress of the repository upgrade)

 

Likely failure scenario (Note 602750.1, Bug 7483221):

a) The command session will eventually issue a failure message, indicating to look in the .../oms10g/cfgtoollogs/cf**/CfmLogger<>.log file.
The .../oms10g/cfgtoollogs/cf**/CfmLogger<>.log file and the emca_repos_drop<>.log will both show error code ORA-01017 logged. The emca_repos_drop<>.log shows this message, for example:

[20-02-2009 14:25:49] Could not connect to SYS/(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=
(PROTOCOL=TCP)(HOST=gamma.clspco.adelphia.net)(PORT=1523)))(CONNECT_DATA=(SID=db111))):
ORA-01017: invalid username/password; logon denied (DBD ERROR: OCISessionBegin

b) To work around this failure, log in to the repository database as SYS or SYSTEM and issue this update:

alter user SYS identified by "default";


c) Run the ConfigureGC.pl script again, repeating the syntax used in the first execution (leaving any current operating processes intact):

.../oms10g/perl/bin/perl .../oms10g/sysman/install/ConfigureGC.pl
/u01/app/gc


d) The configuration will pick up where it left off, so repository creation will succeed, base OMS configuration will complete, agent comfiguration will complete and the patchset configuration actions will start. The configuration will again fail, with a command session message to review the new .../oms10g/cfgtoollogs/cf**/CfmLogger<>.log file, which will show the ORA-01017 error again.

To work around the second failure, log in to the repository database as SYS or SYSTEM and issue this update, using the password value originally configured in the em_using_existing_db.rsp response file (password value shown is only for example):

alter user SYS identified by linux32;

 f) Run the configuration script for a third time, repeating the syntax as before (leaving any current operating processes intact):

.../oms10g/perl/bin/perl .../oms10g/sysman/install/ConfigureGC.pl
/u01/app/gc


5. Successful finish of the configuration script will be denoted by this kind of messaging in the command session (ignore date):

perform - mode finished for action: patchsetConfigure

You can see the log file: /u01/app/gc/oms10g/cfgtoollogs/oui/configActions2009-02-21_07-24-23-AM.log

10.2.0.5 OMS patch configuration done


6. Verify the 10.2.0.5.0 component version for the OMS in any of these ways:

a) "About Oracle Enterprise manager" in the console view.
b) .../oms10g/OPatch/opatch lsinventory
c) OUI "installed Products" view
d) .../oms10g/bin/emctl status oms
e) .../agent10g/bin/emctl status agent (10.2)

 
7. Verify the OMS' new Application Server version (10.1.2.3.0) in any of these ways:

a) Application Server main target page
b) Home/Deployments Summary view for Application Server Installations in Grid Control
c) Deplyments/Deployments Summary view for Application Server Installations in Grid Control
d) .../oms10g/OPatch/opatch lsinventory
e) OUI "installed Products" view
f) Main page of OMS/AS Application Server Control web site
g) Application Server Control home page for the OMS installation.

 

8. Verify the 10.2.0.5.0 component version for the agent in any of these ways:

a) Grid Control agent page view.
b) emctl status agent
c) .../agent10g/OPatch/opatch lsinventory
d) OUI "installed Products" view
e) Setup/Agents view in Grid Control

 

9. Review the post patch requriements of Note 853691.1 "ALERT: Important Upgrade Steps Required for Enterprise Manager Grid Control 10gR5 (10.2.0.5) Upgrades" for OMS and agent patching requirements of the 10.2.0.5.0 version. This is also a good time to apply the pre-patch database maintenance actions from this note, if appropriate, if this was not done before 10.2.0.5.0 patchset application to the OMS.

 


D. Troubleshooting Failure if EM_DBMS_JOBS are running during configuration

1) The ConfigureGC.pl script will fail if EM_DBMS_JOBS are running, This can be determined from the .../db10g/cfgtoollogs/oui/configActions<>.log or the .../db10g/cfgtoollogs/cf**/CfmLogger<>.log.

In this case, refer to the Oracle? Enterprise Manager Grid Control Installation and Basic Configuration
10g Release 4 (10.2.0.5), available at the Oracle Technology Network web site.


2) Database bug 5345437 may be encountered after patched agent startup. This bug prevents the agent from completing upload at some point, after initial upload success. The agent will continue to operate, but cannot upload further and cannot upload on restart. Applying the 5345437 database bugpatch to the repository database will allow the agent to continue to upload regularly.



Published Documentation References:

Oracle? Enterprise Manager Grid Control Installation Guide
10g Release 5 (10.2.0.5.0)

Oracle? Enterprise Manager Advanced Configuration
10g Release 5 (10.2.0.5)

Oracle? Enterprise Manager Grid Control Release Notes for Linux and Microsoft Windows
10g Release 4 (10.2.0.5.0)

References
Bug 5345437 - APPS BUG5286029:ORA-20001: HZ_API_OTHERS_EXCEP: N, ERROR, ORA-01801: DATE FORMAT
Bug 7483221 - CONFIGUREGC.PL IS FAILING WITH INVALID PASSWORD FOR SYS
Note 602750.1 - ConfigureGC.pl Reports - Invalid Username/Password.

References

BUG:5345437 - APPS BUG5286029:ORA-20001: HZ_API_OTHERS_EXCEP: N, ERROR, ORA-01801: DATE FORMAT
BUG:7483221 - CONFIGUREGC.PL IS FAILING WITH INVALID PASSWORD FOR SYS
NOTE:602750.1 - ConfigureGC.pl Reports - Invalid Username/Password.
NOTE:853691.1 - ALERT: Important Upgrade Steps Required for Enterprise Manager Grid Control 10gR5 (10.2.0.5) Upgrades

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1246129/,如需轉載,請註明出處,否則將追究法律責任。

相關文章