Friday, December 26, 2014

Getting java.net.UnknownHostException while starting WebLogic Admin Server

Problem

Unable to start the WebLogic Admin server 11g (10.3.6) and getting "UnknownHostException"

Error Message

(1) Some times we will get the error message "
java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine"


<Dec 27, 2014 9:18:33 AM IST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
    at weblogic.server.channels.BasicServerChannelImpl.getLocalHost(BasicServerChannelImpl.java:59)
    at weblogic.server.channels.BasicServerChannelImpl.<clinit>(BasicServerChannelImpl.java:54)
    at weblogic.rjvm.t3.ProtocolHandlerT3$ChannelInitializer.<clinit>(ProtocolHandlerT3.java:37)
    at weblogic.rjvm.t3.ProtocolHandlerT3.getDefaultServerChannel(ProtocolHandlerT3.java:42)
    at weblogic.server.channels.ChannelService.createServerChannels(ChannelService.java:506)
    Truncated. see log file for complete stacktrace
Caused By: java.net.UnknownHostException: OEL: OEL
    at java.net.InetAddress.getLocalHost(InetAddress.java:1360)
    at weblogic.server.channels.BasicServerChannelImpl.getLocalHost(BasicServerChannelImpl.java:57)
    at weblogic.server.channels.BasicServerChannelImpl.<clinit>(BasicServerChannelImpl.java:54)
    at weblogic.rjvm.t3.ProtocolHandlerT3$ChannelInitializer.<clinit>(ProtocolHandlerT3.java:37)
    at weblogic.rjvm.t3.ProtocolHandlerT3.getDefaultServerChannel(ProtocolHandlerT3.java:42)
    Truncated. see log file for complete stacktrace
>
<Dec 27, 2014 9:18:34 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Dec 27, 2014 9:18:34 AM IST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Dec 27, 2014 9:18:34 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>



(2) Some times we will get the error message "WLSGeneratorHelper - Unable to determine local host name or IP!"


2014-10-16 11:09:14,308 WARNING [16] com.oracle.cie.domain.WLSGeneratorHelper - Unable to determine local host name or IP!
java.net.UnknownHostException: OEL: OEL: unknown error
at java.net.InetAddress.getLocalHost(InetAddress.java:1484)
at com.oracle.cie.domain.WLSGeneratorHelper.initGeneratorStore(WLSGeneratorHelper.java:1263)
at com.oracle.cie.domain.WLSGeneratorHelper.initDomainGenerator(WLSGeneratorHelper.java:274)
at com.oracle.cie.domain.WLSGeneratorHelper.createDomainGenerator(WLSGeneratorHelper.java:176)
at com.oracle.cie.domain.WLSGeneratorHelper.createGenerator(WLSGeneratorHelper.java:519)
at com.oracle.cie.domain.WLSGeneratorHelper.createConfigAction(WLSGeneratorHelper.java:494)
at com.oracle.cie.wizard.domain.gui.tasks.ProgressGUITask.configure(ProgressGUITask.java:123)
at com.oracle.cie.wizard.domain.gui.tasks.ProgressGUITask.configure(ProgressGUITask.java:40)
at com.oracle.cie.wizard.internal.cont.AbstractTaskContainer.doConfigureTask(AbstractTaskContainer.java:119)
at com.oracle.cie.wizard.internal.cont.AbstractTaskContainer.setTask(AbstractTaskContainer.java:43)
at com.oracle.cie.wizard.internal.engine.WizardControllerEngine.goForward(WizardControllerEngine.java:720)
at com.oracle.cie.wizard.internal.engine.WizardControllerEngine.run(WizardControllerEngine.java:229)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.UnknownHostException: OEL: unknown error
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:907)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1302)
at java.net.InetAddress.getLocalHost(InetAddress.java:1479)
... 12 more 


Cause
From the above log traces, the hostname or DNS Server name OEL is not configured. We have WebLogic Server installed on our Oracle Virtual Box

$ uname -a
Linux OEL 2.6.39-400.214.3.el6uek.x86_64 #1 SMP Thu Feb 13 17:08:24 PST 2014 x86_64 x86_64 x86_64 GNU/Linux

