Saturday, February 28, 2015

JRocket Upgrade


The Oracle JRockit JVM is the industry's highest performing Java Virtual Machine now built into Oracle Fusion Middleware. It brings industry leading real time infrastructure capabilities with JRockit Real Time and unparallelled JVM diagnostics with JRockit Mission Control.

Below are the steps for upgrading the Jrocket from R28.1.4-7-144370  to  R28.2.3-4.1.0

[ajithpathiyil1::applmgr]> java –version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Oracle JRockit(R) (build R28.1.4-7-144370-1.6.0_26-20110617-2130-linux-x86_64, compiled mode)
[ajithpathiyil1::applmgr]>

[ajithpathiyil1::applmgr]>  pwd
/dbscratch/install/Fusion_Middleware_11g/JDK
[ajithpathiyil1::applmgr]>  ls -lrt
total 121916
-rwxr-xr-x 1 oracle oinstall 124711715 Sep 26 02:11 jrockit-jdk1.6.0_31-R28.2.3-4.1.0-linux-x64.bin
[ajithpathiyil1::applmgr]>  DIST_TOP=/dbscratch/install/Fusion_Middleware_11g/JDK
[ajithpathiyil1::applmgr]>  JAVA_BASE=/u01/app/oracle/fusion/mw_1/java
[ajithpathiyil1::applmgr]>  $DIST_TOP/jrockit-jdk1.6.0_31-R28.2.3-4.1.0-linux-x64.bin
Extracting 0%....................................................................................................100%
Unable to instantiate GUI, defaulting to console mode.





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Welcome:
--------

This installer will guide you through the installation of Oracle JRockit JDK R28.2.3 for Java SE 6 with JRMC 4.1. Type "Next" or enter to proceed to the
next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".




Enter [Exit][Next]> Next





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Choose Product Installation Directory:
--------------------------------------

    "Product Installation Directory" = [Enter new value or use default "/home/oracle/jrockit-jdk1.6.0_31-R28.2.3-4.1.0"]




Enter new Product Installation Directory OR [Exit][Previous][Next]> /u01/app/oracle/fusion/mw_1/java/jrockit-jdk1.6.0_31-R28.2.3-4.1.0





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Choose Product Installation Directory:
--------------------------------------

    "Product Installation Directory" = [/u01/app/oracle/fusion/mw_1/java/jrockit-jdk1.6.0_31-R28.2.3-4.1.0]

Use above value or select another option:
    1 - Enter new Product Installation Directory
    2 - Change to default [/home/oracle/jrockit-jdk1.6.0_31-R28.2.3-4.1.0]




Enter option number to select OR [Exit][Previous][Next]>





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Optional Components 1


Do you want to install Demos and Samples?

    1 - Yes, install Demos and Samples.
  ->2 - No, do not install.



Enter a number or [Exit][Previous][Next]>





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Optional Components 2


Do you want to install Source Code?

    1 - Yes, install Source Code.
  ->2 - No, do not install.



Enter a number or [Exit][Previous][Next]>





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Installing JDK to /u01/app/oracle/fusion/mw_1/java/jrockit-jdk1.6.0_31-R28.2.3-4.1.0...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]




<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Installing JRE to /u01/app/oracle/fusion/mw_1/java/jrockit-jdk1.6.0_31-R28.2.3-4.1.0/jre...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]




<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Installation Complete


Congratulations! Oracle JRockit JDK R28.2.3 for Java SE 6 with JRMC 4.1 has been successfully installed to /u01/app/oracle/fusion/mw_1/java/jrockit-jdk1.6.0_31-R28.2.3-4.1.0.


Press [Enter] to continue or type [Exit]>





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Clean up process in progress ...
[ajithpathiyil1::applmgr]> 


[ajithpathiyil1::applmgr] > $JAVA_HOME/bin/java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Oracle JRockit(R) (build R28.2.3-13-149708-1.6.0_31-20120327-1523-linux-x86_64, compiled mode)
[ajithpathiyil1::applmgr] >



HAPPY LEARNING!

Monitoring Weblogic Datastore Connectivity

