Wednesday, March 27, 2013

Java upgrade from 1.4.2_06 to 1.6_25 for Discoverer:


Java upgrade from 1.4.2_06 to 1.6_25 for discoverer

Section A:
Login as oracle user to production server (prdsoadl1)
cd /d01/oracle/mid/jdk/bin
Java versions information:
$ java -version
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

Stop application processes and database
MidTier
soamidenv
emctl stop iasconsole
opmnctl stopall
InfraTier
soainfenv
emctl stop iasconsole
opmnctl stopall

Shutdown the database and listener
                sqlplus / as sysdba
SQL> shutdown immediate

lsnrctl stop

Kill all other process if there are any running processes

Upgrade the java from 1.4.2_06 to 1.6_25
cd /d01/oracle/infra
mv jdk jdk_1.4.2_06

cp -r /ATG_RUP7/jdk1.6.0_25 jdk

/d01/oracle/mid
mv jdk jdk_1.4.2_06

cp -r /ATG_RUP7/jdk1.6.0_25 jdk

Verify the installed java version

cd jdk/bin

[oracle@tstaebsal1 jdk1.6.0_25]$ java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) Server VM (build 20.0-b11, mixed mode)

Start database and  application processes

Start the listener and database
                lsnrctl start
                sqlplus / as sysdba
SQL> startup

InfraTier
soainfenv
opmnctl startall
emctl start iasconsole
MidTier
soamidenv
opmnctl startall
emctl start iasconsole

Post upgrade steps:

Section B:

1.             Take a backup of oaj2se.exe on Discover side
[oracle@tstsoadl1 bin]$ pwd
/d01/oracle/mid/jpi/bin
[oracle@tstsoadl1 bin]$ ls -tlr
total 31516
-rw-r--r--  1 oracle dba 15691488 Feb 22  2005 j2re.exe
-rw-r--r--  1 oracle dba 16537376 Mar 25 19:07 oaj2se.exe

2.             Scp the java client executable oaj2se.exe from EBS to Discoverer on above location

[oracle@tstaebsal1 ~]$ cd $OA_HTML/
[oracle@tstaebsal1 html]$ ls -ltr *.exe
-rwxrwxrwx 1 oracle dba  8039352 Mar 25 16:14 oajinit.exe
-rw-r--r-- 1 oracle dba 16537376 Mar 25 19:07 oaj2se.exe   - Copy this file, make sure this file is same size of the java executable actually copied at below location during ATG RUP7.

[oracle@tstaebsal1 html]$ ls -tlr $COMMON_TOP/util/jinitiator/*exe
-rwxr-xr-x 1 oracle dba    32768 Mar 30  2002 /d01/oracle/tstacomn/util/jinitiator/oajsetup.exe
-rwxr-xr-x 1 oracle dba  9738552 May  9  2002 /d01/oracle/tstacomn/util/jinitiator/jinit11816.exe
-rwxr-xr-x 1 oracle dba  7986400 Oct 27  2004 /d01/oracle/tstacomn/util/jinitiator/jinit13118.exe
-rwxr-xr-x 1 oracle dba  8039352 Jul 13  2005 /d01/oracle/tstacomn/util/jinitiator/jinit13121.exe
-rw-r--r-- 1 oracle dba 16537376 Mar 25 01:35 /d01/oracle/tstacomn/util/jinitiator/j2se16025.exe

3.             Take a backup of configuration.xml at below location

[oracle@tstsoadl1 config]$ pwd
/d01/oracle/mid/discoverer/config

4.             Edit the configuration.xml to first use Sun JRE plugin searching for  text “plus”

From
<plus laf="browser" lafJar="" lafClass="" logLevel="error" plugin="jinitiator" helpSet="help">
To
<plus laf="browser" lafJar="" lafClass="" logLevel="error" plugin="sun" helpSet="help">

5.             Edit the file to next use http transport protocol searching for text “jrmp”

From
<transport name="jrmp"/><logo rendered="true" src="default" url="" file=""/>
To
<transport name="http"/><logo rendered="true" src="default" url="" file=""/>

6.             Edit the file next to make changes to use right JRE plug-in by replacing values for classid, plugin_setup, version, versionie & plugin_page as below. Replace the correct Discover hostname.

From
<jvm name="sun" classid="clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA" plugin_setup="http://tstsoadl1.d-rco.com:6669/jpi/j2re.exe" version="1.4.2" versionie="1,4,2,mn" type="application/x-java-applet" plugin_page="http://java.sun.com/products/archive/j2se/1.4.2_06/index.html" disco_archive="disco5i.jarjar" d4o_archive="d4o_double.jarjar"/>
To
<jvm name="sun" classid="clsid:CAFEEFAC-0016-0000-0025-ABCDEFFEDCBA" plugin_setup="http://tstsoadl1.d-rco.com:6669/jpi/oaj2se.exe" version="1.6" versionie="1,6,0,25" type="application/x-java-applet" plugin_page="http://java.sun.com/products/archive/j2se/1.6.0_25/index.html" disco_archive="disco5i.jarjar" d4o_archive="d4o_double.jarjar"/>

7.             Bounce the Discover services

+++++++++++++++++++++++++++++++++++++

No comments:

Post a Comment