Weblogic 101 for DBA
Osama Mustafa
Agenda
 Basic Concepts – Architecture.
 Installing WLS & Configuring a Domain.
 WebLogic & Java EE Compatibility.
 Managing WebLogic.
Who Am I ?
 Founder/CEO for Gurus Solutions company.
 Leader & Director for JAOUG.
 Oracle ACE Director.
 Certified OCP,OCE,OCS 10g,11g
 Certified Ethical hacker / LPT
 Sun / Linux Certified
 Author Of Oracle Penetration testing book, Now Working on
2nd one.
 Presenter & Contributor in Oracle Community .
 Published Articles in different Magazine.
 Blogger.
Basic Concepts – Architecture.
Weblogic concept
• Domains
• Server / Admin Server
• Managed Server.
• Node Manager
• Cluster
• Machine
Domain
 Domain
◦ Grouping of config/resources for an environment
◦ Has one set of administrators/security privileges
◦ Supports one major release of WebLogic at a time
◦ Is run in either ‘Production’ or ‘Development’ mode
Consists of
o Server
o Cluster
Server
• Server is where we :
• Deploy Enterprise Applications or Web Applications.
• Create JDBC Resources.
• Create JMS Resources.
• Two Weblogic Server type:
• Admin Server
• Managed Server
Admin Server
• Only ONE per domain.
• Controls start and stop of other servers in the Domain.
• Manages the creation of JDBC, JMS and other resources.
• Manages the deployment to servers in the domain.
• In development we use Admin Server for Deployment and Testing. This is
usually done via the Integrated WebLogic instance installed within
JDeveloper.
Managed Server
• Managed Server is an instance of WebLogic Server Managed by an Admin
Server.
• Managed Servers in a Domain are Independent of each other, in every
aspect.
• Applications Deployed in a Managed Server do not share any resources,
including JDBC and JMS Connections and Connection Factories.
• Configuration changes are send over to the Managed Server from the Admin
Server.
Managed Server
Node Manager
• Process to Start/Stop Managed Server instance on a Physical Machine.
• Connect to Admin Server and starts/stops WebLogic instance based
• Independent of Domain
• Default port 5556.
• Check the port using netstat –anp | grep port#.
Weblogic Installation
• Install JVM Depend on version.
• 2. Install a Middleware Home and WebLogic
• 3. Configure a Domain
Note: I usually install the JVM and use the generic
.jar installer (i.e. same for all platforms) rather than
using installer bundled with a JVM
Note about Install JVM
 Sun HotSpot or JRockit (being merged in Java7/8), or JVM for
your platform (e.g. IBM or HP).
 JRockit specific:
 Don’t install demos & samples/source code
 You probably don’t want JRockit as the public JRE
Install Weblogic
 Command line :-
 java -jar wls_version_generic.jar
 Don’t forget WLS has PSUs (e.g. 10.3.6.0.3) and quarterly SPUs (fka
CPUs)
 See the screens 
Configure a Domain
 You use the config wizard to create domains
◦ $WL_HOME/common/bin/config.sh (.cmd)
◦ there are several other methods too
Weblogic Cluster
• Scalability
• Load Balance
• Even distribution of jobs
• Multiple copies of an object that can do a particular job must be
available
• High-Availability
• Failover
• When a object processing a job becomes unavailable, a copy of the
object elsewhere takes over and finishes the job
Understand Clustering
 Stand Alone
 High Availability
 Another feature in Cluster Called Scalability
Node with
OFM
No System
Active Passive
Active Active
Active Active Active Active
Load Balancer
Active
FMW
Active
FMW
Domain, Database
- Oracle OHS
- Clients
Active
OFM Passive
Domain, Database
VIP
Active-Passive (Bad & Good)
• Cost.
• Easier configuration & administration.
• Provide availability for Application.
• No Additional H.W Cost ( Two Nodes ).
• Failover Time.
• Second node will not be used.
• Does not scale
Active-Active ( Bad & Good)
 Not all the application load is hosted by a single server.
 No Time For Failover.
 Flexibility to scale up.
 Load balancers improve manageability by routing application
