Monday, June 11, 2012

CONTENT
OEM GRID CONTROL 11GR1 INSTALLATION ON REDHAT LINUX 5.5 (64-BIT) 3
FILE PARTITIONS 3
MIDDLEWARE ORACLE WEBLOGIC SERVER 11GR1 (10.3.2) INSTALLATION 3
ORACLE DATABASE 11G R2 FOR LINUX 64-BIT INSTALLATION 12
DROP THE OEM REPOSITORY 26
DATABASE PARAMETER CHANGE 27
APPLY LATEST VERSION OPATCH - 27
JAVA SE DEVELOPMENT KIT 6U18 29
ENTERPRISE MANAGER GRID CONTROL 11G INSTALLATION 29

OEM GRID CONTROL 11GR1 INSTALLATION ON REDHAT LINUX 5.5 (64-BIT)
During this installation I will use a HP with 2G RAM and 114G disk space. The swap size was set at 5G and the firewall and SELinux were disabled.

File partitions

• /u01 34G Oracle executables
• /u02 39G Oracle datafiles
• /u03 41G Archives logs


Start the X windows server in my case here Xming server

applprod@gvaoragrid:~ $ export DISPLAY=10.41.10.18:0.0
Middleware Oracle WebLogic Server 11gR1 (10.3.2) Installation
Grid Control 11g Release 1 no longer bundles the middleware components, so we must install the WebLogic Server before we can proceed with the Grid Control installation. The installation is started with the following command, run as the "applprod" user.
gvaoragrid(gshelton):/u03/GRID/Software/GRID2011/Weblogic
$ java -jar wls1032_generic.jar
Click the "Next" button on the welcome screen.

Enter "/u01/GRID/apps/product/Middleware" as the "Middleware Home Directory" and click the "Next" button.

Enter your Oracle Support details, or uncheck the checkbox and click the "Next" button.

If a warning dialog appears, click the "Yes" button, followed by the "Next" button from the previous screen.

Accept the "Typical" installation by clicking the "Next" button.

Accept the default JDK by clicking the "Next" button.

Accept the default "Product Installation Directories" by clicking the "Next" button.

Click the "Next" button on the summary "Installation Summary" screen.

Wait while the installation takes place.


Uncheck the "Run Quickstart" checkbox and click the "Done" button.



Next we must apply the "WDJ7" patch to the installation by running the Smart Update utility.
$applprod@gvaoragrid:/u01/GRID/apps/product/Middleware/utils/bsu $ ./bsu.sh
/u01/app/oracle/Middleware/utils/bsu/bsu.sh
Update the patch client by clicking the "OK" button on the message dialog.



Enter your support crednetials, then click the "Login" button.



These are the Metalink credentilas for downloading the updates



If you have chosen not to be updated with security information you may have to cycle through the warning message several times, but it will eventually continue. On Smart Update screen, click the "Get Patches" tab, select the "WDJ7" patch and click the "Download Selected" button and the "OK" button on the subsequent dialog.



Accept the default options and click okay


Click on the "Manage Patches" tab and click on the "Apply" button next to the "WDJ7" patch. Click "OK" on the subsequent validation dialog.






The patches are now listed under the "Default" tab.



Exit the Smart Update dialog, and the subsequent available maintenance screen if it appears.


Oracle Database 11g R2 for Linux 64-bit Installation
Unlike previous Grid Control installations, the database is no longer bundled, so we must install the database software separately. To accomplish this I followed the Oracle Database 11g Release 2 installation instructions here.

In addition to the packages listed in the DB installation, the following packages must be installed as the "root" user for WebLogic and the Grid Control to install correctly.
# From Enterprise Linux 5 DVD
cd /media/cdrom/Server
rpm -Uvh compat-db-4*
rpm -Uvh compat-libstdc++-296*
rpm -Uvh rng-utils-2*
rpm -Uvh setarch-2*
cd /
eject
applprod@gvaoragrid:/u03/GRID/Software/GRID2011/Oracle_Database_11gR2_for_Linux_x86-64/database $ ./runInstaller

Confiture the Metalink credentials



Choose the option for fresh install of the database



Choose server class


Single instance installation



I choose the advanced install to have all options













Choose the oracle Inventory directory here I put it in the Oracle Owner’s home
/home/applprod/


















If you choose a simple password you might encounter

[ins-30011] The password entered does not conform to the Oracle recommended standards.
Are you sure you want to continue choose Yes as you can harden the passwords later



All the operating systems Oracle recommended rpm’s were validated except the userid so I checked ignore


The install summary looks fine, you can create a response file for later silent install by clicking the save response file button







Creating the datafile and the creating the objects







root@gvaoragrid:/home/applprod/oraInventory # ls
root@gvaoragrid:/home/applprod/oraInventory # ./orainstRoot.sh
Changing permissions of /home/applprod/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /home/applprod/oraInventory to dba.
The execution of the script is complete.
root@gvaoragrid:/home/applprod/oraInventory #


