75
Weblogic Administration Rakesh kumar DAY 1

Weblogic Administration 2015

Embed Size (px)

DESCRIPTION

weblogic

Citation preview

Page 1: Weblogic Administration 2015

Weblogic Administration

Rakesh kumar

DAY 1

Page 2: Weblogic Administration 2015

Agenda

Introduction

Types of servers

Difference b/w webservers and Application servers

Weblogic server overview

JDK Installation

Weblogic server installation

Weblogic Domain creation

Page 3: Weblogic Administration 2015

What is client and server ?

Page 4: Weblogic Administration 2015

How many types of servers you know?

Page 5: Weblogic Administration 2015

Types of server

Application server, a server dedicated to running certain software applications

Communications server, carrier-grade computing platform for communications networks

Compute server, a server intended for intensive (esp. scientific) computations

Database server, provides database services to other computer programs or computers

Fax server, provides fax services for clients

File server, provides remote access to files

Game server, a server that video game clients connect to in order to play online together

Print server, provides printer services

Proxy server, acts as an intermediary for requests from clients seeking resources from other servers

Web server, a server that HTTP clients connect to in order to send commands and receive responses along with data contents

Page 6: Weblogic Administration 2015

Difference b/w webserver and Application server

Web Server is designed to serve HTTP Content. App Server can also serve HTTP Content but is not limited to just HTTP. It can be provided other protocol support such as RMI/RPC

Web Server is mostly designed to serve static content, though most Web Servers have plugins to support scripting languages like Perl, PHP, ASP, JSP etc. through which these servers can generate dynamic HTTP content.

Most of the application servers have Web Server as integral part of them, that means App Server can do whatever Web Server is capable of. Additionally App Server have components and features to support Application level services such as Connection Pooling, Object Pooling, Transaction Support, Messaging services etc.

As web servers are well suited for static content and app servers for dynamic content, most of the production environments have web server acting as reverse proxy to app server. That means while servicing a page request, static contents (such as images/Static HTML) are served by web server that interprets the request. Using some kind of filtering technique (mostly extension of requested resource) web server identifies dynamic content request and transparently forwards to app server

Example of such configuration is Apache Tomcat HTTP Server and Oracle (formerly BEA) WebLogic Server. Apache Tomcat HTTP Server is Web Server and Oracle WebLogic is Application Server.

Page 7: Weblogic Administration 2015

Architecture Types

1-Tier

2-Tier

3-Tier

N-tier

Page 8: Weblogic Administration 2015

The 1-Tier Architecture

Page 9: Weblogic Administration 2015

The 2-Tier Architecture

Page 10: Weblogic Administration 2015

The 3-Tier Architecture

Page 11: Weblogic Administration 2015

The N-Tier Architecture

Page 12: Weblogic Administration 2015

Application servers widely used in IT

Redhat Jboss

IBM Websphere

Oracle Weblogic

Oracle Webcenter

Oracle Glassfish

Page 13: Weblogic Administration 2015

Weblogic server

WebLogic is a server software application that runs on a middle tier, between back-end databases and related applications and browser-based thin clients. WebLogic is a leading e-commerce online transaction processing (OLTP) platform, developed to connect users in a distributed computing environment and to facilitate the integration of mainframe applications with distributed corporate data and applications.

Page 14: Weblogic Administration 2015

Weblogic Admin responsibilities

Troubleshooting, Load Balancing, Clustering, Deploying Applications, Performance Tuning and Maintenance 

Create, configure and tune weblogic domains/applications for performance

Code deployments/promotions, performance monitoring and performance tuning 

Up gradation of WebLogic servers in development, testing and production environment and applying patch and service packs

Cluster Configuration – Single Cluster, Multiple Clusters and Deployment over clusters

Server Performance Tuning - Thread Dump Analysis, Core Dump Analysis when Server crashed unevenly

JMS Configurations– JMS Server, Connection Factory, Foreign JMS server, Message Bridge, Topic/Queue, Distributed destinations

Creating security roles, group policy, user authentication, auditing and authorization

Node Manager Configuration – remote managed server start and stop. SSL communication between admin server and node manager

Developing WLST scripts and auto deployment process

Tuning JVM heap size to maximize the number of clients accessing the applications.

Page 15: Weblogic Administration 2015

Major role of weblogic server

All oracle products are built on top of the weblogic server. Below are the few oracle products which are being widely used in the industry.

o Oracle Webcenter

o Oracle UCM

o Oracle IDM stack

o Oracle Weblogic Portal

o Oracle Fusion Apps

o Oracle SOA

Page 16: Weblogic Administration 2015

Weblogic server

Page 17: Weblogic Administration 2015

Artifacts