$ hostname
OEL
$ cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
[mastshai@OEL mastan_domain]$ 

 
In the above hosts file, the OEL hostname entry was not present.

Solution
To fix the issue, we need to add the hostname or DNS server name in /etc/hosts file and bounced the Admin Server

$ cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 OEL

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

 

Wednesday, December 24, 2014

weblogic.common.ResourceException: Could not create pool connection.The DBMS driver exception was: IO Error: Got minus one from a read call

Problem

The Database is not allowing new connections and getting the "ResourceException: Could not create pool connection.The DBMS driver exception was: IO Error: Got minus one from a read call" when starting up weblogic server instacnes

Error Message


                at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
                at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
                at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
                at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
                at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:218)
                at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
                at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
                at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.prepare(DeploymentReceiverCallbackDeliverer.java:41)
                at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.callDeploymentReceivers(AwaitingContextUpdateCompletion.java:164)
                at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.handleContextUpdateSuccess(AwaitingContextUpdateCompletion.java:66)
                at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.contextUpdated(AwaitingContextUpdateCompletion.java:32)
                at weblogic.deploy.service.internal.targetserver.TargetDeploymentService.notifyContextUpdated(TargetDeploymentService.java:225)
                at weblogic.deploy.service.internal.DeploymentService$1.run(DeploymentService.java:189)
                at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
                at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
                at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: weblogic.common.ResourceException: weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: IO Error: Got minus one from a read call
                at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Unknown Source)
                at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1310)
                at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1227)
                at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:250)
                at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1329)
                at weblogic.jdbc.common.internal.ConnectionPool.start(ConnectionPool.java:176)
                at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:507)
                at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:428)
                at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:280)

                ... 28 more


Cause

From the above error message there is nothing wrong from WebLogic side, and we need to check if there is any thing wrong at Database end. Database team has to investigate to find out the exact root cause of the issue. The immediate cause of the problem is that the JDBC driver has attempted to read from a network Socket that has been closed by "the other end" (database). The possible causes for this issue are

(1) Hung sessions which are maxing out the processes on Database server
(2) Database is in inconsistent state or may be it is under maintenance
(3) Database Could have reached maximum number of connections
(4) Check there may be network issues
(5) If there are too many database connections opened to the database service, it could refuse new connections.


Solution

If you don't see any of the above causes, restarting or bouncing the database will fix the issue.
If it is related to insufficient resources at Database end, you may need to increase processes or sessions.
If there are any hung sessions, Database team has to kill all hung sessions and start the database server to fix the issue.

Thursday, December 11, 2014

WebLogic Server 11g(10.3.6.0) Installation in Console Mode using Genreric Installers- Traces


[mastshai@OEL u01]$ pwd
/u01
[mastshai@OEL u01]$ ls -ltr
total 2021520
-rwxrwxrwx. 1 mastshai mastshai  130417924 Apr  8  2014 jrockit-jdk1.6.0_33-R28.2.4-4.1.0-linux-x64.bin
-rwxrwxrwx. 1 mastshai mastshai 1068506707 Apr  8  2014 wls1036_generic.jar
-rwxrwxrwx. 1 mastshai mastshai  871091023 Apr 14  2014 wls1036_linux32.bin
drwxr-xr-x. 2 mastshai mastshai       4096 Dec 10 21:21 others
[mastshai@OEL u01]$ ./jrockit-jdk1.6.0_33-R28.2.4-4.1.0-linux-x64.bin
Extracting 0%....................................................................................................100%
Unable to instantiate GUI, defaulting to console mode.


<-------------------------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.4 for Java SE 6 with JRMC 4.1 ------------------------------------------------------->

Welcome:
--------

This installer will guide you through the installation of Oracle JRockit JDK R28.2.4 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]>


<-------------------------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.4 for Java SE 6 with JRMC 4.1 ------------------------------------------------------->

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

    "Product Installation Directory" = [Enter new value or use default "/home/mastshai/jrockit-jdk1.6.0_33-R28.2.4-4.1.0"]


Enter new Product Installation Directory OR [Exit][Previous][Next]> /u01/fmw/jrockit-jdk1.6.0_33-R28.2.4-4.1.0



