Top Banner
Weblogic Administration Madhu Kumar Reddy DAY 1
75
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • Weblogic Administration Madhu Kumar Reddy

    DAY 1

  • Agenda

    Introduction

    Types of servers

    Difference b/w webservers and Application servers

    Weblogic server overview

    JDK Installation

    Weblogic server installation

    Weblogic Domain creation

  • What is client and server ?

  • How many types of servers you

    know?

  • 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

  • Difference b/w webserver and

    Application server

    The basic difference between a web server and an application server is

    Webserver can execute only web applications i,e servlets and JSPs and has

    only a single container known as Web container which is used to

    interpret/execute web applications

    Application server can execute Enterprise application, i,e (servlets, jsps, and

    EJBs) it is having two containers 1. Web Container(for interpreting/executing

    servlets and jsps) 2. EJB container(for executing EJBs). it can perform

    operations like load balancing , transaction cluster etc

  • Architecture Types

    1-Tier

    2-Tier

    3-Tier

    N-tier

  • The 1-Tier Architecture

  • The 2-Tier Architecture

  • The 3-Tier Architecture

  • The N-Tier Architecture

  • Application servers widely used in IT

    Redhat Jboss

    IBM Websphere

    Oracle Weblogic

    Oracle Webcenter

    Oracle Glassfish

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

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

  • 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

  • Weblogic server

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

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

  • Download

    Sun Java /Oracle jrockit

    Weblogic Application server

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

  • Installing JDK /Oracle jrockit

  • Installing JDK /Oracle jrockit

    UNIX

    export JAVA_HOME=PATH

  • Download Weblogic

    http://www.oracle.com/technetwork/middleware/weblogic/downloads/index.ht

    ml

  • Weblogic Installation Types

    GUI Mode

    Console Mode

    Silent Mode

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

  • GUI Mode Installation

    Note: In unix, it is always recommended to install weblogic server with the

    guest user not with root user.

  • GUI Mode Installation

    Start the Installation by double click the installer file.

    Click Next.

  • GUI Mode Installation

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

    named Oracle/Middleware.

    Click Next

  • GUI Mode Installation

    Register for Security Updates

    Click Next

  • GUI Mode Installation

    Choose a Custom Installation

    Click Next

  • GUI Mode Installation

    JDK Selection

    Click Next

  • GUI Mode Installation

    Choose Product Installation Directory

    Click Next

  • GUI Mode Installation

    Choose Shortcut Location

    Click Next

  • GUI Mode Installation

    Install Windows Service

    Click Next

  • GUI Mode Installation

    Installation Summary

    Click Next

  • GUI Mode Installation

    Status

    Click Next

  • GUI Mode Installation

    Installation Complete

    Click Next

  • 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

  • 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

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

    07/04/2012 08:02 AM ..

    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

  • Console-Mode installation

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

    Extracting .....................................................................

    ............................... Done

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

  • Console-Mode installation

    Choose Middleware Home Directory:

    ---------------------------------

    ->1* Create a new Middleware Home

    2D:\WLS\bea816

    3D:\WLS\bea923

    4D:\WLS\bea1033

    5D:\WLS\bea1032

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

  • Console-Mode installation

    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

  • Console-Mode installation

    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

  • Console-Mode installation

    Register for Security Updates: ------------------------------ Provide your email address for security updates and to initiate configuration m anager. 1Email:[] 2Support Password:[] 3Receive Security Update:[Yes] Enter index number to select OR [Exit][Previous][Next]> 3

  • Console-Mode installation

    Register for Security Updates: ------------------------------ Provide your email address for security updates and to initiate configuration m anager. "Receive Security Update:" = [Enter new value or use default "Yes"] Enter [Yes][No]? No

  • Console-Mode installation

    Register for Security Updates: ------------------------------ Provide your email address for security updates and to initiate configuration m anager. "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

  • Console-Mode installation

    Register for Security Updates: ------------------------------ Provide your email address for security updates and to initiate configuration m anager. 1Email:[] 2Support Password:[] 3Receive Security Update:[No] Enter index number to select OR [Exit][Previous][Next]>Next

  • Console-Mode installation

    Register for Security Updates: ------------------------------ Provide your email address for security updates and to initiate configuration m anager. 1Email:[] 2Support Password:[] 3Receive Security Update:[No] Enter index number to select OR [Exit][Previous][Next]>Next

  • Console-Mode installation

    Choose Install Type: -------------------- Select the type of installation you wish to perform. ->1Typical Install the following product(s) and component(s): - WebLogic Server - Oracle Coherence 2Custom Choose software products and components to install and perform optional configuration. Enter index number to select OR [Exit][Previous][Next]>Next

  • Console-Mode installation

    Choose Product Installation Directories: ---------------------------------------- Middleware Home Directory: [D:\WLS1036] Product Installation Directories: 1WebLogic Server: [D:\WLS1036\wlserver_10.3] 2Oracle Coherence: [D:\WLS1036\coherence_3.7] Enter index number to select OR [Exit][Previous][Next]>Next

  • Console-Mode installation

    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. 2Local 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

  • Console-Mode installation

    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. ->1Yes. 2No, Go back to the previous screen and make another choice. Enter index number to select OR [Exit][Previous][Next]>Next

  • Console-Mode installation

    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

  • Console-Mode installation Installing files.. 0% 25% 50% 75% 100% [------------|------------|------------|------------] [***************************************************] Installing JDK.... 0% 25% 50% 75% 100% [------------|------------|------------|------------] [***************************************************] Performing String Substitutions... Configuring OCM... 0% 25% 50% 75% 100% [------------|------------|------------|------------] [***************************************************]

  • Console-Mode installation

    Creating Domains... Installation Complete Congratulations! Installation is complete. Press [Enter] to continue or type [Exit]> Finish installation. Press any key to close this window...

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

  • Silent Mode installation

    Silent.xml

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

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

    07/04/2012 11:32 PM ..

    07/04/2012 11:41 PM 318 silent.xml

    12/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:\W

    LS-Installer\install.log

  • 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

  • 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 serversuch a domain can be useful while developing applications, but is not recommended for use in a production environment.

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

  • 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 applicationsfor example, JSPs and EJBs.

  • 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

  • Weblogic Domain

  • Weblogic domain creation (Flowchart)

  • Weblogic domain creation

    Step1: Create Domain

  • Weblogic domain creation

    Step2: Select Domain Source

  • Weblogic domain creation

    Step3: Configure Administrator

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

  • Weblogic domain creation

    Step5:Customize your domain

    On the next screen select Administration Server and Managed Servers,

    Clusters and Machines.

  • Weblogic domain creation

    Step6: Configure Managed Server and admin server

  • Weblogic domain creation

    Step7: Summary screen

  • Thank You