After completing this lesson, you should be able to: • Describe basic concepts of Oracle WebLogic Server • Explain key definitions and terminologies • Describe the prerequisites for inst
Trang 1Installation and Configuration
Trang 2After completing this lesson, you should be able to:
• Describe basic concepts of Oracle WebLogic Server
• Explain key definitions and terminologies
• Describe the prerequisites for installing Oracle Access Manager
• Install Oracle WebLogic Server (WLS)
• Configure seeded database schemas by using the Repository
Creation Utility
• Install and configure Oracle Access Manager
• Perform post-installation validation checks
• Perform an uninstallation
Trang 3Road Map
• Oracle WebLogic Server: Basic concepts
• Key definitions and installation prerequisites
• Oracle WebLogic Server installation
• Configuring seeded database schemas by
using the Repository Creation Utility
• Installing Oracle Identity Management
• Configuring Oracle Access Manager
• Performing post-installation validation checks
• Uninstallation
Trang 4Domain: Overview
• A domain is the basic administration unit for Oracle WebLogic
Server.
• It always includes one Oracle WebLogic Server instance
configured as an administration server.
• It may include optional Oracle WebLogic Server instances in a
domain, called managed servers.
• It may also include clusters of server instances that work
together.
Cluster1
Managed Server
Managed Server
AdministrationServer
Managed Server
Managed Server
WebLogic Domain
Cluster2
Managed Server
Managed Server
WebLogic Server System
Administration Tools
Trang 5Critical Domain
Notifications
Log Domain Messages
Managed Server 1
Local Logging
Local Logging
LOG
LOG
Trang 6Domain Restrictions
• Each domain requires its own administration server.
• A cluster cannot span multiple domains.
• The managed servers in a domain must all run the same
version of Oracle WebLogic Server.
• The administration server in a domain must run the same
or a higher version of the WebLogic Server software as the managed servers in the domain.
• Domains cannot share a configured resource or subsystem
between domains.
• Two or more system resources cannot have the same
name within a domain.
Trang 7• A “server” is an instance of weblogic.Server executing
in a Java Virtual Machine (JVM).
• A server:
– Runs on a designated Oracle WebLogic Server machine
– Has a dedicated amount of RAM
– Is multithreaded
• A machine can be associated with multiple servers.
• The two types of servers are:
– Administration server
– Managed server
Trang 8Administration Server
• Is the central point of control for a domain
• Stores the configuration information and logs for a domain
• Runs the WebLogic administration console
Trang 9Managed Server
• It is any server in a domain that is not the administration server.
• It contacts the administration server for configuration
information.
• It runs business applications in a production environment.
• It is independent of all other managed servers in the domain
(unless they are in a cluster).
• There may be many managed servers in a domain.
• Individual managed servers are typically added for capacity and
Trang 10Interaction Between the Administration Server
and Managed Servers
• 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 the domain
configuration file.
• When a managed server starts, it connects to the
administration server to synchronize the configuration.
• When the configuration is changed, the administration
server sends the changed configuration to the managed servers.
Trang 11What Is a Machine?
• The main purpose of a machine is to administratively
manage servers.
• Machines are required by the node manager.
• Machines are optionally used by clusters.
• A machine is a logical description, not a physical entity.
Trang 12«host1» «host2» «host3»
Relationship of Machines to Other Components
There are many ways to set up the topology.
Trang 13• A cluster is a logical group of WLS servers.
• Oracle WebLogic Server (WLS) clusters provide:
– High availability (reliability)
– Load balancing (scalability)
• A cluster is transparent to a client.
Trang 14Cluster Guidelines
• A cluster cannot span domains.
• All servers in a cluster must also be in the same domain.
• All servers in a cluster must be at the same version level.
• Clustered servers can be on the same or on different
machines with the same or different operating systems.
• There can be multiple clusters in a domain.
Trang 15WebLogic Scripting Tool (WLST)
• The WLS command-line tools are useful:
– For automating common administration activities – As an alternative to the administration console
– When graphical tools are not supported
• WLST provides a command-line interface for:
– Creating new WLS domains
– Retrieving and updating WLS domain configurations – Deploying applications
– Obtaining run-time server statistics
Trang 16WLST Modes
• Online mode:
– Available when connected to a running server
– Provides access to all WLS configuration and run-time
attributes – Can be used to create and activate change sessions, similar
to using the WLS console
• Offline mode:
– Available when domain is not running
– Provides access to only persisted domain configuration
(config.xml) – Can be used to create or update domains, similar to using the Configuration Wizard
Trang 17WLST Example
[oracle@edvmr1p0 /]$ java weblogic.WLST
Initializing WebLogic Scripting Tool (WLST)
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> connect('weblogic','password','t3://localhost:7001')
Connecting to t3://localhost:7001 with userid system
Successfully connected to Admin Server 'myAdmin' that belongs to domain 'mydomain'
Warning: An insecure protocol was used to connect to the server To
ensure on-the-wire security, the SSL port or Admin port should be used instead
Trang 18Oracle WebLogic Server ILT Courses
To understand these concepts in more details and perform Oracle WebLogic Server administration, attend:
• Oracle WebLogic Server 11g: Administration Essentials
• Oracle WebLogic Server 11g: Advanced Administration
Trang 19Road Map
• Oracle WebLogic Server: Basic concepts
• Key definitions and installation prerequisites
• Oracle WebLogic Server installation
• Configuring seeded database schemas by
using the Repository Creation Utility
• Installing Oracle Identity Management
• Configuring Oracle Access Manager
• Performing post-installation validation checks
• Uninstallation
Trang 20Oracle Fusion Middleware Home and Oracle
WebLogic Server Home
• Oracle Fusion Middleware home:
– Consists of the Oracle WebLogic Server home and,
optionally, one or more other Oracle product homes (also known as Oracle homes; such as Identity Management home)
– Resides on a local file system or on a remote shared disk that is accessible through NFS
– Is represented as MW_HOME
• Oracle WebLogic Server home:
– Contains installed files necessary to host Oracle WebLogic Server
– Is a peer of other Oracle home directories underneath the Middleware home directory
– Is represented as WL_HOME
Trang 21Oracle Home
• Oracle home:
– Is the top-level installation directory for Oracle products
– Resides on a local file system or on a remote shared disk that is
accessible through NFS
– Is where product binaries and read-only files reside
– Contains files that are not updated during the normal running of the application server components
— Files are updated only when you apply a patch or upgrade.
– Is represented as ORACLE_HOME
• Oracle instance:
– Contains all configuration files, repositories, log files, deployed
applications, and temporary files (updatable files)
Trang 22Installing and Configuring Oracle Identity
Management: Sequence of Steps
• Install and configure Oracle Database
• Install Oracle WebLogic Server (MW home and WLS
home)
• Install Oracle Identity Management (Oracle home)
• Run the Repository Creation Utility (RCU) against Oracle
Database to seed component schemas
• Create or extend the Oracle WebLogic domain to configure
Oracle Identity Management 11g R1(11.1.1.3.0)
Trang 23Wizards: Installation Versus Configuration
– Isolates static/read-only files from dynamic/configurable
Oracle WebLogic domain files
• Installation Wizard (IM_DVD/Disk1/setup.exe)
• Configuration Wizard
(MW_HOME/oracle_common/common/bin/config.cmd)
Trang 24System Requirements for Oracle Identity
Management 11g R1(11.1.1.3.0)
• Minimum physical memory: 2 GB
• Minimum available memory: 1 GB
• Operating systems:
– Solaris 9, Solaris 10
– HP-UX 11i (11.23), HP-UX 11i (11.31)
– Oracle Enterprise Linux 4, Oracle Enterprise Linux 5, Red Hat
Linux 4, Red Hat Linux 5, SUSE 10
– IBM AIX 5.3, IBM AIX 6.1
– Windows XP SP2 (Win32 platforms only), Windows 2003, Windows
2008, Windows Vista
• Temp space: At least 80 MB
• Swap space: At least 150 MB
• Check the latest certification and release notes before starting
the installation.
Trang 25Road Map
• Oracle WebLogic Server: Basic concepts
• Key definitions and installation prerequisites
• Oracle WebLogic Server installation
• Configuring seeded database schemas by
using the Repository Creation Utility
• Installing Oracle Identity Management
• Configuring Oracle Access Manager
• Performing post-installation validation checks
• Uninstallation
Trang 26Oracle WebLogic Server 11g R1 PS 2 (10.3.3)
• Set PATH, JAVA_HOME to point to JDK 6 update 5 or 6
(Sun JDK 6 or JRockit Mission Control for Java 6).
Trang 27System Requirements for Oracle WebLogic
Server
• Processor:
– At least one 1 GHz CPU is recommended.
– Intel and UNIX processors are supported.
• Hard-disk drive:
– A full installation requires approximately 2 GB of disk space – The Linux value for file descriptors must be 4096 or greater. – Samples are optional.
Trang 28GUI Mode Installation
Start the installer (Net or package):
java –jar wls1033_generic.jar
wls1033_linux32.bin or wls1033_win32.exe or
wls1033_generic.jar
Trang 29Choosing or Creating a Home Directory
Browse or enter a destination
Choose the Oracle Middleware home directory.
Trang 30Registering for Support
Optional, but recommended
Trang 31Choosing an Installation Type and Products
Trang 32Choosing the JDK and Product Directory
Bundled Java Development Kit (JDK)
Select the Oracle WebLogic Server home and Oracle Coherence
home.
Trang 33Windows-Specific Screens
Trang 34Installation and Summary
Trang 35Optional
Trang 36Console and Silent Mode Installations
Trang 37Post-Installation: Middleware Home
• D:\middleware_home: Middleware home
• registry.dat/registry.xml: Inventory of all Oracle
Middleware products
• utils: Additional or utility JAR files
• wlserver_10.3: Oracle WebLogic Server 10.3.3 home
• logs: Installation logs
• modules: Modules (.jar) installed
• coherence_3.5: Oracle Coherence 3.5 home
Trang 38Oracle WebLogic Server Directory Structure
• common: The files shared by the Oracle WebLogic Server
10.3.3 components, including the template JAR files used
by Configuration Wizard when creating domains
• samples: Sample code and resources (if Server
Examples is selected during installation)
• server: Server software components (executables,
database files, XML JAR files, alternative JDBC drivers, Oracle WebLogic Server JAR files, and plug-ins)
• uninstall: The code required to uninstall Oracle
WebLogic Server 10.3.3
Trang 39Setting Environment Variables
• Run setWLSEnv.sh under <WL_HOME>/server/bin to
set WL_HOME, JAVA_HOME, PATH, and CLASSPATH.
• setWLSEnv.sh makes a call to commEnv.sh under
<WL_HOME>/common/bin to set common environment variables, such as ORACLE_HOME, ANT_HOME, and
POINTBASE_HOME.
• Check the version of JDK:
– java -version
Trang 40Practice 3 Overview:
Installing Oracle WebLogic Server 10.3.3
This practice covers the following topics:
• Practice 3-2: Install Oracle WebLogic Server 10.3.3
Trang 41Road Map
• Oracle WebLogic Server: Basic concepts
• Key definitions and installation prerequisites
• Oracle WebLogic Server installation
• Configuring seeded database schemas by
using the Repository Creation Utility
• Installing Oracle Identity Management
• Configuring Oracle Access Manager
• Performing post-installation validation checks
• Uninstallation
Trang 42Installing Oracle Database
• Oracle Database versions certified and supported:
– Oracle Database 10.2.0.4+
– Oracle Database 11.1.0.7+
– Oracle Database 11.2.x
• Oracle Database prerequisites:
– Database character set AL32UTF8 (Unicode)
– Database initialization parameters: processes > 500, open_cursors > 500
Trang 43Creating Schemas by Using RCU
• The Repository Creation Utility (RCU) ships as a separate ZIP
file.
• Unzip and run RCU from <RCU_CD>/bin/rcu.bat.
• For OAM, it creates a <PREFIX>_OAM schema.
Trang 44Creating Schemas by Using RCU
5
6
7
Trang 45Creating Schemas by Using RCU
8
Trang 46Creating Schemas by Using RCU
14 12
13
Trang 47Practice 3 Overview:
Running the Repository Creation Utility
This practice covers the following topics:
• Practice 3-1: Run the Repository Creation Utility
Trang 48Road Map
• Oracle WebLogic Server: Basic concepts
• Key definitions and installation prerequisites
• Oracle WebLogic Server installation
• Configuring seeded database schemas by
using the Repository Creation Utility
• Installing Oracle Identity Management
• Configuring Oracle Access Manager
• Performing post-installation validation checks
• Uninstallation
Trang 49Installing Oracle Identity Management: Welcome and Prerequisite Checks
• Run <IDM_CD>/Disk1/setup.exe
1
2
Trang 50Installing Oracle Identity Management:
Install Location and Summary
4 3
Trang 51Installing Oracle Identity Management: Progress Bar and Install Complete
5
6
Trang 52Practice 3 Overview:
Installing Oracle Identity Management 11g
This practice covers the following topics:
• Practice 3-3: Install Oracle Identity Management 11g
Trang 53Road Map
• Oracle WebLogic Server: Basic concepts
• Key definitions and installation prerequisites
• Installing Oracle WebLogic Server
• Configuring seeded database schemas by
using the Repository Creation Utility
• Installing Oracle Identity Management
• Configuring Oracle Access Manager
• Performing post-installation validation checks
• Uninstallation
Trang 54Configuration Wizard: Creating Domain and
Domain Source
Run MW_HOME/oracle_common/common/bin/config.cmd
1
2
Trang 55Configuration Wizard: Domain and Administrator
Settings
3
4
Trang 56Configuration Wizard: Server Start Mode, JDK,
and Customization Options
5
6
Trang 57Configuring JDBC Data Source: OAM with
Database Policy Store
Trang 58Configuration Wizard: Administration and
Managed Servers
7
8
Trang 59Configuration Wizard: Clusters and Machines
9
10
Trang 60Configuration Wizard: Assigning Servers to
Machines and Target Deployments
11
12
Trang 61Configuration Wizard: Target Services and
RDBMS Security Store
13
Trang 62Configuration Wizard: Configuration Summary
and Creating Domain
15
16
Trang 63Configuring OHS For Oracle WebLogic Server
• mod_wl_ohs: This is the module in OHS 11g R1 which
allows requests to be proxied from OHS to WLS.
• OHS is automatically configured if you configure it to
communicate with the WLS domain.
Trang 64Practice 3 Overview: Creating a New Domain and
Configuring OAM Server
This practice covers the following topics:
• Practice 3-4: Create a new domain and configure OAM
server
Trang 65Configuration Wizard: Extending Domain and
Domain Source
• Run MW_HOME>/oracle_common/common/bin/config.cmd
Trang 66Configuration Wizard: Extending Domain and
Domain Source