Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

http://www.oracle-base.com Intro to Web Application Infrastructure

Slide 4

Slide 4 text

http://www.oracle-base.com Intro to Web Application Infrastructure

Slide 5

Slide 5 text

http://www.oracle-base.com Definitions of WebLogic Components  Domain  AdminServer  Managed Server  Node Manager

Slide 6

Slide 6 text

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.

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

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.

Slide 9

Slide 9 text

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.

Slide 10

Slide 10 text

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.

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

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.

Slide 13

Slide 13 text

http://www.oracle-base.com WebLogic Installation  Download the Generic JAR file from OTN or eDelivery.

Slide 14

Slide 14 text

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…

Slide 15

Slide 15 text

http://www.oracle-base.com

Slide 16

Slide 16 text

http://www.oracle-base.com

Slide 17

Slide 17 text

http://www.oracle-base.com

Slide 18

Slide 18 text

http://www.oracle-base.com

Slide 19

Slide 19 text

http://www.oracle-base.com

Slide 20

Slide 20 text

http://www.oracle-base.com

Slide 21

Slide 21 text

http://www.oracle-base.com

Slide 22

Slide 22 text

http://www.oracle-base.com

Slide 23

Slide 23 text

http://www.oracle-base.com

Slide 24

Slide 24 text

http://www.oracle-base.com

Slide 25

Slide 25 text

http://www.oracle-base.com WebLogic Installation  You now have WebLogic installed!

Slide 26

Slide 26 text

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…

Slide 27

Slide 27 text

http://www.oracle-base.com

Slide 28

Slide 28 text

http://www.oracle-base.com

Slide 29

Slide 29 text

http://www.oracle-base.com

Slide 30

Slide 30 text

http://www.oracle-base.com

Slide 31

Slide 31 text

http://www.oracle-base.com

Slide 32

Slide 32 text

http://www.oracle-base.com

Slide 33

Slide 33 text

http://www.oracle-base.com

Slide 34

Slide 34 text

http://www.oracle-base.com

Slide 35

Slide 35 text

http://www.oracle-base.com

Slide 36

Slide 36 text

http://www.oracle-base.com

Slide 37

Slide 37 text

http://www.oracle-base.com

Slide 38

Slide 38 text

http://www.oracle-base.com

Slide 39

Slide 39 text

http://www.oracle-base.com

Slide 40

Slide 40 text

http://www.oracle-base.com

Slide 41

Slide 41 text

http://www.oracle-base.com WebLogic Configuration (Create Domain)  You now have a Domain!

Slide 42

Slide 42 text

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  $DOMAIN_HOME/bin/stopManagedWebLogic.sh

Slide 43

Slide 43 text

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.

Slide 44

Slide 44 text

http://www.oracle-base.com

Slide 45

Slide 45 text

http://www.oracle-base.com

Slide 46

Slide 46 text

http://www.oracle-base.com

Slide 47

Slide 47 text

http://www.oracle-base.com

Slide 48

Slide 48 text

http://www.oracle-base.com

Slide 49

Slide 49 text

http://www.oracle-base.com

Slide 50

Slide 50 text

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

Slide 51

Slide 51 text

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

Slide 52

Slide 52 text

http://www.oracle-base.com

Slide 53

Slide 53 text

http://www.oracle-base.com Forms & Reports Services  Most of the Forms and Reports configuration can be done through EM.

Slide 54

Slide 54 text

http://www.oracle-base.com

Slide 55

Slide 55 text

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 

Slide 56

Slide 56 text

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.

Slide 57

Slide 57 text

http://www.oracle-base.com

Slide 58

Slide 58 text

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.

Slide 59

Slide 59 text

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.

Slide 60

Slide 60 text

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.

Slide 61

Slide 61 text

http://www.oracle-base.com The End…  Questions?  Demos: http://www.oracle-base.com/workshops