<-------------------------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.4 for Java SE 6 with JRMC 4.1 ------------------------------------------------------->

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

    "Product Installation Directory" = [/u01/fmw/jrockit-jdk1.6.0_33-R28.2.4-4.1.0]

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


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


<-------------------------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.4 for Java SE 6 with JRMC 4.1 ------------------------------------------------------->

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


<-------------------------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.4 for Java SE 6 with JRMC 4.1 ------------------------------------------------------->

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


<-------------------------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.4 for Java SE 6 with JRMC 4.1 ------------------------------------------------------->

Installing JDK to /u01/fmw/jrockit-jdk1.6.0_33-R28.2.4-4.1.0...

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


<-------------------------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.4 for Java SE 6 with JRMC 4.1 ------------------------------------------------------->

Installing JRE to /u01/fmw/jrockit-jdk1.6.0_33-R28.2.4-4.1.0/jre...

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



<-------------------------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.4 for Java SE 6 with JRMC 4.1 ------------------------------------------------------->

Installation Complete


Congratulations! Oracle JRockit JDK R28.2.4 for Java SE 6 with JRMC 4.1 has been successfully installed to /u01/fmw/jrockit-jdk1.6.0_33-R28.2.4-4.1.0.


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


<-------------------------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.4 for Java SE 6 with JRMC 4.1 ------------------------------------------------------->

Clean up process in progress ...
[mastshai@OEL u01]$ cd fmw/
[mastshai@OEL fmw]$ ls -ltr
total 4
drwxr-xr-x. 8 mastshai mastshai 4096 Dec 10 21:28 jrockit-jdk1.6.0_33-R28.2.4-4.1.0
[mastshai@OEL fmw]$ cd jrockit-jdk1.6.0_33-R28.2.4-4.1.0/
[mastshai@OEL jrockit-jdk1.6.0_33-R28.2.4-4.1.0]$ pwd
/u01/fmw/jrockit-jdk1.6.0_33-R28.2.4-4.1.0
[mastshai@OEL jrockit-jdk1.6.0_33-R28.2.4-4.1.0]$
[mastshai@OEL jrockit-jdk1.6.0_33-R28.2.4-4.1.0]$



[mastshai@OEL jrockit-jdk1.6.0_33-R28.2.4-4.1.0]$ cd ../..
[mastshai@OEL u01]$ pwd
/u01
[mastshai@OEL u01]$ ls -ltr
total 2021524
-rwxrwxrwx. 1 mastshai mastshai  130417924 Apr  8  2014 jrockit-jdk1.6.0_33-R28.2.4-4.1.0-linux-x64.bin
-rwxrwxrwx. 1 mastshai mastshai 1068506707 Apr  8  2014 wls1036_generic.jar
-rwxrwxrwx. 1 mastshai mastshai  871091023 Apr 14  2014 wls1036_linux32.bin
drwxr-xr-x. 2 mastshai mastshai       4096 Dec 10 21:21 others
drwxrwxr-x. 3 mastshai mastshai       4096 Dec 10 21:28 fmw
[mastshai@OEL u01]$ /u01/fmw/jrockit-jdk1.6.0_33-R28.2.4-4.1.0/bin/java -jar wls1036_generic.jar
Unable to instantiate GUI, defaulting to console mode.
Extracting 0%...................................................................


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Welcome:
--------

This installer will guide you through the installation of WebLogic 10.3.6.0.
Type "Next" or enter to proceed to the next prompt.  If you want to change data


Enter [Exit][Next]>


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [Enter new value or use default
"/home/mastshai/Oracle/Middleware"]


Enter new Middleware Home OR [Exit][Previous][Next]> /u01/fmw


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [/u01/fmw]

Use above value or select another option:
    1 - Enter new Middleware Home
    2 - Change to default [/home/mastshai/Oracle/Middleware]


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


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    Warning

/u01/fmw directory is not empty. Proceed with installation?


Enter [Exit][Previous][Next]>


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[Yes]

Enter index number to select OR [Exit][Previous][Next]> 3


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]