JAR is java archive file. It contain all class file,image,sound and other files which will needed in whole application. Computer users can create or extract JAR files using the jar command that comes with the JDK. They can also use zip tools. The Java Archive (JAR) file format enables you to bundle multiple files into a single archive file. jar was designed mainly to facilitate the packaging of java applets or applications into a single archive.

EAR -An Enterprise Archive file represents a J2EE application that can be deployed in a Web Sphere application server. EAR files are standard Java archive files and have the file extension .ear. EAR file contain ejb, web or application client module. ear file is complete j2ee application file that contain all(jar +war)

WAR -Web Archive (WAR) file is a Java archive file used to store jsp,servlets,classes,meta data information, images and Sound and tag libraries etc. Its standard file extension is .war. WAR files are used to package Web modules. A WAR file is for a Web application deployed to a servlet/jsp engine.

Page 18: Weblogic Administration 2015

What is deployment descriptor ?

A deployment descriptor (DD) refers to a configuration file for an artifact that is deployed to some container/engine.

In the Java Platform, Enterprise Edition, a deployment descriptor describes how a component, module or application (such as a web application or enterprise application) should be deployed. XML is used for the syntax of these deployment descriptor files.

For web applications, the deployment descriptor must be called web.xml and must reside in the WEB-INF directory in the web application root. For Java EE applications, the deployment descriptor must be named application.xml and must be placed directly in the META-INF directory at the top level of the application .ear file.

Page 19: Weblogic Administration 2015

Download

Sun Java /Oracle jrockit

Weblogic Application server

Page 20: Weblogic Administration 2015

Installing JDK /Oracle jrockit Install JDK / Jrockit

Set Environment variable JAVA_HOME

Windows:

o Right-click on the My Computer icon on your desktop and then click Properties.

o Click the Advanced tab.

o Click Environment Variables.

o Under System Variables, click New.

o In the Variable name field, enter JAVA_HOME.

o In the Variable value field, enter the installation path of the Java Development Kit.

o Click OK.

o Click Apply Changes.

Page 21: Weblogic Administration 2015

Installing JDK /Oracle jrockit

Page 22: Weblogic Administration 2015

Installing JDK /Oracle jrockit

UNIX

export JAVA_HOME=“PATH”

Page 24: Weblogic Administration 2015

Weblogic Installation Types

GUI Mode

Console Mode

Silent Mode

Page 25: Weblogic Administration 2015

What Is GUI-Mode Installation?

GUI-mode installation is the graphics-based method of executing the weblogic Installation program. It can be run on both Windows and UNIX systems.

To run GUI-mode installation, the console attached to the machine on which you are installing the software must support a Java-based GUI. All consoles for Windows systems support Java-based GUIs, but not all consoles for UNIX systems do.

Page 26: Weblogic Administration 2015

GUI Mode Installation

Note: In unix, it is always recommended to install weblogic server with the guest user not with root user.

Page 27: Weblogic Administration 2015

GUI Mode Installation

Start the Installation by double click the installer file.

Click Next.

Page 28: Weblogic Administration 2015

GUI Mode Installation

Select an Installation Directory. By default, the Middleware home directory is named Oracle/Middleware.

Click Next

Page 29: Weblogic Administration 2015

GUI Mode Installation

Register for Security Updates

Click Next

Page 30: Weblogic Administration 2015

GUI Mode Installation

Choose a Custom Installation

Click Next

Page 31: Weblogic Administration 2015

GUI Mode Installation

JDK Selection

Click Next

Page 32: Weblogic Administration 2015

GUI Mode Installation

Choose Product Installation Directory

Click Next

Page 33: Weblogic Administration 2015

GUI Mode Installation

Choose Shortcut Location

Click Next

Page 34: Weblogic Administration 2015

GUI Mode Installation

Install Windows Service

Click Next

Page 35: Weblogic Administration 2015

GUI Mode Installation

Installation Summary

Click Next

Page 36: Weblogic Administration 2015

GUI Mode Installation

Status

Click Next

Page 37: Weblogic Administration 2015

GUI Mode Installation

Installation Complete

Click Next

Page 38: Weblogic Administration 2015

Console-Mode installation

The console mode installer displays a series of text panels that correspond to the windows in the graphical installer. To complete the console-mode installation process, respond to the prompts in each panel by entering the number associated with your choice or by pressing Enter to accept the default. To exit the installation process, enter exit in response to any prompt. To review or change your selection or to go back to a previous panel, enter previous at the prompt.

Run:

platformXXX_win32 -mode=console -log=C:\logs\platform_install.log

Page 39: Weblogic Administration 2015

Console-Mode installation

Console mode: Log in to the target Windows system.

Open a command prompt window.

Go to the directory that contains the installation program.

Launch the installation by entering the name of the installation program

Page 40: Weblogic Administration 2015

Console-Mode installation

C:\Documents and Settings\username>d:

