Professional Documents
Culture Documents
WLS 12c IS - WLS 12c Fundamentals
WLS 12c IS - WLS 12c Fundamentals
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Oracle Training Materials – Usage
Agreement
Use of this Site (“Site”) or Materials constitutes agreement with the following terms and conditions:
1. Oracle Corporation (“Oracle”) is pleased to allow its business partner (“Partner”) to download and copy the information,
documents, and the online training courses (collectively, “Materials") found on this Site. The use of the Materials is
restricted to the non-commercial, internal training of the Partner’s employees only. The Materials may not be used for
training, promotion, or sales to customers or other partners or third parties.
2. All the Materials are trademarks of Oracle and are proprietary information of Oracle. Partner or other third party at no time
has any right to resell, redistribute or create derivative works from the Materials.
3. Oracle disclaims any warranties or representations as to the accuracy or completeness of any Materials. Materials are
provided "as is" without warranty of any kind, either express or implied, including without limitation warranties of
merchantability, fitness for a particular purpose, and non-infringement.
4. Under no circumstances shall Oracle or the Oracle Authorized Boot Camp Training Partner be liable for any loss,
damage, liability or expense incurred or suffered which is claimed to have resulted from use of this Site of Materials. As a
condition of use of the Materials, Partner agrees to indemnify Oracle from and against any and all actions, claims, losses,
damages, liabilities and expenses (including reasonable attorneys' fees) arising out of Partner’s use of the Materials.
5. Reference materials including but not limited to those identified in the Boot Camp manifest can not be redistributed in any
format without Oracle written consent.
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
<Insert Picture Here>
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Key Concepts
WebLogic Terminology
• Domain - group of instances and clusters under
unified control
• Guidelines
• There must be exactly one Administration Server in
domain
• An Administration Server controls a single domain. Admin Console
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Managed Server
• What is it?
• A running instance that hosts applications JNDI
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Administration Server to Managed Server
Interaction
• The Administration Server stores the master copy of the
domain configuration, including the configuration for all
managed servers in the domain
• Each Managed Server stores a local copy of its configuration.
• When a Managed Server starts, it connects to the
Administration Server to synchronize the configuration
• When configuration is changed, the Administration Server
sends changed configuration to Managed Servers
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Key Concepts
Single Administration Server for a Domain
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
WLS Distributions
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
NEED SLIDE FOR PACKAGES /
INSTALLERS
WebLogic Server SE, Server EE, Suite
Packaging and Licensing
WebLogic Server WebLogic Server
WebLogic Suite
Standard Edition Enterprise Edition
WebLogic Server = WebLogic Server Standard = WebLogic Server
+ Edition Enterprise Edition
Kodo Enterprise + +
+ Clustering Coherence EE
TopLink and ADF + +
+ Enterprise Manager JRockit Real Time
JDeveloper Diagnostics Pack +
+ Management Pack
Enterprise Pack for Eclipse for Coherence
+ +
Oracle HTTP Server iAS EE
+
WL Operations Control
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Installation
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Installation
WLS 11g Platform Support
http://www.oracle.com/technetwork/middleware/fusion-middleware/documentation/index.html
*Always check the up-to-date information on OTN
Operating Systems Web Server Plugins
• Linux: OL 4/5, RHEL 4/5, SLES 10/11 (x86, x86-64) 1.0 Plugins
• Solaris: 9/10 (SPARC, x86, x86-64) • iPlanet: 7.x (64-bit)
• Windows: 2003/XP/Vista/2008 (x86, x86-64) • Apache: 2.0/2.2 (32-bit and 64-bit)
• HP-UX: 11i v2/v3 (Itanium, PA-RISC)
• Microsoft IIS: 6/7 (32-bit and 64-bit)
• AIX: 5.3/6.1/7.1 (POWER)
• Sun Java System Web Server (iPlanet):
6.1/7.0 (32-bit only)
Java Virtual Machines (JVMs) • Oracle HTTP Server (OHS) – 11g (64-bit)
• JDK 1.6 (plus 1.5 for clients) 1.1 Plugins
• JRockit: Linux & Windows (32-bit, 64-bit), Solaris • Apache: 2.2 (64-bit)
SPARC (64-bit)
• Microsoft IIS: 6/7 (64-bit)
• Sun Hotspot: Linux, Windows & Solaris (32-bit and
64-bit) • Oracle HTTP Server (OHS) – 11g (64-bit)
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Installation
WLS 12.1.1 - Current Platform Support
• Operating Systems
• Linux: OL 5/6, RHEL 5, SLES 10/11 (x86-64)
Web Server Plugins
• Solaris: 10/11 (SPARC, x86-64) 1.0 Plugins
• Windows: 7 / Server 2008 (x86-64) • iPlanet: 7.x (64-bit)
• HP-UX: 11i v2/v3 (Itanium, PA-RISC) • Apache: 2.0/2.2 (32-bit and 64-bit)
• AIX: 6.1/7.1 (POWER) • Microsoft IIS: 6/7 (32-bit and 64-bit)
• Max OS X for development only • Oracle HTTP Server (OHS) – 11g (64-bit)
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Installation
Install Specifics
• Middleware Home
• To store one or more installed products (e.g. WLS, SOA Suite)
• Examples: c:\Oracle\Middleware or /u01/Oracle/Middleware
• Recommendation: Use separate MW homes for separate products
• Recommendation: Use separate MW homes for different versions
• WebLogic Home
• To store installed WebLogic product, containing all the WebLogic library JARs, executables,
tools, licence info, examples and scripts
• Usually a directory underneath MW home, eg.: c:\Oracle\middleware\wlserver_12.1
/opt/Oracle/middleware/wlserver_12.1
• Neither Middleware nor WebLogic Home should be used to store
configuration of Domains
• A machine can be used to host more than one WebLogic server or domain
• Domains are physically separate from the product installation on a file-system
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Installation
Installer
• Different installers
• Package native installer, Generic (jar, Unix) installer, Zip (~160Mb for development only, supports Mac)
One installer - different install modes
• Graphical mode, Character mode, Silent (scripted) mode
Custom/Selective Installation
• Can choose installation of core
application server only
• Optionally add Admin Console,
Drivers, Examples, UDDI server, and
others
• Web Server plug-ins are now
versioned and distributed separately
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Domains
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Key Concepts
Installation distinct from Domain configuration
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Configuration Wizard
• Wizard that walks you through domain creation off-line
• Cannot be used against a running domain
• Requires a template
• Templates can either be a domain template, an extension template, or a
managed server template
• WLS ships with default template, templates for samples domains, and a
extension template for enabling support for advanced web services
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Domain Configuration
Distribution
• If a WebLogic domain spans multiple physical machines, the
configuration needs to be distributed so that managed
servers can be started on these machines
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Domain Configuration
WebLogic Domain Structure
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Domain Configuration
Domain Configuration Wizard
• Graphical or Character mode
• Silent mode no longer supported – use
WLST instead (far more flexible)
• Configure, servers, clusters, addresses,
ports, machines, data-sources, JMS
modules and many others
• Default templates provided (eg. Basic
WLS Domain Template) or choose own
custom template
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Domain Directory
Domain name
Start and stop
scripts
Root configuration for
the domain
Pending configuration
changes
Subdirectory for each Managed
Server in the domain
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Server Start
Many Options
• Supplied Command Line Scripts
• Admin Server: <domain>/bin/startWebLogic.sh
• Managed Server: <domain>/bin/startManagedWebLogic.sh MngdSrvr t3://admin-
host:adminport
• Server/JVM start-up parameters sourced from 'setDomainEnv.sh
• Java Node Manager
• Use Admin Console | Control | Server Start tools (except for Admin Server)
• Use WLST based Node Manager nmStart() function
• Server/JVM start-up parameters obtained from Domain Config (config.xml)
• Operating System Service
• A 'Windows Service' configured using the WebLogic 'beasvc' tool
• Custom start/start/restart init.d script on Unix/Linux
• Custom Scripts
• To run: 'java weblogic.Server .....' with appropriate classpath and start params
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Clustering & Node Manager
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Key Concepts Cluster 1
Clusters
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Key Concepts
Clusters
• Can have zero or more clusters in a domain
• Clusters can have one or more servers
• Some servers in a domain may not belong to any cluster
Example domain: 2 clusters - 1 for hosting “UI” part of a distributed app,1 for “Business Logic”
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Key Concepts
Node Manager
• Two choices
• Java Node Manager (more established)
• Script (SSH) Node Manager (introduced in WLS 9) • Start/Stop servers remotely
• Small 'agent' process running on
host machine (Java NM)
• Looks after one or more WLS
instances on the physical
machine
• Server health monitoring
• Automatic server re-start upon
failure
• Required for server and service
migration (see later)
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Node Manager
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Node Manager & WebLogic
Start/Stop WebLogic Managed Servers Remotely
•Two choices
• Start/Stop servers remotely via:
•Java Node Manager (more established)
• Admin Console
•Script (SSH) Node Manager • JMX
• Command Shell
• ANT / WLST
• Small 'agent' process running on
host machine (Java NM)
• Supports multiple domains
• Looks after one or more WLS
instances on the physical
machine
• Server health monitoring
• Automatic server re-start upon
failure
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Node Manager & Coherence (New in 11gR1!)
Start/Stop Coherence Servers Remotely
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Work Managers
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
WebLogic Server Work Managers
Core Principles
• Work Prioritization
• Applications define resource requirements via meta-data they can relate to, rather than low-level
technical constructs (thread counts)
• User-specific SLAs can be defined
• Overload Protection
• Standardized mechanism to respond to overload conditions
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
WLS Work Management
Key Components
• New Thread Pool Implementation
• Single internally managed thread pool and priority-based request queue service all application requests
• Request “Priority” dynamic and internally computed to meet application-defined goals
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
WLS Work Management
Key Components
• Work Managers
• Request Class
• Capacity
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Fair Share
Work Manager Examples
• Desired share of server resources
• Fair shares are relative to other fair shares defined in the system
<work-manager>
<name>highfairshare_workmanager</name>
<fair-share-request-class>
<name>high_fairshare</name>
<fair-share>80</fair-share>
</fair-share-request-class>
</work-manager>
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Response Time Goal
Work Manager Examples
• Desired response-time goal in milliseconds
• Two applications each set at 80 would result in each getting ~50% of the CPU
<work-manager>
<name>highfairshare_workmanager</name>
<fair-share-request-class>
<name>high_fairshare</name>
<fair-share>80</fair-share>
</fair-share-request-class>
</work-manager>
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Context Based
Work Manager Examples
• Currently look at security name and group of user submitting the request
<work-manager> <name>context_workmanager</name>
<context-request-class>
<name>test_context</name>
<context-case>
<user-name>platinum_user</user-name>
<request-class-name>high_fairshare</request-class-name>
</context-case>
<context-case>
<user-name>evaluation_user</user-name>
<request-class-name>low_fairshare</request-class-name>
</context-case>
</context-request-class>
</work-manager>
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
How to use Work Managers
• Coarse Grained
• Target at the entire server (“default” Work Manager)
• Target entire applications or modules - e.g. weblogic.xml
<wl-dispatch-policy>myAppWorkManager</wl-dispatch-policy>
• Fine Grained
• Target individual JSPs, Servlets, EJBs, MDBs
<servlet> ...
<init-param>
<param-name>wl-dispatch-policy</param-name>
<param-value>myCustomWorkManager</param-value> ...
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Basic JDBC
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
JDBC Overview
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
JDBC Data Sources
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Data Source Scope
The system modules that are created with the console or WLST are:
– Stored in the domain’s config/jdbc directory
– Available to all applications in the domain
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Multi-Tier Architecture
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
WebLogic JDBC Drivers
Oracle and third-party drivers are included in the WLS installation for many
popular database products:
– Oracle 9i, 10g, 11g and 12c
– Sybase Adaptive Server
– Microsoft SQL Server
– IBM DB2
– Informix
– MySQL
– PointBase
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
What Is a Connection Pool?
Connection pools:
– Are created at Oracle WebLogic Server startup
– Can be administered using the Administration Console
– Can be dynamically resized to accommodate increasing or decreasing load
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
JDBC Connection Pooling
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Benefits of Connection Pools
– The DBMS can be changed without the application developer having to modify
the underlying code.
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Modular Configuration and Deployment of
JDBC Resources
The JDBC configurations in WebLogic Server are stored in XML documents:
– All JDBC configurations must conform to the new weblogic-jdbc.xsd schema.
– IDEs and other tools can validate the JDBC modules based on the schema.
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
How Data Source Connection Pools Are Used
A client retrieves a data source through a JNDI lookup and uses it to obtain a
database connection.
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Creating a Data Source Using the Administration Console
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Data Source Connection Properties
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Test Configuration
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Connection Pool Configuration
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Connection Pool Advanced
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Targeting a Data Source
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
JDBC URLs
Example 2:
– This URL can be used to access a PointBase database:
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Monitoring and Testing a Data Source
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
Connection Pooling
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
The preceding is intended to outline our general product
direction. It is intended for information purposes only, and
may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality,
and should not be relied upon in making purchasing
decisions.
The development, release, and timing of any features or
functionality described for Oracle’s products remains at the
sole discretion of Oracle.
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential
For Oracle employees and authorized partners only. Do not distribute to third parties.
© 2012 Oracle Corporation – Proprietary and Confidential