Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An Oracle DBA's Guide to WebLogic Server

Riga Dev Day
January 22, 2015

An Oracle DBA's Guide to WebLogic Server

WebLogic Server is Oracle's flagship Java application server and a pivotal piece of the infrastructure supporting many of their applications, including Fusion Apps and Enterprise Manager Cloud Control. This session introduces the basic concepts behind WebLogic Server and discusses the installation, configuration and management of systems to support both ADF and Oracle Forms/Reports applications. The presentation is aimed at those who are new to WebLogic Server, especially DBAs who are increasingly being expected to know about middle-tier administration

Riga Dev Day

January 22, 2015
Tweet

More Decks by Riga Dev Day

Other Decks in Education

Transcript

  1. http://www.oracle-base.com An Oracle DBA’s Guide To WebLogic Server Tim Hall

    Oracle ACE Director Oracle ACE of the Year 2006 OakTable Network OCP DBA (7, 8, 8i, 9i, 10g, 11g) OCP Advanced PL/SQL Developer Oracle Database: SQL Certified Expert http://www.oracle-base.com Books Oracle PL/SQL Tuning Oracle Job Scheduling
  2. http://www.oracle-base.com Agenda  Intro to Web Application Infrastructure  Definitions

    of WebLogic Components  WebLogic Installation  WebLogic Configuration  Forms and Reports Services  ADF  Cloud Control
  3. http://www.oracle-base.com Domain  The top-level definition of an environment. 

    Contains all shared configuration and resources for all managed servers within the domain.  Has a single AdminServer.  Has zero-many Managed Servers  Managed Servers can be clustered across multiple machines (HA).  Can have one domain for everything, or split into functional areas.
  4. http://www.oracle-base.com Domain Company Domain HR Cluster CRM Cluster Fin Cluster

    HR Domain HR Cluster AdminServer AdminServer CRM Domain CRM Cluster AdminServer Finance Domain Fin Cluster AdminServer OR Forms Domain Forms Cluster AdminServer ADF Domain ADF Cluster AdminServer SOA Domain SOA Cluster AdminServer OR
  5. http://www.oracle-base.com AdminServer  Provides web-based administration interface for the domain.

     Provides script-based administration using WebLogic Scripting Tool (WLST).  Managed servers can run without it AdminServer, by using local configuration.  When a managed server starts, it attempts to get the latest config from the AdminServer.
  6. http://www.oracle-base.com Managed Server  The JVM that actually runs your

    app. (similar to OC4J)  Applications can be deployed to one or more managed servers.  Managed servers can be clustered to improve HA.
  7. http://www.oracle-base.com Node Manager  Optional Java process to help control

    managed servers. Script- based version available, but don’t use it.  Necessary when dealing with clusters spread across servers.  Can use a single NM per server. WebLogic 12c encourages domain-specific NM.
  8. http://www.oracle-base.com Domain Overview Physical/Virtual Server1 AdminServer Physical/Virtual Server2 Managed Server

    Managed Server Managed Server Cluster Managed Server Managed Server Managed Server Managed Server Domain Node Manager Node Manager
  9. http://www.oracle-base.com WebLogic Installation (Prerequisites)  The only major prerequisite for

    a WebLogic installation is a JDK.  Before installing WebLogic, you are going to need to install a Java JDK.  Pick the correct one for your needs:  WebLogic 11g (JDK6 or JDK7)  WebLogic 12c (JDK7 or JDK8)  When using JDK6, use JRockit for servers. HotSpot for desktops? http://www.oracle.com/technetwork/middleware/jrockit/downloads/index.html  When using JDK7 or JDK8, just use HotSpot. It’s unified. http://www.oracle.com/technetwork/java/javase/downloads/index.html  Use Oracle’s JDK, not OpenJDK.
  10. http://www.oracle-base.com WebLogic Installation  Paths:  $ORACLE_BASE/product/fwm11g  $ORACLE_BASE/config/domains 

    $ORACLE_BASE/config/applications  Starting the installation is easy. java –Xmx1024m –jar wls1036_generic.jar  Let’s look at some screens…
  11. http://www.oracle-base.com WebLogic Configuration (Create Domain)  I always use the

    Configuration Wizard. $WLS_HOME/common/bin/config.sh  Let’s look at some screen shots…
  12. http://www.oracle-base.com WebLogic Configuration (Start/Stop)  When the domain is created

    you are given several scripts:  $WLS_HOME/server/bin/startNodeManager.sh  $DOMAIN_HOME/bin/startWebLogic.sh  $DOMAIN_HOME/bin/stopWebLogic.sh  $DOMAIN_HOME/bin/startManagedWebLogic.sh <managedServer>  $DOMAIN_HOME/bin/stopManagedWebLogic.sh <managedServer>
  13. http://www.oracle-base.com WebLogic Configuration (AdminServer)  Once the AdminServer is started,

    you have access to the web- based administration interface.  http://machine:port/console  If the domain has been extended with FMW Runtime, you also have access to Enterprise Manager.  http://machine:port/em  Let’s look at the administration interface.
  14. http://www.oracle-base.com WebLogic Scripting Tool (WLST)  You can script configuration

    steps using WLST. For example, deployments. connect(userConfigFile=configfile, userKeyFile=keyfile, url=adminurl) edit() startEdit() deploy(app,path,targets=targetlist) save() activate() disconnect() exit()
  15. http://www.oracle-base.com Forms & Reports Services  Existing WebLogic installation is

    a prerequisite.  Installation is simple. Pick inventory and middleware locations, then click “Next” a lot.  Creates and configures a “ClassicDomain” with F&R installed and running.  Managed servers controlled in the usual way. http://machine:port/console
  16. http://www.oracle-base.com Forms & Reports Services  Most of the Forms

    and Reports configuration can be done through EM.
  17. http://www.oracle-base.com Forms & Reports Services  If you’ve done F&R

    config on OAS, the config files are all the same, but in different locations.  $DOMAIN_HOME/config/fmwconfig/servers/WLS_FORMS/applicati ons/formsapp_11.1.2/config/formsweb.cfg  $DOMAIN_HOME/config/fmwconfig/servers/WLS_FORMS/applicati ons/formsapp_11.1.2/config/default.env  $FR_INST/config/tnsnames.ora  $FR_INST/config/OHS/ohs1/mod_plsql/dads.conf  $FR_INST/config/FormsComponent/forms/admin/resource/US/fmr web.res 
  18. http://www.oracle-base.com ADF  Application Development Framework (ADF) is a separate

    install.  ADF releases are separate to WebLogic Releases, but there are some dependencies.  Installation is easy. $ unzip ofm_appdev_generic_11.1.1.7.0_disk1_1of1.zip $ cd Disk1 $ ./runInstaller Specify your middleware home and click “Next” a lot.  Once installed, there are extra options when you create or extend a domain.
  19. http://www.oracle-base.com ADF  Picking the “Oracle Enterprise Manager” option enables

    the EM URL.  http://machine:port/em  EM is good for performance monitoring.
  20. http://www.oracle-base.com Cloud Control  Grid Control and now Cloud Control

    are built on WebLogic.  Grid Control 11g required a separate WebLogic installation step.  Cloud Control installation has WebLogic bundled. Very hands- off in comparison.  Cloud Control is a (big) ADF application.  As a DBA, you should be using Cloud Control.
  21. http://www.oracle-base.com Summary  Like it or not, knowledge of WebLogic

    is now part of the DBA role.  You don’t have to know a great deal to be useful with basic WebLogic setups.  The whole Fusion Middleware stack is big and complicated.  Once you step beyond the basics, IMHO it is time for you to hire a full time Middle Tier Administrator.