Enter [Yes][No]? No


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]


    ** Do you wish to bypass initiation of the configuration manager and
    **  remain uninformed of critical security issues in your configuration?


Enter [Yes][No]? Yes


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]


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


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]


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


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Install Type:
--------------------

Select the type of installation you wish to perform.

 ->1|Typical
    |  Install the following product(s) and component(s):
    | - WebLogic Server
    | - Oracle Coherence

   2|Custom
    |  Choose software products and components to install and perform optional
    |configuration.


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


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------

JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.

   1|Add Local Jdk
   2|/u01/fmw/jrockit-jdk1.6.0_33-R28.2.4-4.1.0[x]


   *Estimated size of installation:  690.2 MB


Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]>


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/u01/fmw]

Product Installation Directories:


   1|WebLogic Server: [/u01/fmw/wlserver_10.3]
   2|Oracle Coherence: [/u01/fmw/coherence_3.7]


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


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

The following Products and JDKs will be installed:
--------------------------------------------------

    WebLogic Platform 10.3.6.0
    |_____WebLogic Server
    |    |_____Core Application Server
    |    |_____Administration Console
    |    |_____Configuration Wizard and Upgrade Framework
    |    |_____Web 2.0 HTTP Pub-Sub Server
    |    |_____WebLogic SCA
    |    |_____WebLogic JDBC Drivers
    |    |_____Third Party JDBC Drivers
    |    |_____WebLogic Server Clients
    |    |_____WebLogic Web Server Plugins
    |    |_____UDDI and Xquery Support
    |    |_____Evaluation Database
    |_____Oracle Coherence
         |_____Coherence Product Files

    *Estimated size of installation: 690.3 MB


Enter [Exit][Previous][Next]>


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installing files..

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


Performing String Substitutions...


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Configuring OCM...

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


Creating Domains...


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installation Complete


Congratulations! Installation is complete.


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



<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Clean up process in progress ...
[mastshai@OEL u01]$

[mastshai@OEL fmw]$ cat registry.xml
<?xml version="1.0" encoding="UTF-8"?>
<bea-product-information xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:gpr="http://www.bea.com/ns/cie/gpr">
  <host home="/u01/fmw" name="OEL">
    <product format="1.0" name="WebLogic Platform">
      <release level="10.3" ServicePackLevel="6" PatchLevel="0" Status="installed" InstallTime="Dec 10, 2014 9:33:39 PM" InstallDir="/u01/fmw">
        <component name="Common Infrastructure Engineering" version="7.4.0.0" InstallDir="">
          <component name="Uninstall"/>
          <component name="Patch Client"/>
          <component name="Patch Attachment Facility"/>
          <component name="Clone Facility"/>
        </component>
        <component name="WebLogic Server" version="10.3.6.0" InstallDir="/u01/fmw/wlserver_10.3">
          <component name="Core Application Server"/>
          <component name="Administration Console"/>
          <component name="Configuration Wizard and Upgrade Framework"/>
          <component name="Web 2.0 HTTP Pub-Sub Server"/>
          <component name="WebLogic SCA"/>
          <component name="WebLogic JDBC Drivers"/>
          <component name="Third Party JDBC Drivers"/>
          <component name="WebLogic Server Clients"/>
          <component name="WebLogic Web Server Plugins"/>
          <component name="UDDI and Xquery Support"/>
          <component name="Evaluation Database"/>
          <component name="Workshop Code Completion Support"/>
        </component>
        <component name="Oracle Configuration Manager" version="10.3.5.0" InstallDir="">
          <component name="Data Collector"/>
        </component>
        <component name="Oracle Coherence" version="3.7.1.1" InstallDir="/u01/fmw/coherence_3.7">
          <component name="Coherence Product Files"/>
        </component>
      </release>
    </product>
  </host>
</bea-product-information>
[mastshai@OEL fmw]$

Wednesday, December 10, 2014

WebLogic Server 11g(10.3.6.0) Installation in Console Mode using OS (Linux) Specific Binaries - Traces



[mastshai@OEL u01]# ls -ltr
total 2021568
-rwxrwxrwx. 1 mastshai mastshai  130417924 Apr  8  2014 jrockit-jdk1.6.0_33-R28.2.4-4.1.0-linux-x64.bin
-rwxrwxrwx. 1 mastshai mastshai 1068506707 Apr  8  2014 wls1036_generic.jar
-rwxrwxrwx. 1 mastshai mastshai  871091023 Apr 14  2014 wls1036_linux32.bin
-rw-rw-r--. 1 mastshai mastshai        428 May 14  2014 silent.xml
-rw-rw-r--. 1 mastshai mastshai      43176 May 14  2014 installation_log.txt
drwxrwxr-x. 3 mastshai mastshai       4096 Sep  4 07:46 app
[mastshai@OEL u01]$ ./wls1036_linux32.bin
Extracting 0%....................................................................................................100%
Unable to instantiate GUI, defaulting to console mode.


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Welcome:
--------

This installer will guide you through the installation of WebLogic 10.3.6.0. 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]>


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [Enter new value or use default "/mastshai/Oracle/Middleware"]


Enter new Middleware Home OR [Exit][Previous][Next]> /u01/fmw


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [/u01/fmw]

Use above value or select another option:
    1 - Enter new Middleware Home
    2 - Change to default [/mastshai/Oracle/Middleware]


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


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[Yes]


Enter index number to select OR [Exit][Previous][Next]> 3


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]


Enter [Yes][No]? No


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]


    ** Do you wish to bypass initiation of the configuration manager and
    **  remain uninformed of critical security issues in your configuration?


Enter [Yes][No]? Yes


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]


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


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]


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


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Choose Install Type:
--------------------

Select the type of installation you wish to perform.

 ->1|Typical
    |  Install the following product(s) and component(s):
    | - WebLogic Server
    | - Oracle Coherence

   2|Custom
    |  Choose software products and components to install and perform optional configuration.


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


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/u01/fmw]

Product Installation Directories:


   1|WebLogic Server: [/u01/fmw/wlserver_10.3]
   2|Oracle Coherence: [/u01/fmw/coherence_3.7]


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


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

The following Products and JDKs will be installed:
--------------------------------------------------

    WebLogic Platform 10.3.6.0
    |_____WebLogic Server
    |    |_____Core Application Server
    |    |_____Administration Console
    |    |_____Configuration Wizard and Upgrade Framework
    |    |_____Web 2.0 HTTP Pub-Sub Server
    |    |_____WebLogic SCA
    |    |_____WebLogic JDBC Drivers
    |    |_____Third Party JDBC Drivers
    |    |_____WebLogic Server Clients
    |    |_____WebLogic Web Server Plugins
    |    |_____UDDI and Xquery Support
    |    |_____Evaluation Database
    |_____Oracle Coherence
    |    |_____Coherence Product Files
    |_____JDKs
         |_____SUN SDK 1.6.0_29
         |_____Oracle JRockit 1.6.0_29 SDK

    *Estimated size of installation: 1,276.0 MB


Enter [Exit][Previous][Next]>
Dec 10, 2014 9:06:19 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.



<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Installing files..

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


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Installing JDK....

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


Performing String Substitutions...


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Configuring OCM...

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


Creating Domains...


<------------------------------------------------------------------------------ Oracle Installer - WebLogic 10.3.6.0 ------------------------------------------------------------------------------>

Installation Complete


Congratulations! Installation is complete.


Press [Enter] to continue or type [Exit]>
[mastshai@OEL u01]$


[mastshai@OEL u01]# cd fmw/
[mastshai@OEL fmw]$ ls -ltr
total 180
drwxr-x---. 7 mastshai mastshai  36864 Dec 10 21:06 modules
-rw-rw----. 1 mastshai mastshai    133 Dec 10 21:06 domain-registry.xml
drwxr-x---. 8 mastshai mastshai   4096 Dec 10 21:06 utils
drwxr-x---. 8 mastshai mastshai   4096 Dec 10 21:06 jdk160_29
drwxr-x---. 7 mastshai mastshai   4096 Dec 10 21:06 jrockit_160_29_D1.2.0-10
-rw-r-----. 1 mastshai mastshai    621 Dec 10 21:06 ocm.rsp
-rw-r-----. 1 mastshai mastshai 109169 Dec 10 21:06 registry.dat
-rw-r-----. 1 mastshai mastshai   2470 Dec 10 21:06 registry.xml
drwxr-x---. 2 mastshai mastshai   4096 Dec 10 21:06 logs
drwxr-x---. 8 mastshai mastshai   4096 Dec 10 21:06 wlserver_10.3
drwxr-x---. 6 mastshai mastshai   4096 Dec 10 21:06 coherence_3.7
[mastshai@OEL fmw]$ cd wlserver_10.3/
[mastshai@OEL wlserver_10.3]$ pwd
/u01/fmw/wlserver_10.3
[mastshai@OEL wlserver_10.3]$ ls -ltr
total 24
drwxr-x---.  3 mastshai mastshai 4096 Dec 10 21:06 sip
drwxr-x---.  2 mastshai mastshai 4096 Dec 10 21:06 L10N
drwxr-x---. 11 mastshai mastshai 4096 Dec 10 21:06 server
drwxr-x---. 11 mastshai mastshai 4096 Dec 10 21:06 common
drwxr-x---.  3 mastshai mastshai 4096 Dec 10 21:06 inventory
drwxr-x---.  2 mastshai mastshai 4096 Dec 10 21:06 uninstall
[mastshai@OEL wlserver_10.3]# cd ..
[mastshai@OEL fmw]$ cat registry.xml
<?xml version="1.0" encoding="UTF-8"?>
<bea-product-information xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:gpr="http://www.bea.com/ns/cie/gpr">
  <host home="/u01/fmw" name="OEL">
    <product format="1.0" name="WebLogic Platform">
      <release level="10.3" ServicePackLevel="6" PatchLevel="0" Status="installed" InstallTime="Dec 10, 2014 9:06:44 PM" InstallDir="/u01/fmw" JavaHome="/u01/fmw/jrockit_160_29_D1.2.0-10" JavaVersion="1.6.0_29" JavaVendor="Oracle">
        <component name="Common Infrastructure Engineering" version="7.4.0.0" InstallDir="">
          <component name="Uninstall"/>
          <component name="Patch Client"/>
          <component name="Patch Attachment Facility"/>
          <component name="Clone Facility"/>
        </component>
        <component name="WebLogic Server" version="10.3.6.0" InstallDir="/u01/fmw/wlserver_10.3">
          <component name="Core Application Server"/>
          <component name="Administration Console"/>
          <component name="Configuration Wizard and Upgrade Framework"/>
          <component name="Web 2.0 HTTP Pub-Sub Server"/>
          <component name="WebLogic SCA"/>
          <component name="WebLogic JDBC Drivers"/>
          <component name="Third Party JDBC Drivers"/>
          <component name="WebLogic Server Clients"/>
          <component name="WebLogic Web Server Plugins"/>
          <component name="UDDI and Xquery Support"/>
          <component name="Evaluation Database"/>
          <component name="Workshop Code Completion Support"/>
        </component>
        <component name="Oracle Configuration Manager" version="10.3.5.0" InstallDir="">
          <component name="Data Collector"/>
        </component>
        <component name="Oracle Coherence" version="3.7.1.1" InstallDir="/u01/fmw/coherence_3.7">
          <component name="Coherence Product Files"/>
        </component>
      </release>
    </product>
    <java-installation Name="jdk160_29" JavaHome="/u01/fmw/jdk160_29" JavaVersion="1.6.0_29" JavaVendor="Sun" Architecture="32" Platform="linux">
      <dependent-product Name="WebLogic Platform" Version="10.3.6.0"/>
    </java-installation>
    <java-installation Name="jrockit_160_29_D1.2.0-10" JavaHome="/u01/fmw/jrockit_160_29_D1.2.0-10" JavaVersion="1.6.0_29" JavaVendor="Oracle" Architecture="32" Platform="linux">
      <dependent-product Name="WebLogic Platform" Version="10.3.6.0"/>
    </java-installation>
  </host>
</bea-product-information>

Wednesday, June 25, 2014

WebLogic JDBC Interview Questions



(1) What is JDBC?
Java Database Connectivity is a Java API which is used for accessing the database

(2) What is a data source?
A JDBC data source is an object bound to the JNDI tree that provides database connectivity through a pool of JDBC connections

(3) What is a connection pool?
Connection pool is a group of connections which are used to create physical database connections

(4) What are the advantages of connection pool?
  • It provides re-usability of database connections
  • It provides Readily Available Connections
  • You can test the connection (Test Connection on Reserve) before giving it to an application
  • No hard coding is required. You can change host name, service name, port etc., in WebLogic Admin Console 

(5) When JDBC Connections are created?
  • When starting up WebLogic Server 
  • When deploying the connection pool to a target server or cluster 

(6) What are the different types of WebLogic Server JDBC Data Sources?
  • Generic Data Sources
  • Multi Data Sources
  • Grid Link Data Sources

(7) What is a Generic Data Source?
It provides database connectivity through a pool of JDBC connections

(8) What is Multi Data Source?
Multi Data Source is an abstraction around group of databases which provides either load balancing or fail-over

(9) What is a Grid Link Data Source?
Grid Link  Data Source is a data source which provides connectivity between WebLogic Server and an Oracle RAC (Real Application Cluster) Database. The Grid Link Data Source is introduced from WebLogic Server 10.3.4.

(10) What are the algorithms supported by Multi Data Source?
  • Load Balancing
  • Fail-over
(11) What will happen to in-use connections if one of the data source in Multi Data source fails?
The Multi data source does not provide fail-over for active and in-use connections.

(12) What are the advantages of GridLink data source?
GridLink Data Source provides:
  • Fast Connection Fail-over
  • Runtime Connection Load Balancing 
  • GridLink Affinity

13) What is FAN?
FAN stands for Fast Application Notification events. Enabling FAN Events allows a data source to subscribe to and process Oracle Fast Application Notification (FAN) events.

(14) What is ONS?
Oracle Notification Service (ONS) is used to adaptively respond to state changes in an Oracle RAC instance.  ONS Client will connect to a list of ONS daemon listen addresses and port for receiving ONS-based FAN events.

You can enable FAN Events by
  • Select Fan Enabled
  • Provide a comma-separate list of ONS daemon listen addresses and ports for receiving ONS-based FAN events. You can use Single Client Access Name (SCAN) addresses to access FAN notifications.


(15) What is the default database listen port?
1521

(16) What is the default ONS listen port?
6200

(17) What is JDBC URL?
It is the URL of the database to connect to. Data base locations are specified using a JDBC Uniform Resource Locator (URL). The format of the URL varies by JDBC driver.

Examples for JDBC URL:
jdbc:oracle:thin:@<database host>:<db listener port>/<database service name>


(18) What are the different types of JDBC Drivers?
  • Type 1 Driver ( JDBC-ODBC Driver)
  • Type 2 Driver ( Native Driver)
  • Type 3 Driver ( Network Driver)
  • Type 4 Driver (Pure Java Driver)

(19) What are the databases supported by Oracle WebLogic?
  • Orace Database
  • Sybase
  • MySQL
  • DB2
  • Pointbase
  • Microsoft SQL Server etc  (for more information refer the oracle documentation)

(20) What is the difference between XA driver & Non-XA driver?
 XA stands for eXtended Architecture, which is used to support Global Transactions.
Non-XA stands for non-eXtended Architecture which is used to support Location Transactions
 
(21) What is the difference between Local transactions & Global transactions?

A transaction which involves single database is known as local transaction.
A transaction which involves multiple databases is known as Global transaction.
 
(22) What is LLR?
 
(23) Which JNDI name is used in  applications in case of Multi Data Source?

You need to use the JNDI name that you have used while creating a multi data source in WebLogic
 
(24) Total number of JDBC connections?

(25) What is data source targeting & un-targeting?
You can select one or more targets to deploy your new JDBC data source. If you don't select a target, the data source will be created but not deployed. You will need to deploy the data source at a later time. Un-targeting a datasource is deselection the data source targets

(26) What is oracle.net.CONNECT_TIMEOUT?
The property oracle.net.CONNECT_TIMEOUT helps to set the login time out in Oracle.
 
(27) What is oracle.jdbc.ReadTimeout ?

The property oracle.jdbc.ReadTimeout helps to set read timeout while reading from the socket.

(28) What is the difference between thin driver & thick driver?

(29)  What is Test Connections On Reserve?
It enables WebLogic Server to test a connection before giving it to a client. (It requires that you specify a Test Table Name)

(30) What is Test Frequency?
It is the number of seconds a WebLogic Server instance waits between attempts when testing unused connections.(It requires that you specify a Test Table Name.) Connections that fail the test are closed and reopened to re-establish a valid physical connection. If the test fails again, the connection will be closed

(31) What is Shrink Frequency?  
The number of seconds to wait before shrinking a connection pool that has incrementally increased to meet demand. Default value 900 seconds(15mins)

(32) What is Inactive Connection Timeout?
The number of inactive seconds on a reserved connection before WebLogic Server reclaims the connection and releases it back into the connection pool. If you set the Inactive Connection Timeout feature to a positive value, the WebLogic server reclaims the leaked connections

(33) What happen if you select the "Fan Enabled" during Grid Link data source creation?  
It enables the data source to subscribe to and process Oracle FAN events.

(34) What is the use of ONS nodes?
A comma-separate list of ONS daemon listen addresses and ports to which connect to for receiving ONS-based FAN events.
Example: <ONS Scan Address>:6200 or <ONSHOST1>:6200,<ONSHOST2>:6200

(35) What is the use of Profile Connection Leak?
This is used to collect profile information about threads that have reserved a connection from the data source and the connection leaked (was not properly returned to the pool of connections).
Set the Inactive Connection Timeout feature to a positive value to reclaim leaked connection.

(36) What are different data source control operations that you can perform?
  • Shrink
  • Reset
  • Clear Statement Cache
  • Suspend
  • Resume
  • Shutdown
  • Resume

(37) What is the use of Capacity Increment Attribute?
WebLogic first uses the existing connections available in the pool when a connection request is issued. If there are no connections available, this parameter takes care of creating a new connection.
In WebLogic Server 10.3.1 and higher releases, the Capacity Increment attribute is no longer configurable and is set to a value of 1.


(38) Difference between MinCapacity & InitialCapacity?
The MinCapacity attribute sets the minimum number of physical connections that a connection pool can contain after it is initialized.
The Minimum Capacity parameter was added in WebLogic Server 10.3.6.
The InitialCapacity value that previously handled both the initial and minimum capacity for the pool this has been split into two attributes:
  • MinCapacity defaults to InitialCapacity if not set; InitialCapacity continues to default to 1.
  • MinCapacity is only used for shrinking calculations only. It is lazy in that the minimum connections are not created when the server starts up; InitialCapacity is used for this function.
  • For upward compatibility, InitialCapacity is used if MinCapacity is not set.

(39) What will you do if the database is down during WebLogic Servers start-up? 
If a data source connection cannot be established with the database during startup for some reason, the Managed Server starts in the ADMIN state instead of in the RUNNING state. The commonly used procedure in this situation is to click on the Resume button; the server instance resumes to the RUNNING state and starts accepting and processing the application requests.


But errors will occur with the applications that use this data source. Even if the database goes back online, the data source will not start automatically. Then you need to perform un-targeting and targeting of data source



(40) What will you do to avoid the ADMIN state on start-up when there is  a database issue?
To avoid the ADMIN state on start-up, set the data source Initial Capacity to 0 so it won't open any connection to the database  during the server startup process. The Managed Server instance will start in the RUNNING state, and as soon as the database  goes back online, the data source will reconnect to it without intervention.


(41) What is the use of Thin JDBC Driver?



Note:
  • The Multi data source is responsible for managing the load and failover; so if the Oracle database uses the SCAN address feature, it's recommended to set up a Grid Link data source instead.
  • In WebLogic Server 12c,  for production environments it would be to set Initial Capacity to 0 and Minimum Capacity and Maximum Capacity to the same value.
  • During the WebLogic Server start up process, the data sources are deployed and the connections to the databases are opened according to the Initial Capacity parameter.