root@gvaoragrid:/u01/GRID/apps/product/11.2.0 # ./root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
ORACLE_OWNER= applprod
ORACLE_HOME= /u01/GRID/apps/product/11.2.0

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]: 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 ...


Creating /etc/oratab file...
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.



Drop the OEM repository
I performed the default installation you will notice the EM was created so I need to deconfigure Enterprise Manager Database Control. Run the following command as the "applprod" user.
$ applprod@gvaoragrid:/u01/GRID/apps/product/11.2.0/bin
$emca -deconfig dbcontrol db -repos drop -SYS_PWD -SYSMAN_PWD
$ emca -deconfig dbcontrol db -repos drop -SYS_PWD grid2011 -SYSMAN_PWD grid2011
applprod@gvaoragrid:/u01/GRID/apps/product/11.2.0/bin $ ./emca -deconfig dbcontrol db -repos drop -SYS_PWD grid2011 -SYSMAN_PWD grid2011

STARTED EMCA at Mar 24, 2011 2:29:20 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:
Database SID: GRID
Listener port number: 1521

Do you wish to continue? [yes(Y)/no(N)]: Y
Mar 24, 2011 2:41:36 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/GRID/apps/product/cfgtoollogs/emca/GRID/emca_2011_03_24_14_29_20.log.
Mar 24, 2011 2:41:36 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Mar 24, 2011 2:41:59 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Mar 24, 2011 2:45:11 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Mar 24, 2011 2:45:14 PM
You have new mail in /var/spool/mail/applprod
Database parameter change

Make the following initialization parameter changes.
sqlplus / AS SYSDBA

ALTER SYSTEM SET log_buffer=10485760 SCOPE=SPFILE;
ALTER SYSTEM SET processes=500 SCOPE=SPFILE;
ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;
If you have done a default installation as described here, the UNDO tablespace will be autoextensible. If you have done a custom installation make sure the UNDO tablespace is at least 200M in size.
Alter some table space sizes log on as sysdba

SQL> ALTER DATABASE DATAFILE '/u02/GRID/dbf/GRID/undotbs01.dbf' RESIZE 400M;
SQL> ALTER DATABASE DATAFILE '/u02/GRID/dbf/GRID/system01.dbf' RESIZE 2048M;
SQL> ALTER DATABASE DATAFILE '/u02/GRID/dbf/GRID/sysaux01.dbf' RESIZE 1024M;

Apply Latest version opatch -
Next we must install the latest version of the "opatch" utility.
$ applprod@gvaoragrid: cd /u03/GRID/Software/GRID2011/
$ cp unzip -o p6880880_112000_Linux-x86-64.zip /u01/GRID/apps/product/11.2.0
$ applprod@gvaoragrid: unzip -o p6880880_112000_Linux-x86-64.zip
Sanity Check for the latest Opatch
applprod@gvaoragrid:/u03/GRID/Software/GRID2011 $ opatch lsinventory
Invoking OPatch 11.2.0.1.4
Oracle Interim Patch Installer version 11.2.0.1.4
Copyright (c) 2010, Oracle Corporation. All rights reserved.
Oracle Home : /u01/GRID/apps/product/11.2.0
Central Inventory : /home/applprod/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.2.0.1.4
OUI version : 11.2.0.1.0
OUI location : /u01/GRID/apps/product/11.2.0/oui
Log file location : /u01/GRID/apps/product/11.2.0/cfgtoollogs/opatch/opatch2011-03-24_16-37-49PM.log

Patch history file: /u01/GRID/apps/product/11.2.0/cfgtoollogs/opatch/opatch_history.txt
Lsinventory Output file location : /u01/GRID/apps/product/11.2.0/cfgtoollogs/opatch/lsinv/lsinventory2011-03-24_16-37-49PM.txt

Installed Top-level Products (1):
Oracle Database 11g 11.2.0.1.0
There are 1 products installed in this Oracle Home.
There are no Interim patches installed in this Oracle Home.

OPatch succeeded.

The documentation states that patches for database bugs 9002336 and 9067282 must be applied. Patch 9002336 has a prerequisite of patch 9352237 (a PSU), which includes patch 9067282, so I have only applied patches 9352237 and 9002336, which can be downloaded from My Oracle Support. The database patches include installation instructions, but to summarize, these commands should be run as the "applprod" user.
$ dbshut $ORACLE_HOME
$ export PATH=$PATH:$ORACLE_HOME/OPatch
$ cd /u03/GRID/Software/GRID2011/

$ unzip p9352237_112010_Linux-x86-64.zip
$ cd 9352237
$ opatch apply
$ Verifying the update...
Inventory check OK: Patch ID 9352237 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 9352237 are present in Oracle Home.
********************************************************************************
********************************************************************************
** ATTENTION **
** **
** Please note that the Patch Set Update Installation (PSU Deinstallation) **
** is not complete until all the Post Installation (Post Deinstallation) **
** instructions noted in the Readme accompanying this PSU, have been **
** successfully completed. **
** **
********************************************************************************
********************************************************************************
Execution of 'sh /u03/GRID/Software/GRID2011/9352237/custom/scripts/post -apply 9352237 ':
Return Code = 0
The local system has been patched and can be restarted.
OPatch succeeded.