D:\>cd D:\WLS-Installer

D:\WLS-Installer>dir Volume in drive D is Data Volume Serial Number is 123A-4567

 Directory of D:\WLS-Installer

07/04/2012  08:02 AM    <DIR>          .07/04/2012  08:02 AM    <DIR>          ..07/04/2012  08:02 AM       859,548,533 wls1036_win32.exe               1 File(s)    859,548,533 bytes               2 Dir(s)  34,745,683,968 bytes free

D:\WLS-Installer>wls1036_win32.exe -mode=console

Page 41: Weblogic Administration 2015

Console-Mode installation

A new prompt will open and you may continue with the installation as follows:

 Extracting .................................................................................................... Done

<-------------------- 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 dataentered previously, type "Previous".  You may quit the installer at any time bytyping "Exit".

Enter [Exit][Next]>Next

Page 42: Weblogic Administration 2015

Console-Mode installation

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

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

 ->1¦* Create a new Middleware Home   2¦D:\WLS\bea816   3¦D:\WLS\bea923   4¦D:\WLS\bea1033   5¦D:\WLS\bea1032

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

Page 43: Weblogic Administration 2015

Console-Mode installation

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

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

    "Middleware Home" = [Enter new value or use default "C:\Oracle\Middleware"]

Enter new Middleware Home OR [Exit][Previous][Next]> D:\WLS1036

Page 44: Weblogic Administration 2015

Console-Mode installation

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

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

    "Middleware Home" = [D:\WLS1036]

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

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

Page 45: Weblogic Administration 2015

Console-Mode installation

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

Page 46: Weblogic Administration 2015

Console-Mode installation

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

Page 47: Weblogic Administration 2015

Console-Mode installation

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

Page 48: Weblogic Administration 2015

Console-Mode installation

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

Page 49: Weblogic Administration 2015

Console-Mode installation

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

Page 50: Weblogic Administration 2015

Console-Mode installation

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

Page 51: Weblogic Administration 2015

Console-Mode installation

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

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

Middleware Home Directory: [D:\WLS1036]

Product Installation Directories:

   1¦WebLogic Server: [D:\WLS1036\wlserver_10.3]   2¦Oracle Coherence: [D:\WLS1036\coherence_3.7]

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

Page 52: Weblogic Administration 2015

Console-Mode installation

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

Choose Shortcut Location:-------------------------

    *The installer creates shortcuts to Oracle components, samples, and tools.    *As a user with administrative privileges, you can specify where these    *shortcuts are created.

 ->1¦"All Users" Start Menu folder (recommended)    ¦For some installations, this setting may limit the automatic creation of    ¦server shortcuts for users without administrative privileges. Refer to the    ¦documentation for more information.   2¦Local user's Start Menu folder    ¦Select this option if you need to ensure that other profiles registered on    ¦this machine will not have access to these shortcuts.

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

Page 53: Weblogic Administration 2015

Console-Mode installation

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

Choose Shortcut Location:-------------------------

    *Are you sure you wish to create the shortcuts in the selected location?    *    *"All Users" Start Menu folder (recommended)    *For some installations, this setting may limit the automatic creation of    *server shortcuts for users without administrative privileges. Refer to the    *documentation for more information.

 ->1¦Yes.   2¦No, Go back to the previous screen and make another choice.

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

Page 54: Weblogic Administration 2015

Console-Mode installation

<-------------------- 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,289.8 MB

Enter [Exit][Previous][Next]>Next

Page 55: Weblogic Administration 2015

Console-Mode installation<-------------------- 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%[------------|------------|------------|------------][***************************************************]

Page 56: Weblogic Administration 2015

Console-Mode installation

Creating Domains...

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

Installation Complete

Congratulations! Installation is complete.

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

Finish installation. Press any key to close this window...

Page 57: Weblogic Administration 2015

Silent Mode installation

1) Log in to the Windows system.

2)Create a silent.xml file that defines the configuration settings normally entered by a user during an interactive installation process, such as graphical-mode or console-mode installation.

Page 58: Weblogic Administration 2015

Silent Mode installation

Silent.xml

<?xml version="1.0" encoding="UTF-8"?>

<bea-installer>

<input-fields>

<data-value name="BEAHOME" value="D:\WLS1036" />

<data-value name="WLS_INSTALL_DIR" value="D:\WLS1036\wlserver_10.3" />

<data-value name="COMPONENT_PATHS" value="WebLogic Server|Oracle Coherence" />

</input-fields>

</bea-installer>

Page 59: Weblogic Administration 2015

Silent Mode installation

3) Place the silent.xml file in the same directory as where the WebLogic Server Package installer is located.

4) Open a command prompt window.

5) Go to the directory that contains the installation program.

6) Start the installer as follows:

Page 60: Weblogic Administration 2015

Silent Mode installation

C:\Documents and Settings\username>d:

D:\>cd WLS-Installer

D:\WLS-Installer>dir Volume in drive D is Data Volume Serial Number is 172C-7213

 Directory of D:\WLS-Installer

07/04/2012  11:32 PM    <DIR>          .07/04/2012  11:32 PM    <DIR>          ..07/04/2012  11:41 PM               318 silent.xml12/22/2011  10:31 PM       859,548,533 wls1036_win32.exe               2 File(s)    859,548,851 bytes               2 Dir(s)  34,560,327,680 bytes free

D:\WLS-Installer>wls1036_win32.exe -mode=silent -silent_xml=silent.xml -log=D:\WLS-Installer\install.log

Page 61: Weblogic Administration 2015

Weblogic Domain

What Is a Domain?

A domain is the basic administration unit for WebLogic Server instances. A domain consists of one or more WebLogic Server instances (and their associated resources) that you manage with a single Administration Server. You can define multiple domains based on different system administrators' responsibilities, application boundaries, or geographical locations of servers. Conversely, you can use a single domain to centralize all WebLogic Server administration activities.

Each domain's configuration is stored in a separate configuration file called config.xml, which is stored on the Administration Server along with other files such as logs and security files. When you use the Administration Server to perform a configuration task, the changes you make apply only to the domain managed by that Administration Server

Page 62: Weblogic Administration 2015

Weblogic Domain

Contents of a Domain ?

A domain can include multiple WebLogic Server clusters and non-clustered WebLogic Server instances. A minimal domain can contain only one WebLogic Server instance, which functions both as an Administration Server, and as a Managed server—such a domain can be useful while developing applications, but is not recommended for use in a production environment.

Page 63: Weblogic Administration 2015

Differences Between Configuration Startup Modes

Function In development mode . . . In production mode . . .

SSL You can use the demonstration digital certificates provided by the WebLogic Server security services. With these certificates, you can design your application to work within environments secured by SSL.

A warning message is displayed if you use the demonstration digital certificates.

Deploying Applications WebLogic Server instances can automatically deploy and update applications that reside in the domain_name/applications directory (where domain_name is the name of a domain).

The auto-deployment feature is disabled, so you must use the WebLogic Server Administration Console or the weblogic.Deployer tool.

Log File Rotation When you start a server, the server automatically renames (rotates) its local server log file as server-name.log.n. For the remainder of the server session, the server rotates its local log file whenever the size of the file reaches 500 kilobytes.

A server rotates its local log file after the size of the file reaches 500 kilobytes.

Execute Queues The default number of threads available to Execute Queues is 15.

The thread count determines the number of simultaneous operations that can be performed by applications that use the specified execute queue.

By default, all applications use the execute queue named default. You can create additional queues to exercise more control over the resources that your applications use.

The default number of threads available to Execute Queues is 25.

JDBC Connection Pool Capacity The default capacity is 15 connections. The default capacity is 25 connections.

Page 64: Weblogic Administration 2015

What is Managed Server ?

Managed Weblogic Server:

Any other server instance other than Administrative Server of a Weblogic domain is called as Managed Weblogic Server. Managed Servers host the components and associated resources that constitute the applications—for example, JSPs and EJBs.

Page 65: Weblogic Administration 2015

What is Administration Server ?

Administration Server is WebLogic Server instance that maintains configuration data for a domain. You can deploy your application on administration Server but it is recommended to create managed Server and deploy your application in managed server and leave Administration domain for configuration and maintenance.

Note: There will always be atleast one Administration Server in a domain

Page 67: Weblogic Administration 2015

Weblogic domain creation (Flowchart)

Page 68: Weblogic Administration 2015

Weblogic domain creation

Step1: Create Domain

Page 69: Weblogic Administration 2015

Weblogic domain creation

Step2: Select Domain Source

Page 70: Weblogic Administration 2015

Weblogic domain creation

Step3: Configure Administrator

Page 71: Weblogic Administration 2015

Weblogic domain creation

Step4: Select JDK & Start Mode -  In below screen, you define Mode in which you wish to start your domain and JDK (Sun, JRockit or any other JDK)Production Mode- Domain is more secure, You need username password to start domain or deploy application. Development Mode- Not very secure, You can Autodeploy application and no need to provide username/password to start Domain.

Page 72: Weblogic Administration 2015

Weblogic domain creation

Step5:Customize your domain

On the next screen select Administration Server and Managed Servers, Clusters and Machines.

Page 73: Weblogic Administration 2015

Weblogic domain creation

Step6: Configure Managed Server and admin server

Page 74: Weblogic Administration 2015

Weblogic domain creation

Step7: Summary screen

Page 75: Weblogic Administration 2015

Thank You