deployment and system configuration requests to the most available
node.
• Cost
• complexity  mean more maintaining and
administering
WebLogic & Java EE Compatibility
• WebLogic 11g - JEE 5 Certified
• WebLogic 12c - JEE 6 Certified
• Java EE 6
• JSP 2.1, JSF 2.0
• EJB 3.1, JPA 2.0
• Context and Dependency Injection
• Restful Web Services
• Weblogic 12cR2 - Java SE Development Kit 8
• Always check certification martix
Typical Application Archt.
Examples :-
#EMC12c
 Installer sets up WebLogic for you
 Some options to customise to be consistent with your environment
Quick Demo
Live
Managing Weblogic
 Admin console is usually starting point
 Processes to check
 java for admin server & managed server
 Admin & Managed server logs are under:
 DOMAIN_HOME/servers/<name>/logs
Monitoring Tools
 Pure WebLogic / Admin Console
 Weblogic Enterprise manager
 Enterprise manager 12c.
Quick Demo
Live
Processes
Log files
Monitoring Dashboard
WebLogic Scripting Tool / wlst
 interface that system administrators and operators use to monitor and manage
WebLogic Server instances and domains.
 WLST scripting environment is based on the Java scripting interpreter, Jython.
 use common features of interpreted languages, including local variables,
conditional variables, and flow control statements
 WebLogic Server developers and administrators can extend the WebLogic scripting
language to suit their environmental needs
Benefits of Wlst
 Retrieve domain configuration and runtime information.
 Edit the domain configuration and persist the changes in the domain's
configuration files.
 Automate domain configuration tasks and application deployment.
 Control and manage the server life cycle.
 Access the Node Manager and start, stop, and suspend server instances
remotely or locally, without requiring the presence of a running
Administration Server.
 Can be used Online and offline.
Summary
 WebLogic is a java application server.
 All WLS processes run on a JVM.
 Middleware home is static; domain home contains config and logs.
 WLS Console is usually first point of contact (though don’t forget about
WLST for automation).
 OEM 12c runs on WebLogic but the installer now does the WLS set up
work for you
 Twitter : @OsamaOracle
 My Blog : Osamamustafa.blogspot.com
 Linkedin :- https://jo.linkedin.com/in/osamamustafa
Or
Google Me : Osama Mustafa Oracle

Weblogic 101 for dba

  • 1.
    Weblogic 101 forDBA Osama Mustafa
  • 2.
    Agenda  Basic Concepts– Architecture.  Installing WLS & Configuring a Domain.  WebLogic & Java EE Compatibility.  Managing WebLogic.
  • 3.
    Who Am I?  Founder/CEO for Gurus Solutions company.  Leader & Director for JAOUG.  Oracle ACE Director.  Certified OCP,OCE,OCS 10g,11g  Certified Ethical hacker / LPT  Sun / Linux Certified  Author Of Oracle Penetration testing book, Now Working on 2nd one.  Presenter & Contributor in Oracle Community .  Published Articles in different Magazine.  Blogger.
  • 4.
    Basic Concepts –Architecture.
  • 5.
    Weblogic concept • Domains •Server / Admin Server • Managed Server. • Node Manager • Cluster • Machine
  • 7.
    Domain  Domain ◦ Groupingof config/resources for an environment ◦ Has one set of administrators/security privileges ◦ Supports one major release of WebLogic at a time ◦ Is run in either ‘Production’ or ‘Development’ mode Consists of o Server o Cluster
  • 8.
    Server • Server iswhere we : • Deploy Enterprise Applications or Web Applications. • Create JDBC Resources. • Create JMS Resources. • Two Weblogic Server type: • Admin Server • Managed Server
  • 9.
    Admin Server • OnlyONE per domain. • Controls start and stop of other servers in the Domain. • Manages the creation of JDBC, JMS and other resources. • Manages the deployment to servers in the domain. • In development we use Admin Server for Deployment and Testing. This is usually done via the Integrated WebLogic instance installed within JDeveloper.
  • 10.
    Managed Server • ManagedServer is an instance of WebLogic Server Managed by an Admin Server. • Managed Servers in a Domain are Independent of each other, in every aspect. • Applications Deployed in a Managed Server do not share any resources, including JDBC and JMS Connections and Connection Factories. • Configuration changes are send over to the Managed Server from the Admin Server.
  • 11.
  • 12.
    Node Manager • Processto Start/Stop Managed Server instance on a Physical Machine. • Connect to Admin Server and starts/stops WebLogic instance based • Independent of Domain • Default port 5556. • Check the port using netstat –anp | grep port#.
  • 15.
    Weblogic Installation • InstallJVM Depend on version. • 2. Install a Middleware Home and WebLogic • 3. Configure a Domain Note: I usually install the JVM and use the generic .jar installer (i.e. same for all platforms) rather than using installer bundled with a JVM
  • 16.
    Note about InstallJVM  Sun HotSpot or JRockit (being merged in Java7/8), or JVM for your platform (e.g. IBM or HP).  JRockit specific:  Don’t install demos & samples/source code  You probably don’t want JRockit as the public JRE
  • 17.
    Install Weblogic  Commandline :-  java -jar wls_version_generic.jar  Don’t forget WLS has PSUs (e.g. 10.3.6.0.3) and quarterly SPUs (fka CPUs)  See the screens 
  • 22.
    Configure a Domain You use the config wizard to create domains ◦ $WL_HOME/common/bin/config.sh (.cmd) ◦ there are several other methods too
  • 27.
    Weblogic Cluster • Scalability •Load Balance • Even distribution of jobs • Multiple copies of an object that can do a particular job must be available • High-Availability • Failover • When a object processing a job becomes unavailable, a copy of the object elsewhere takes over and finishes the job
  • 28.
  • 29.
     Stand Alone High Availability  Another feature in Cluster Called Scalability Node with OFM No System Active Passive Active Active Active Active Active Active
  • 30.
    Load Balancer Active FMW Active FMW Domain, Database -Oracle OHS - Clients Active OFM Passive Domain, Database VIP
  • 31.
    Active-Passive (Bad &Good) • Cost. • Easier configuration & administration. • Provide availability for Application. • No Additional H.W Cost ( Two Nodes ). • Failover Time. • Second node will not be used. • Does not scale
  • 32.
    Active-Active ( Bad& Good)  Not all the application load is hosted by a single server.  No Time For Failover.  Flexibility to scale up.  Load balancers improve manageability by routing application deployment and system configuration requests to the most available node. • Cost • complexity  mean more maintaining and administering
  • 33.
    WebLogic & JavaEE Compatibility • WebLogic 11g - JEE 5 Certified • WebLogic 12c - JEE 6 Certified • Java EE 6 • JSP 2.1, JSF 2.0 • EJB 3.1, JPA 2.0 • Context and Dependency Injection • Restful Web Services • Weblogic 12cR2 - Java SE Development Kit 8 • Always check certification martix
  • 34.
  • 35.
    Examples :- #EMC12c  Installersets up WebLogic for you  Some options to customise to be consistent with your environment
  • 39.
  • 40.
    Managing Weblogic  Adminconsole is usually starting point  Processes to check  java for admin server & managed server  Admin & Managed server logs are under:  DOMAIN_HOME/servers/<name>/logs
  • 41.
    Monitoring Tools  PureWebLogic / Admin Console  Weblogic Enterprise manager  Enterprise manager 12c.
  • 42.
  • 43.
    WebLogic Scripting Tool/ wlst  interface that system administrators and operators use to monitor and manage WebLogic Server instances and domains.  WLST scripting environment is based on the Java scripting interpreter, Jython.  use common features of interpreted languages, including local variables, conditional variables, and flow control statements  WebLogic Server developers and administrators can extend the WebLogic scripting language to suit their environmental needs
  • 44.
    Benefits of Wlst Retrieve domain configuration and runtime information.  Edit the domain configuration and persist the changes in the domain's configuration files.  Automate domain configuration tasks and application deployment.  Control and manage the server life cycle.  Access the Node Manager and start, stop, and suspend server instances remotely or locally, without requiring the presence of a running Administration Server.  Can be used Online and offline.
  • 45.
    Summary  WebLogic isa java application server.  All WLS processes run on a JVM.  Middleware home is static; domain home contains config and logs.  WLS Console is usually first point of contact (though don’t forget about WLST for automation).  OEM 12c runs on WebLogic but the installer now does the WLS set up work for you
  • 46.
     Twitter :@OsamaOracle  My Blog : Osamamustafa.blogspot.com  Linkedin :- https://jo.linkedin.com/in/osamamustafa Or Google Me : Osama Mustafa Oracle