$ unzip p9002336_112011_Linux-x86-64.zip
$ cd 9002336
$ opatch apply
Patching component oracle.rdbms, 11.2.0.1.0...
Updating archive file "/u01/GRID/apps/product/11.2.0/lib/libserver11.a" with "lib/libserver11.a/kkqtutl.o"
Running make for target ioracle
ApplySession adding interim patch '9002336' to inventory
Verifying the update...
Inventory check OK: Patch ID 9002336 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 9002336 are present in Oracle Home.
The local system has been patched and can be restarted.
OPatch succeeded.


$ dbstart $ORACLE_HOME
The database installation is now complete.


Java SE Development Kit 6u18

Java Installation
Install Java JDK 6u18 using the following commands as the "root" user. Later version of the JDK cause errors when patching WebLogic (unless you are using a proxy), so the version of the JDK is very important.
# chmod u+x jdk-6u18-linux-x64-rpm.bin
# ./jdk-6u18-linux-x64-rpm.bin

Enterprise Manager Grid Control 11g Installation

Unzip the Grid control software into an empty directory.
$ /u03/GRID/Software/GRID2011
$ unzip GridControl_11.1.0.1.0_Linux_x86-64_1of3.zip
$ unzip GridControl_11.1.0.1.0_Linux_x86-64_2of3.zip
$ unzip GridControl_11.1.0.1.0_Linux_x86-64_3of3.zip
Start the installer as the "applprod" user.
applprod@gvaoragrid:/u03/GRID/Software/GRID2011/Oracle_Enterprise_Manager_11g_Grid_ControlRelease1_11.1.0.1.0_64Bits
$ ./runInstaller
Enter your support details, or uncheck the notification checkbox, then click the "Next" button. Click the "Yes" button on any subsequent warning dialogs.



Select the "Download and install updates from My Oracle Support" option and enter your support details, then click the "Next" button.



Wait while the check is performed, then click the "Download Updates" button on the subsequent dialog and wait for the updates to be downloaded.



Accept the default "Apply Software Updates" option by clicking the "Next" button.



Accept the default "Install a new Enterprise Manager system" option by clicking the "Next" button.



Wait while the prerequisite checks are performed. If any fail, correct them before proceeding by clicking the "Next" button.

I check the ignore all so that the highlighted memory check does not stop the installation



Enter "/u01/GRID/apps/product/Middleware/oms11g" as the OMS instance base location, then click the "Next" button.




Enter password for the WebLogic domain and node manager users, then click the "Next" button.





Enter the database connection details and click the "Next" button.



Enter password details for the "SYSMAN" database user and click the "Next" button.



Enter the password for secure agent connections, then click the "Next" button.



Amend the ports as you see fit, then click the "Next" button.



If you are happy with the information on the "Review" screen, click the "Next" button.



Wait while the installation takes place.



Run the specified script, then click the "OK" button.


root@gvaoragrid:/u01/GRID/apps/product/Middleware/oms11g # ./allroot.sh

Starting to execute allroot.sh .........

Starting to execute /u01/GRID/apps/product/Middleware/oms11g/root.sh ......
Running Oracle 11g root.sh script...

The following environment variables are set as:
ORACLE_OWNER= applprod
ORACLE_HOME= /u01/GRID/apps/product/Middleware/oms11g

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]: 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 created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Adding entry to /etc/oratab file...
Finished execution of /u01/GRID/apps/product/Middleware/oms11g/root.sh ......


Starting to execute /u01/GRID/apps/product/Middleware/agent11g/root.sh ......
Running Oracle 11g root.sh script...

The following environment variables are set as:
ORACLE_OWNER= applprod
ORACLE_HOME= /u01/GRID/apps/product/Middleware/agent11g

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]: 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 created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
Adding entry to /etc/oratab file...
Finished execution of /u01/GRID/apps/product/Middleware/agent11g/root.sh ......
Wait while the configuration steps take place.





Make a note of the URLs on the "Finish" screen, then click the "Close" button.



Connect to the Grid Control console (https://gvaoragrid.temenosgroup.com:7799/em) using the username (SYSMAN) and password defined during the installation, accept the license agreement and you are presented with the console.


Startup/Shutdown
Use the following commands to turn on all components installed by this article.
#!/bin/bash
export OMS_HOME=/u01/GRID/apps/product/Middleware/oms11g
export AGENT_HOME=/u01/GRID/apps/product/Middleware/agent11g

# Start everything
dbstart $ORACLE_HOME

$OMS_HOME/bin/emctl start oms

$AGENT_HOME/bin/emctl start agent
Use the following commands to turn off all components installed by this article.
#!/bin/bash
export OMS_HOME=/u01/GRID/apps/product/Middleware/oms11g
export AGENT_HOME=/u01/GRID/apps/product/Middleware/agent11g

# Stop everything
$OMS_HOME/bin/emctl stop oms -all

$AGENT_HOME/bin/emctl stop agent

dbshut $ORACLE_HOME

No comments:

Post a Comment