If weblogic application deployed seems to have intermittent issue of datastore errors, We can monitor the datastore ping to find the reason for database connectivity failure using below sample script that I used to monitor my database connectivity from the weblogic server.every 5 mins



.  /home/oracle/init_AJITH_wl.sh
while true()
do
java -classpath $WL_HOME/server/lib/weblogic.jar utils.dbping ORACLE_THIN apps ******* ajithpathiyil1.lab.com:1521:ajithpathiyil1 > /tmp/chknet.out
java -classpath $WL_HOME/server/lib/weblogic.jar utils.dbping ORACLE_THIN apps ******* ajithpathiyil1.lab.com:1521:ajithpathiyil1 >> /tmp/chknet.out
grep "**** Success!!! ****" /tmp/chknet.out
if [ $? -ne 0 ] then
cat /tmp/chknet.out | /bin/mail -s "Erec:Issue" ajithpathiyil@gmail.com
fi
sleep 300
done

HAPPY LEARNING!

Wednesday, January 7, 2015

Oracle Apps R12: How To Renew SSL Certificate on Apps Tier in 5 minutes




1.      Set Your Environment
·         Logon to the application middle tier as the OS user who owns the middle tier files.
·         Source your middle tier environment file.
·         Navigate to the $INST_TOP/ora/10.1.3 and source the .env file to set your 10.1.3 ORACLE_HOME variables.

Note:- When working with wallets and certificates you MUST use the 10.1.3 executables.

2.      Deploy Certificate across Environment
export SYSTEM=ajiebs
export SSLDIR=/u01/app/applmgr${SYSTEM}/ssl_renew
export SSLENV=ajiebs.lab.com
mkdir -p $SSLDIR
chmod 700 $SSLDIR

3.      Copy new certificate and the CA certificate to the $SSLDIR directory e.g.
-rw-r--r--  1 applmgr oinstall 4198 Jul 26 10:30 chain.cer
-rw-r--r--  1 applmgr oinstall 1794 Jul 26 10:30 ajiebs.lab.com.cer
-rw-r--r--  1 applmgr oinstall  887 Jul 26 10:30 ajiebs.lab.com.key

4.      Create the wallet
cd $SSLDIR

$ORACLE_HOME/Apache/Apache/bin/ssl2ossl -cert ${SSLENV}.cer -key ${SSLENV}.key -cafile ./chain.cer -wallet . -ssowallet yes

5.      The content of wallet can be listed e.g.
orapki wallet display -wallet $SSLDIR

Requested Certificates:
Subject:        CN=ajiebs.lab.com,OU=Information Technology,O=Lab Inc.,L=Bangalore,ST=India,C=IN
User Certificates:
Trusted Certificates:
Subject:        CN=GTE CyberTrust Global Root,OU=GTE CyberTrust Solutions\, Inc.,O=GTE Corporation,C=US
Subject:        CN=ajiebs.lab.com,OU=Information Technology,O=Lab Inc., L=Bangalore,ST=India,C=IN
Subject:        CN=Lab Inc. Enterprise Issuing CA1,O=Lab Inc.
Subject:        CN=Lab Inc. Enterprise CA,O=Lab Inc.

6.      Determine the current Apache's wallet directory
·         Which is the value of s_web_ssl_directory + Apache, by default it's $INST_TOP/certs/Apache
·         Create a new directory named BAK and move the default wallet's files to there
·         Install the new wallet

cd $SSLDIR/../
mv ssl ssl_bak_`date +%Y`
mv ssl_renew ssl
Some features of XML Publisher and BI Publisher require the server certficate to be present in cacerts file.

7.      Backup the existing cacerts file.
cp $OA_JRE_TOP/lib/security/cacerts $OA_JRE_TOP/lib/security/cacerts.bak.`date +%Y`

8.      Add new server cert to cacerts:
chmod u+w $OA_JRE_TOP/lib/security/cacerts

keytool -importcert -keystore $OA_JRE_TOP/lib/security/cacerts -alias ${SSLENV}.`date +%Y`.lab.com -file ${SSLENV}.cer -v

9.      When prompted enter the keystore password.
10.  Restart APP Web Tier
11.  Restart oacore, forms, web listener processes


HAPPY LEARNING!