Now I will install the weblogic server, which is needed before the installation of the EM Grid.
I have downloaded the software from the oracle pages.
[oracle@grid11g oracle]$ chmod 775 oepe111130_wls1032_linux32.bin
Now, we must download patch 9438213 from oracle metalink and apply it on the MW_HOME.
[oracle@grid11g oracle]$ cp p9438213_10320_Generic.zip /oracle/product/Middleware/utils/bsu/cache_dir/
[oracle@grid11g cache_dir]$ unzip p9438213_10320_Generic.zip
[oracle@grid11g oracle]$ cd /oracle/product/Middleware/utils/bsu/
Rename the patch-catalog_15563.xml to patch-catalog.xml!!! Only, if you have downloaded patch p9438213 from metalink. If you have downloaded the WDJ7.zip, there is no need to rename the file. Also there is no need to apply all patches. Just change the -patchlist=XLXA,4D53,NIXN to -patchlist=WDJ7
[oracle@grid11g bsu]$ ./bsu.sh -prod_dir=/oracle/product/Middleware/wlserver_10.3 -patch_download_dir=/oracle/product/Middleware/utils/bsu/cache_dir/ -patchlist=XLXA,4D53,NIXN -verbose -install -log=WDJ7.txt
Checking for conflicts..
No conflict(s) detected
Starting installation of Patch ID: XLXA
Installing /oracle/product/Middleware/utils/bsu/cache_dir/XLXA.jar
Extracting /oracle/product/Middleware/patch_wls1032/patch_jars/Bug9221722_1032.jar
Updating /oracle/product/Middleware/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar
Old manifest value: Class-Path=
New manifest value: Class-Path=../../../patch_jars/Bug9221722_1032.jar
Result: Success
Starting installation of Patch ID: 4D53
Installing /oracle/product/Middleware/utils/bsu/cache_dir/4D53.jar
Extracting /oracle/product/Middleware/patch_wls1032/patch_jars/Bug9100465_1032.jar
Updating /oracle/product/Middleware/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar
Old manifest value: Class-Path=../../../patch_jars/Bug9221722_1032.jar
New manifest value: Class-Path=../../../patch_jars/Bug9100465_1032.jar ../../../patch_jars/Bug9221722_1032.jar
Result: Success
Starting installation of Patch ID: NIXN
Installing /oracle/product/Middleware/utils/bsu/cache_dir/NIXN.jar
Extracting /oracle/product/Middleware/patch_wls1032/patch_jars/bug8990616_1032.jar
Updating /oracle/product/Middleware/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar
Old manifest value: Class-Path=../../../patch_jars/Bug9100465_1032.jar ../../../patch_jars/Bug9221722_1032.jar
New manifest value: Class-Path=../../../patch_jars/bug8990616_1032.jar ../../../patch_jars/Bug9100465_1032.jar ../../../patch_jars/Bug9221722_1032.jar
Result: Success
Check, if database is not in quiesced mode:
SQL> select active_state from v$instance;
ACTIVE_ST
---------
NORMAL
Check if SYSMAN user exists:
SQL> SELECT COUNT(*) FROM ALL_USERS WHERE USERNAME='SYSMAN';
COUNT(*)
----------
0
If you recieve value 1, you have to deconfigure the repopsitory.
$ORACLE_HOME/bin/emca -deconfig dbcontrol db -repos drop -SYS_PWD <sys pasword> -SYSMAN_PWD <sysman pwd>
Setting up initialization parameters:
SQL> alter system set job_queue_processes=10 scope=both;
System altered.
SQL> alter system set log_buffer=10485760 scope=spfile;
System altered.
SQL> alter system set open_cursors=300 scope=both;
System altered.
SQL> alter system set processes=500 scope=spfile;
System altered.
SQL> alter system set session_cached_cursors=200 scope=spfile;
System altered.
Set the memory_target and sga_target parameter.
Restart the database.
Check the size of UNDO tablesapce
SQL> select bytes/1024/1024 "MB" from dba_data_files where tablespace_name='UNDOTBS1';
MB
----------
300
If its less than 200MB, resize it.
Put the database in the archivelog mode:
SQL> alter system set log_archive_dest='/oracle/archives' scope=spfile;
System altered.
SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 175755264 bytes
Fixed Size 1342960 bytes
Variable Size 146801168 bytes
Database Buffers 16777216 bytes
Redo Buffers 10833920 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> alter system switch logfile;
System altered.
Now edit the /etc/redhat-release:
[oracle@grid11g backup]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
It can be checked via:
[oracle@grid11g backup]$ lsb_release -irc
Distributor ID: RedHatEnterpriseServer
Release: 5.5
Codename: Tikanga
Install missing packages:
[root@grid11g ~]# yum install compat-libstdc++-296
[root@grid11g ~]# yum install compat-db*
Now, you can unzip all installation files and run runInstaller
[oracle@grid11g ~]$ /oracle/product/Middleware/oms11g/bin/emctl exportconfig oms -dir /oracle/
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
ExportConfig started...
Machine is Admin Server host. Performing Admin Server backup...
Exporting emoms properties...
Exporting secure properties...
Export has determined that the OMS is not fronted
by an SLB. The local hostname was NOT exported.
The exported data can be imported on any host but
resecuring of all agents will be required. Please
see the EM Advanced Configuration Guide for more
details.
Preparing archive file...
Backup has been written to file: /oracle//opf_ADMIN_20110829_143055.bka
The export file contains sensitive data.
Please ensure that it is kept secure.
ExportConfig completed successfully!
How to stop/start the EM grid control:
Stop:
Agent:
[oracle@grid11g ~]$ /oracle/product/Middleware/agent11g/bin/emctl stop agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Stopping agent .... stopped.
OMS:
[oracle@grid11g ~]$ /oracle/product/Middleware/oms11g/bin/emctl stop oms -all
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
DB:
[oracle@grid11g ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.2.0 Production on Mon Aug 29 15:20:04 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
Listener:
[oracle@grid11g ~]$ lsnrctl stop
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 29-AUG-2011 15:21:00
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(HOST=localhost)(PROTOCOL=tcp)(PORT=1521)))
The command completed successfully
Start:
Listener:
[oracle@grid11g ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 29-AUG-2011 15:27:01
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Starting /oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.2.0 - Production
System parameter file is /oracle/product/11.2.0/db_1/network/admin/listener.ora
Log messages written to /oracle/diag/tnslsnr/grid11g/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=grid11g.localdomain)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(HOST=localhost)(PROTOCOL=tcp)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 29-AUG-2011 15:27:04
Uptime 0 days 0 hr. 0 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /oracle/diag/tnslsnr/grid11g/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=grid11g.localdomain)(PORT=1521)))
Services Summary...
Service "grid11g" has 1 instance(s).
Instance "grid11g", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
DB:
[oracle@grid11g ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.2.0 Production on Mon Aug 29 15:27:29 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 234385408 bytes
Fixed Size 1343240 bytes
Variable Size 155189496 bytes
Database Buffers 62914560 bytes
Redo Buffers 14938112 bytes
Database mounted.
Database opened.
SQL>
[oracle@grid11g ~]$ /oracle/product/Middleware/oms11g/bin/emctl start oms
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server is still in the process of getting started
Timed out waiting for Oracle Management Server to start
Oracle Management Server is Down
Please check /oracle/product/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log for error details
WARNING: Limit of open file descriptors is found to be 1024.
For proper functioning of OMS, please set "ulimit -n" to be at least 4096.
There are some errors, but the cause is the slow VMWare server. I have only 1GB of RAM allocated and only 1CPU.
After few minutes you can see, that the OMS is up nad running:
[oracle@grid11g ~]$ /oracle/product/Middleware/oms11g/bin/emctl status oms
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Up
Agent:
Its up and running
[oracle@grid11g ~]$ /oracle/product/Middleware/agent11g/bin/emctl status agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 11.1.0.1.0
OMS Version : 11.1.0.1.0
Protocol Version : 11.1.0.0.0
Agent Home : /oracle/product/Middleware/agent11g
Agent binaries : /oracle/product/Middleware/agent11g
Agent Process ID : 4411
Parent Process ID : 4391
Agent URL : https://grid11g.localdomain:3872/emd/main/
Repository URL : https://grid11g.localdomain:4900/em/upload
Started at : 2011-08-29 15:39:13
Started by user : oracle
Last Reload : 2011-08-29 15:41:52
Last successful upload : 2011-08-29 15:42:10
Total Megabytes of XML files uploaded so far : 0.05
Number of XML files pending upload : 16
Size of XML files pending upload(MB) : 0.37
Available disk space on upload filesystem : 44.25%
Last successful heartbeat to OMS : 2011-08-29 15:42:32
---------------------------------------------------------------
Agent is Running and Ready
Now, I will install the latest PSU patch.
First, I have to apply Patch 12620174:
[oracle@grid11g oracle]$ unzip p12620174_111010_Generic.zip
[oracle@grid11g oracle]$ cd 12620174
[oracle@grid11g 12620174]$ export ORACLE_HOME=/oracle/product/Middleware/oms11g
[oracle@grid11g 12620174]$ /oracle/product/Middleware/oms11g/OPatch/opatch napply
......
......
......
......
Files check OK: Files from Patch ID 12620174 are present in Oracle Home.
The local system has been patched and can be restarted.
UtilSession: N-Apply done.
OPatch succeeded.
[oracle@grid11g 12620174]$ /oracle/product/Middleware/oms11g/bin/rcuJDBCEngine sys/********@grid11g.localdomain:1521:grid11g JDBC_SCRIPT 10154264/patch_10154264.sql $PWD $ORACLE_HOME
Completed SQL script execution normally.
1 scripts were processed
Now, after the patch wass successfull, I will apply the PSU patch
[oracle@grid11g oracle]$ unzip p12423703_111010_Generic.zip
[oracle@grid11g oracle]$ /oracle/product/Middleware/oms11g/OPatch/opatch lsinventory
check if the ORACLE_HOME is set to the oms11g home
[oracle@grid11g oracle]$ /oracle/product/Middleware/oms11g/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./12423703
.........
........
........
OPatch detects the Middleware Home as "/oracle/product/Middleware"
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
Check was OK, so I can apply the patch now.
[oracle@grid11g oracle]$ cd 12423703/
[oracle@grid11g 12423703]$ /oracle/product/Middleware/oms11g/OPatch/opatch apply
....
....
....
Return Code = 0
OPatch succeeded.
[oracle@grid11g 12423703]$ /oracle/product/Middleware/oms11g/bin/rcuJDBCEngine [email protected]:1521:grid11g JDBC_SCRIPT apply.sql $PWD $ORACLE_HOME
...
...
...
Completed SQL script execution normally.
41 scripts were processed
[oracle@grid11g 12423703]$ /oracle/product/Middleware/oms11g/bin/emctl secure console -self_signed
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Securing Console... Started.
Securing Console... Successful
Now, I will start the oms.
[oracle@grid11g ~]$ /oracle/product/Middleware/oms11g/bin/emctl start oms
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Successfully Started
Oracle Management Server is Up
WARNING: Limit of open file descriptors is found to be 1024.
The OMS has been started but it may run out of descriptors under heavy usage.
For proper functioning of OMS, please set "ulimit -n" to be at least 4096.
To solve the problem wit the descriptors, change the 1024 to 4096 in /etc/security/limits.conf.
The EM grid is patched, up and running: