Showing posts with label Oracle WebLogic Server. Show all posts
Showing posts with label Oracle WebLogic Server. Show all posts

Friday, 13 October 2017

Oracle weblogic server interview questions and answers 12c

WebLogic Server Domain ?

WebLogic is a J2EE application server and also an HTTP web server by Oracle, for Unix, Linux, Microsoft Windows, and other platforms. WebLogic supports Oracle, DB2, Microsoft SQL Server, and other JDBC Compliant databases.

How many types of installation available in weblogic 12c?

Methods of installation?

Weblogic 12c have two types of installation.
1. Interactive using Oracle Universal Installer
2. Silent using Response files


What is a Silent Installation Command?

java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /u01/app/wl_install_response.rsp -invPtrLoc /u01/app/silent/createPrivateInventory.txt

$vi createPrivateInventory.txt
inventory_loc=/u01/app/silent/privOraInv.loc
inst_group=oinstall

Wednesday, 27 September 2017

Install weblogic server 11g (10.3.6.0) in console mode step by step

Software Certification for WebLogic Server 11g (10.3.6):
=======================================
Oracle JDK 1.7.0.99
Oracle linux 7,6,5,4
Oracle database 12.1.0.2.0, 12.1.0.1.0, 11.2.0.4.0, 11.2.0.3.0
Oracle JRockit  6u37 R28.3+

Install JDK 1.7:
===========
http://netgik.blogspot.in/2017/09/removing-openjdk-and-installing-oracle.html

After installation java command should work on server.


How to install WebLogic server in console mode:
=================================

1. Create a dedicated user to install and run WebLogic Server 11g in Linux. Log in as the root user and create the user and the group named psoft, and define a new password for it:
groupadd psoft
useradd -g psoft weblogic
useradd -g psoft -G oinstall tuxedo
passwd weblogic
Changing password for user weblogic.
New UNIX password: <new password>
Retype new UNIX password: <new password>


Oracle Users and Directory Structure:- (Not required here.. can use if you are installing oracle as well)
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/groupadd oper
/usr/sbin/groupadd grid
/usr/sbin/useradd -g oinstall -G dba,oper oracle
/usr/bin/passwd oracle
mkdir -p /u01/app/oracle/product/11.2.0/client_1
mkdir -p /u01/app/oraInventory
chown -R oracle:oinstall /u01/app
chmod -R 775 /u01/app/
su - oracle
mkdir -p /u01/oradata/demodb

Middleware Directory:-
mkdir -p /u02/middleware/tuxedo
mkdir -p /u02/middleware/jrockit
mkdir -p /u02/middleware/weblogic
chgrp -R psoft /u02
chmod -R 775 /u02


Brief Steps:
# su - weblogic
export JAVA_HOME=/usr/java/jdk1.7.0_51/   (Optional - Set java path if not using default installed java)
$JAVA_HOME/bin/java -jar ./wls1036_generic.jar -mode=console -logs=./wls1036_install.log
Create a new Middleware Home ->
Choose Middleware Home Directory = /u02/mw/weblogic
Receive Security Update = No
Select the type of installation you wish to perform. = Typical
JDK Selection (Any * indicates Oracle Supplied VM) = 2|/u02/jrockit [x]
Congratulations! Installation is complete.


Complete Steps:
# su - weblogic
cd /dumps/
# ll
total 2146584
-rwxr-xr-x. 1 root root  122639592 Mar 11  2014 jdk-7u51-linux-x64.rpm
-rwxr-xr-x. 1 root root 1068506707 Sep 22 00:13 wls1036_generic.jar
[weblogic@oel641 dumps]$ $JAVA_HOME/bin/java -jar ./wls1036_generic.jar -mode=console -logs=./wls1036_install.log
Extracting 0%....................................................................................................100%
<-------------------- 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
"/home/weblogic/Oracle/Middleware"]

Enter new Middleware Home OR [Exit][Previous][Next]> /u02/middleware/weblogic
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------
    "Middleware Home" = [/u02/middleware/weblogic]

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

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

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

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

    "Middleware Home" = [/u02/middleware/weblogic]

Enter new Middleware Home OR [Exit][Previous][Next]>

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Middleware Home Directory:
---------------------------------
    "Middleware Home" = [/u02/middleware/weblogic]
    ** The directory could not be created: [/u02/middleware/weblogic]
Enter new Middleware Home OR [Exit][Previous][Next]>
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------
    "Middleware Home" = [/u02/middleware/weblogic]
    ** Access to the directory is denied: [/u02/middleware/weblogic]

Enter new Middleware Home 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 ------------------->

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|/usr/java/jdk1.7.0_51[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: [/u02/middleware/weblogic]
Product Installation Directories:
   1|WebLogic Server: [/u02/middleware/weblogic/wlserver_10.3]
   2|Oracle Coherence: [/u02/middleware/weblogic/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]>
Sep 23, 2017 8:21:12 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
<-------------------- 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]>


Create  WebLogic Domains Step by Step with Detail Description

https://docs.oracle.com/cd/E29542_01/web.1111/e14140/configuration_screens.htm#WLDCW205

Friday, 3 March 2017

WebLogic 12c (12.2.1.2) Installation on Windows Step by Step

Softwares Required to install WebLogic Server:

1. jdk-8u121-windows-x64.exe (for development) or
    jrockit-jdk1.6.0_45-R28.2.7-4.1.0-windows-x64.exe (for production)

2. fmw_12.2.1.2.0_infrastructure.jar (For Fusion Middleware Infrastructure - It adds Fusion Middleware Control and Java Required Files (JRF) for managing Multitenant domains with multiple partitions.) or
    fmw_12.2.1.2.0_wls.jar

In this installation we have used jdk-8u121-windows-x64.exe and fmw_12.2.1.2.0_infrastructure.jar.

Download Java JDK and Install on your machine.

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html





Install Java JDK: (Installed jdk on C:\Program Files\Java\jdk1.8.0_121 in our case)





Monday, 27 February 2017

Oracle WebLogic Server 12c Installation Prerequisites

Installation Prerequisites

- 1-GHz CPU
- 3.9 GB of Disk Space
- A minimum of 1 GB RAM, although Oracle recommends 2 GB of RAM.
- 8-bit color depth (256 colors) is required.
- The installation program requires a Java run-time environment (JRE) to run. A JRE is bundled in the Windows 32-bit and Linux x86 installation programs, as well as in some UNIX installation programs (those with file names ending in .bin).
- To run the .jar installation programs, you must have the appropriate version of the JDK installed on your system, and include the bin directory of the JDK at the beginning of the PATH variable definition.


Identify appropriate installation file for your platform and download from oracle software cloud:

http://netgik.blogspot.in/2017/02/oracle-weblogic-server-installers.html


Overview of WebLogic Server System Administration

https://docs.oracle.com/cd/E13222_01/wls/docs81/adminguide/overview.html


Understanding WebLogic Server Domains

https://docs.oracle.com/cd/E13222_01/wls/docs90/domain_config/understand_domains.html


Weblogic defines the roles of Admin/Managed server as follows:
  • Admin Server
    • can be only one for a Domain, which works like a Central Configuration/Monitoring controller for the entire domain
    • runs the console, where you can create new managed servers, define DataSources (DB connections), JMS queues, deploy apps to Managed Servers, etc.
  • Managed Server
    • additional WebLogic Server instances
    • you deploy Web applications, EJBs, and other resources onto the Managed Servers and use the Administration Server for configuration and management purposes only. This is where you run your apps.
    • Managed Servers can be grouped to clusters.
    • one of the examples of a Managed Server is a server running SOA applications, like OSB or BPEL. 



    What is domain in WebLogic ?
    What is Administration Server ?
    What is Managed Server ?
    What is Cluster in WebLogic ?   
WebLogic Node Manager:

Node Manager is a WebLogic Server utility that enables you to start, shut down, and restart Administration Server and Managed Server instances from a remote location. Before 12c, a Node Manager process was not associated with a specific WebLogic domain but with a host machine


Although Node Manager is optional, it is recommended if your WebLogic Server environment hosts applications with high availability requirements.

If you run Node Manager on a machine that hosts Managed Servers, you can start and stop the Managed Servers remotely using the Administration Console or from the command line. Node Manager can also automatically restart a Managed Server after an unexpected failure.


Java-based Node Manager runs within a Java Virtual Machine (JVM) process. It is recommended that you run it as a Windows service on Windows platforms and as an operating system service on UNIX platforms, allowing it to restart automatically when the system is rebooted.

The relationship between Node Manager, its clients, and the server instances it controls.
 






Other URLs:

http://onlineappsdba.com/index.php/2008/07/24/domain-administration-managed-server-cluster-in-oracle-weblogic/

http://middlewaremagic.com/weblogic/?p=1914
 

Oracle WebLogic Server Prerequisites & Installers



Installation Prerequisites

- 1-GHz CPU
- 3.9 GB of disk space
- A minimum of 1 GB RAM, although Oracle recommends 2 GB of RAM.
- 8-bit color depth (256 colors) is required.
- The installation program requires a Java run-time environment (JRE) to run. A JRE is bundled in the Windows 32-bit and Linux x86 installation programs, as well as in some UNIX installation programs (those with file names ending in .bin).
- To run the .jar installation programs, you must have the appropriate version of the JDK installed on your system, and include the bin directory of the JDK at the beginning of the PATH variable definition.
 


Oracle Prvides Three types of installer:

OS-specific Package installer - This type of installer is a standalone version of the installation program that includes the JDKs for the selected platform. The installer may be either an .exe file or a .bin file, depending on the selected platform.

Generic Package installer - This type of installer is a .jar file. It does not include the JRockit SDK and Sun JDK. You can use this type of installer to install the product on any supported platform on which Java is already installed.
  
Upgrade installer - Upgrade installers allow you to upgrade an existing WebLogic Server installation to the current patch release. For example, if you have WebLogic Server 10.3.0 installed, you can use an Upgrade installer to upgrade your installation to WebLogic Server 10.3.6. If a patch release is available for your current WebLogic Server installation, you can download an Upgrade installer from My Oracle Support.

Depending on your platform, the Upgrade installer is either an OS-specific Package installer (.bin or .exe file) or a Generic Package installer (.jar file).

Development-only and supplemental installers - The development-only installer is a ZIP file that you extract to a Middleware home directory to create a WebLogic Server installation. It contains a WebLogic Server installation that includes all of the artifacts needed for development. You must not use this WebLogic Server installation for production.

A supplemental installer ZIP file is also available to provide additional features, such as server examples, for a development-only installation.

Download installer from OTN Website.
http://edelivery.oracle.com
http://download.oracle.com

Installers for WLS 12.1.3:
==================
oepe-12.1.3-kepler-installer-linux-gtk.bin
oepe-12.1.3-kepler-installer-win32
fmw_12.1.3.0.0_wls
wls1213_dev
wls1213_dev_supplemental

Jenkins Startup and Configuration

Steps to setup jenkins on ubuntu:- -After installation. check the jenkins services running on not on the server. sudo service jenk...