WPS70 DeploymentEnvironment Cluster Oracle11g
WPS70 DeploymentEnvironment Cluster Oracle11g
0
for a Clustered Environment
April 2010
© IBM Corporation, 2010
The information contained in this document has not been submitted to any formal IBM
test and is distributed AS IS.
Michael Mann
IT Senior Specialist
WSS Business Process Solutions Test
IBM Software Group, Application and Integration Middleware Software,
Eduard Welte
Advisory IT Architect / Managing Consultant
IBM Software Group, Application and Integration Middleware Software
Wolfgang Steven
Advisory IT Architect / Managing Consultant
IBM Global Business Services, Enterprise Application Services
Marco Lezajic
IT Specialist
WebSphere BPM Suite Integration Quality Assurance Test
IBM Software Group, Application and Integration Middleware Software
Ekkehard Voesch
Business Process Management Test Architect
WebSphere BPM Suite Integration Quality Assurance Test
IBM Software Group, Application and Integration Middleware Software
Thanks for the contributions of the Business Process Choreographer test team and the
WSS BPM competence center.
i
Preface
Scope
This document contains an overview of the tasks required for setting up a production
environment of a Business Process Management solution with a main focus on
WebSphere Process Server and in particular the Business Process Choreographer.
Additional Business Process Management components or products will be taken into
consideration, especially if interactions with the Process Choreographer are of interest.
This document introduces the topology of the chosen production environment and
describes the different tasks with a series of click-by-click instructions including the
installation, configuration and a verification for each main step.
WebSphere Business Space and IBM HTTP Server might be added as optional
components to this production environment. They are part of the same cell and
represented in different, additional clusters or servers. IBM HTTP Server is required
for request distribution into cluster members. The related chapters can be skipped
if these components or products are not needed.
The general concepts for building cells and clusters apply to the different releases,
but several details might have been added or changed between the different
releases. To make reading and understanding easier this document is related to
the following explicit releases:
The used operating system for this documented setup is Red Hat Enterprise Linux.
In general other operating systems especially UNIX based systems will operate in
a similar way. From a configuration point of view there will be only minor
differences, for example the default path names might be different.
ii
Additional document sources being of interest
IBM Redbooks
http://www.redbooks.ibm.com/
iii
Summary of changes
This document is a logical successor of the document
WebSphere Process Server Version 6.2.0 Configuring The Process Choreographer
And Other BPM Components In A Clustered Environment
which can be found at
http://www-01.ibm.com/support/docview.wss?rs=2307&uid=swg27015273
iv
Trademarks
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of
International Business Machines Corporation in the United States, other countries, or
both. These and other IBM trademarked terms are marked on their first occurrence in
this information with the appropriate symbol (® or ™), indicating US registered or
common law trademarks owned by IBM at the time this information was published.
Such trademarks may also be registered or common law trademarks in other
countries.
A current list of IBM trademarks is available on the Web at
http://www.ibm.com/legal/copytrade.shtml
AIX® IMS™
AlphaBlox® Lotus®
alphaWorks® Redbooks®
DataPower® Redbooks (logo) ®
DB2 Universal Database™ Tivoli®
DB2® WebSphere®
developerWorks® Workplace™
HACMP™ Workplace Messaging®
IBM® z/OS®
v
Trademarks
Snapshot, and the NetApp logo are trademarks or registered trademarks of NetApp,
Inc. in the U.S. and other countries.
SUSE, the Novell logo, and the N logo are registered trademarks of Novell, Inc. in the
United States and other countries.
Oracle, JD Edwards, PeopleSoft, Siebel, and TopLink are registered trademarks of
Oracle Corporation and/or its affiliates.
SAP NetWeaver, SAP, and SAP logos are trademarks or registered trademarks of SAP
AG in Germany and in several other countries.
EJB, Enterprise JavaBeans, J2EE, Java, JavaBeans, JavaServer, JDBC, JMX, JSP, JVM,
and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United
States, other countries, or both.
Microsoft, Windows, and the Windows logo are trademarks of Microsoft Corporation in
the United States, other countries, or both.
Intel, Intel logo, Intel Inside logo, and Intel Centrino logo are trademarks or
registered trademarks of Intel Corporation or its subsidiaries in the United States,
other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Linux is a trademark of Linus Torvalds in the United States, other countries, or both.
Other company, product, or service names may be trademarks or service marks of
others.
vi
How to read this document
The intention of this document is to provide information which might be used to
facilitate the setup of a production environment. To get a better understanding further
documentation might be referenced.
• Graphical interactions
Typical interactions with the system are performed on screen (or panels) and a
description how to interact is much easier if pictures are used as outlined here
vii
• Interaction via the console
Mostly two types are of interest, one for the input requested on a console
window sometimes mentioned as command line input and a second for the
output provided on the console.
Console input (sometimes mentioned as command line input)
Console output
This might be several rows
In case of large lists important aspects are highlighted in this way
• Listings
Whenever a list of parameters is necessary to be discussed they will look like
this. Also file content will be formatted in this way. In case of large lists
highlighting might be added to put the focus on the major aspects.
Parameter1 = value1
Parameter2 = value2
Parameter3 = string1
etc
• Hyperlinks
For making it easier to find references hyperlinks are used and formatted like
the following link which leads to the IBM Redbooks homepage
http://www.redbooks.ibm.com/
• Notices
To emphasize information two types of formatted notices are used
viii
Table of Contents
Chapter 1 Introduction....................................................................................2
1.1 Planing the cell and cluster setup primer.....................................................3
1.1.1 Assign WebSphere components to the systems......................................3
1.1.2 Install the operating system and the prerequisites..................................4
1.1.3 Select the type of user directory for the cell...........................................4
1.1.4 Get the software packages..................................................................4
1.1.5 Summarize the values used during installation .....................................5
1.2 Planning the cell and cluster setup .............................................................6
1.2.1 Major components of a cell..................................................................6
1.2.2 WebSphere Process Server .................................................................8
1.2.3 WebSphere Business Monitor...............................................................8
1.2.4 Assign the cell and cluster components to the systems ...........................9
Chapter 2 Prerequisites and operating system installation...................................13
2.1 Install operating system..........................................................................13
2.2 Time server setup..................................................................................14
2.3 Select the type of user directory...............................................................15
2.4 Software packages.................................................................................15
2.5 Installation properties ............................................................................17
2.5.1 User IDs.........................................................................................17
2.5.2 Directory locations............................................................................17
2.5.3 Hostnames of the involved systems....................................................18
2.5.4 Naming of cluster components...........................................................18
Chapter 3 WebSphere Process Server cluster installation and configuration...........19
3.1 WebSphere Process Server cluster installation and configuration primer.........19
3.2 Installing WebSphere Process Server binaries ............................................19
3.3 Installing the Update Installer..................................................................30
3.4 Installing mandatory fixes........................................................................37
3.4.1 Install WAS mandatory iFixes.............................................................37
3.4.2 Install WPS mandatory iFixes.............................................................44
3.4.3 Install WPS Fix Pack 1.......................................................................54
3.5 Verify WebSphere Process Server binary installation....................................67
Chapter 4 Oracle binary installation.................................................................70
4.1 Oracle installation prerequisites................................................................70
4.1.1 Oracle operating system requirements................................................70
4.1.2 The Linux operating system user for Oracle.........................................78
4.1.3 Creating the directories for Oracle......................................................81
4.2 Installing the Oracle binaries....................................................................81
4.2.1 Creating the oraInst.loc File...............................................................82
4.2.2 Editing the response file template.......................................................83
4.2.3 Running Oracle Universal Installer using a response file.........................84
4.2.4 Installing the Oracle 11.1.0.7.0 patch set............................................85
Chapter 5 Oracle database configuration..........................................................87
5.1 Creating the Oracle listener using a Response File.......................................87
5.1.1 Verifying the created listener.............................................................88
5.2 Creating the WebSphere Process Server database ......................................89
5.3 Database listener configuration...............................................................117
5.4 Configuring database initialization parameters..........................................118
ix
5.5 Oracle JDBC driver................................................................................120
Chapter 6 Creating Oracle users and tables.....................................................121
6.1 WebSphere Process Server tablespaces...................................................121
6.1.1 Predefined WPS tablespaces.............................................................121
6.1.2 Recommended user default tablespaces.............................................122
6.1.3 Create recommended tablespaces.....................................................123
6.2 WebSphere Process Server users and privileges........................................125
6.2.1 Needed WebSphere Process Server database users.............................125
6.2.2 WebSphere Process Server database user roles..................................126
6.2.3 WebSphere Process Server XA recovery user privileges.......................127
6.2.4 Create WPS users and assign needed privileges and roles....................130
6.2.5 WPS XA recovery user(s).................................................................134
6.3 WebSphere Process Server tables...........................................................137
6.3.1 Create CommonDB tables................................................................137
6.3.2 Create BPCDB tables.......................................................................139
6.3.3 Create BPC Explorer Reporting Function tables...................................142
6.3.4 Create Business Space tables...........................................................145
Chapter 7 Create deployment manager profile ................................................151
7.1 Create the profile..................................................................................151
7.2 Verification..........................................................................................152
7.3 Start and configure the deployment manager...........................................153
7.3.1 Create the authentication alias for XA recovery...................................154
7.3.2 Change the data source for Oracle 11g..............................................155
Chapter 8 Create custom profiles...................................................................158
8.1 Custom profile creation..........................................................................158
8.2 Verify the custom profile creation............................................................161
Chapter 9 Enable security ............................................................................164
9.1 Configure Federated Repository..............................................................164
9.2 Enable identity assertion........................................................................170
9.2.1 Enable inbound authentication..........................................................170
9.2.2 Enable outbound authentication........................................................171
9.3 Verification..........................................................................................172
Chapter 10 Create and configure the deployment environment..........................175
10.1 Create the deployment environment......................................................175
10.2 Configure deployment environment.......................................................187
10.2.1 Configure/verify authentication aliases.............................................187
10.2.2 Configure/verify bus security..........................................................188
10.2.3 Configure/verify JDBC providers......................................................192
10.2.4 Configure/verify data sources.........................................................194
10.2.5 Configure/verify SCA configuration..................................................198
10.2.6 Configure/verify CEI configuration...................................................200
10.2.7 Configure BPC Event Collector........................................................204
10.3 Configure/verify host names and corresponding port numbers..................208
10.4 Share transaction and recovery logs .....................................................211
Chapter 11 Create CEIDB tables....................................................................214
Chapter 12 Verify the deployment environment...............................................216
12.1 Verify messaging cluster .....................................................................216
12.1.1 Verify messaging cluster startup.....................................................216
12.1.2 Verify messaging cluster messaging table creation............................219
x
12.2 Verify the support cluster ....................................................................221
12.3 Verify the application target (BPEL) cluster ............................................224
Chapter 13 Install and configure IBM HTTP Server v7.0....................................227
13.0.1 Install the IHS binaries..................................................................229
13.0.2 Configure SSL .............................................................................239
13.0.3 Add IHS to the WPS cell.................................................................244
13.0.4 Configure BFM and HTM REST endpoints..........................................257
Chapter 14 Verify application functionality......................................................260
14.0.1 Verify BPC Explorer and BPC Reporting functionality..........................260
14.0.2 Deploy the Claims Handling sample application.................................263
14.0.3 Run the Claims Handling sample application.....................................268
14.0.4 Verify the Business Space..............................................................273
Chapter 15 Appendix...................................................................................279
15.1 WPS How To......................................................................................279
15.1.1 Save changes and synchronize nodes..............................................279
15.1.2 Start/stop the deployment manager and the node agents..................281
15.2 IHS How To........................................................................................285
15.2.1 Starting and stopping the IBM HTTP server......................................285
15.3 Oracle How To....................................................................................286
15.3.1 Starting and stopping the database listener......................................286
15.3.2 Starting and stopping the database.................................................288
15.3.3 Starting and stopping the Oracle Enterprise Manager Console.............289
15.3.4 Resetting a user password in the Oracle database.............................290
15.3.5 Compute database statistics...........................................................291
15.3.6 Work with Redo Log Groups...........................................................292
xi
Part I Introduction
1
Chapter 1 Introduction
This part of the document provides planning information. It is highly recommended to
plan the setup before starting with the installation and configuration. Careful planning
can avoid both the need to reset the involved systems or a complete restart of the
overall setup process.
The first part of this chapter (Planning the cell and cluster setup primer) provides a
brief overview of the prerequisite actions that need to be completed before starting
with the actual setup.
In the second part of this chapter (Planning the cell and cluster setup) a brief descrip-
tion of the major components for building a cell is provided followed by an overview of
how the components are assigned to the systems.
The term system is used in multiple different facets depending on the author, in-
dustry, functional area etc. In the IT world itself various interpretations also exist. A
common understanding does not really exist, but often the term system is a synonym
for a machine or a set of machines, e.g. a server or personal computer. Furthermore
the term system is used to specify a combination of machine and inclusive software
used to build a solution. From a usage perspective such solutions (systems including
software) are often referenced as service. An application server, especially the Web-
Sphere Process Server, might be understood as a system providing services.
Depending on the requirements related to performance and scalability the service can
be implemented on a single machine or it might be necessary to use a set of machines
where the term machine in this context is a server. On large machines, e.g. IBM
Power Systems, the overall power might be distributed in partitions where each parti-
tion will be referenced as an independent system. Another option might be to config-
ure the software multiple times on a single machine where it is usual to reference
each configuration as a system.
When multiple configurations of the WebSphere Process Server reside on the same
machine they are sometimes referenced as instance.
In this document the term system is used to define a machine where the WebSphere
Process Server is installed and configured.
2
1.1 Planing the cell and cluster setup primer
The following list of tasks/subtasks should be completed in order to enable a
straightforward cell setup including clusters (A checklist can be found in Appendix ):
For further more detailed information related to concepts, architecture and back-
ground aspects please check the following documentation.
3
1.1.2 Install the operating system and the prerequisites
Depending on the customers business preferences one of the supported operating
systems may be used. In this document the systems used will be Linux systems. For a
detailed list of hardware and software prerequisites refer to the WebSphere Process
Server V7.0 Information Center.
A list of the minimum software and hardware required for WebSphere Process Server
Version 7.0 can be found here:
http://www.ibm.com/software/integration/wps/sysreqs/
Another important requirement is to ensure all involved systems are using a synchron-
ized time. Typically this will be achieved by a timeserver providing system time for all
systems.
Note: If you intend to use the Business Space component it is mandatory to use
the federated repository.
4
1.1.5 Summarize the values used during installation
The following values are needed during the installation and configuration steps. You
need to plan them carefully before starting.
For more information related to “Naming considerations for profiles, nodes, hosts,
and cells” refer to the Information Center:
http://publib.boulder.ibm.com/infocenter/dmndhelp/v7r0mx/index.jsp?
topic=/com.ibm.websphere.wps.doc/doc/cins_naming.html
5
1.2 Planning the cell and cluster setup
With a cell setup planning is highly recommended since a cell setup is much more
complex compared to a single server setup. A single server contains all required
elements in one unit so that no communication between the different components
across systems is necessary. However with the scaling limitations of a single server,
and with more complex requirements a single server may not longer be sufficient. In
this case a cell with multiple server instances should be used.
Just adding more single servers will not fit all aspects. Especially synchronous
administration as well as controlled communication are not covered. This can be
achieved by using the WebSphere Application Server Network Deployment solution
which provides several additional capabilities. To understand this concept several basic
built-in components will be outlined.
1.2.1.1 Cell
A WebSphere cell is a logical unit containing all elements being required for operation.
In other words it is a management domain for a distributed environment of elements
that are centrally managed and have access to shared resources in the cell. The key
elements are briefly described in the following paragraphs. In physical terms a
WebSphere cell typically involves multiple systems.
1.2.1.2 Node
A WebSphere node is an element within a cell which typically contains one or more
application servers. A managed node consists of a node agent managing the the node
and all application servers hosted on that node. An unmanaged node does not have a
node agent and will be used to administer the IBM HTTP server (also referred as
WebServer). A WebSphere node resides on a single host, but on a host it is possible
to configure multiple nodes having then multiple node agents.
6
1.2.1.5 Application Server
A WebSphere application server hosts zero or more applications. An application server
instance can be configured as follows:
• Stand-alone application server
A stand-alone application server does not belong to a cell and runs its own
administrative console.
• Managed application server
A managed application server is part of a cell and is managed by a deployment
manager residing on a separate node. A managed application server is not part
of a cluster.
• Application server as member of a cluster
An application server that is a cluster member resides on a node belonging to a
cell, and is managed by a deployment manager residing on a separate node.
The application server is part of a cluster.
1.2.1.6 Cluster
A WebSphere cluster is a logical collection of application servers configured to
perform the same task as a team. The members of a cluster can be distributed across
one or more nodes in any configuration. Clusters are typically used for scalability,
workload and high availability aspects.
1.2.1.8 Database
In a complex environment typically various data exist which need to be stored
persistently. Within WebSphere accessing a database is transparent. It will be
accessed via a JDBC implementation related to the used database system. All required
database variables like name, location, user, password, etc are collected in the data
source and are administered via the deployment manager. Within WebSphere Process
Server several components persist data. Depending on the overall database
convention used this results in several independent databases or in several database
schema managed all in one database.
7
1.2.1.9 Profile
Each profile defines a separate run-time environment, with separate command files,
configuration files, log files, and so on. Profiles enable you to have more than one
runtime environment on a system, without having to install multiple copies of the
system files. In WebSphere there are three kinds of profiles:
The WebSphere Process Server can consist of a single server running on a single
machine, several independent servers running on multiple machines administered in a
cell (referred as managed servers), or it may consist of several servers combined to a
cluster running on several machines. Within a cell multiple clusters and multiple
managed servers are allowed and are referred as deployment targets.
Like WebSphere Process Server WebSphere Business Monitor can consist of a single
server running on a single machine, several independent servers running on multiple
machines administered in a cell (referred as managed servers), or it may consist of
several servers combined to a cluster running on several machines. Within a cell
multiple clusters and multiple managed servers are allowed and are referred as
8
deployment targets.
The selected topology for the environment is a WebSphere Process Server cell. The
cell contains several clusters.
WPS clusters:
• Support Cluster
Contains the Common Event Infrastructure (CEI), the Business Process Explorer
and the Business Space.
9
The cluster environment is established on 3 dedicated physical machines, the
database on a separate fourth machine. As security is also required, an existing user
directory (IBM Tivoli Directory Server – in this document typically mentioned as LDAP)
is attached to the cluster. Both the database and the LDAP machine are not shown in
the picture below:
The setup is built on four dedicated machines, one hosting the database installation
(not show in the picture), the others hosting the deployment manager, the HTTP
Server and the WebSphere Process Server nodes building up the cell. In this topology
the messaging engines are separated from the applications. Therefore the messaging
will be done in a separate cluster, the “Messaging Cluster”. On a separate cluster
called “Application Target Cluster”, the BPE Container and the Task Container will be
installed to host all process applications in the future.
Last but not least the supporting functions provided by WebSphere Process Server
(like the Common Event Infrastructure, the Business Rules Manager, the BPC
Explorer, the BPC Event Collector and the Business Space) are installed in the third
cluster called “Support Cluster”. Both, the “Application Cluster” and the “Support
Cluster” will use the “Messaging Cluster” for all messaging purposes.
10
This document describes how to install and configure the outlined WebSphere Process
Server clusters. There is only one active messaging engine per bus in the cluster. The
other messaging engines are in stand-by mode, ready to become active if the
currently active messaging engine goes down. The following picture illustrates the
Messaging Cluster with the different messaging engines in active and standby state
(1-of-N policy).
11
PART II Preparation
12
Chapter 2 Prerequisites and operating system
installation
2.1 Install operating system
In this document it is assumed that a pre-installed Red Hat Enterprise Linux system
can be used. Therefore the installation steps of the operating system are skipped.
Thus continue directly to check/provide the prerequisites:
Verify operating system level. Please note that this is only a sample and the output on
the actual used system might be different.
cat /etc/redhat-release
cat /proc/version
Check on all machines, that the WPS 7.0.0.1 required prerequisites are met. Do this
using the information provided here:
13
2.2 Time server setup
To avoid conflicts in a production environment caused by date/time mismatch in a cell,
all machines running WebSphere components as well as the system hosting the
database system are set up to receive their system date and time from a time server:
1. Logon as root
(if you are not using the native system console ensure x11 forwarding is
enabled)
2. Start the graphical Configuration Tool /usr/bin/system-config-time
3. Select Tab "Network Time Protocol and set
4. Servers (primary, secondary, tertiary): 0.rhel.pool.ntp.org, 1.rhel.pool.ntp.org,
2.rhel.pool.ntp.org
14
2.3 Select the type of user directory
To demonstrate how to use ldap an existing user directory server IBM Tivoli Directory
Server 6.1 will be used. To keep administration simple, security will be set up with a
single user ID “vmmuser” of group “FVTStaff”. Additional LDAP credentials are:
Property Value
Directory type Tivoli Directory Server Version 6.1
LDAP host ldap.boeblingen.de.ibm.com
Port 389
Server user ID vmmuser
Server user password ********
Server user group ou=StaffTest,cn=FVTStaff,o=ibm,c=us
Base distinguished name (DN) o=ibm, c=us
Bind distinguished name (User DN) cn=ldapuser,o=ibm,c=us
Bind password
Anonymous bind Allowed
15
Use the installation CDs or download the following file from IBM Passport Advantage:
WPS and WAS Fixes (WPS v7.0.0 FixPack 1, WPS and WAS mandatory iFixes)
WPS v7 Fixpack 1 will be applied. The Fixpack can be downloaded here:
http://www-01.ibm.com/support/docview.wss?uid=swg24024941&rs=0&cs=utf-
8&context=SSQH9M&dc=D400&loc=en_US&lang=en&cc=US
For the installation of the products the files have been copied to the local
directory /root/SWINST on each machine. (Hint: this could also be a shared
directory)
16
2.5 Installation properties
2.5.1 User IDs
To keep the setup simple, the same user IDs will be used for dedicated functions.
17
Note: Depending on your local needs, these directory names might be different.
Note: Depending on your local needs, the amount of used hosts might be
different.
18
Chapter 3 WebSphere Process Server cluster
installation and configuration
➢ Product installation
Installation of the WPS binaries (including available fix packs and all
mandatory iFixes for WPS and WAS)
Installation of the database system and database creation
➢ WPS Product configuration
Create WPS server deployment manager profile
Create the WPS tablespaces. users and schema objects
Create WPS custom profiles
Federate the WPS custom nodes
Enable security in the cell
➢ Cluster configuration
Create and configure the deployment environment
Configure shared transaction logs
Create CEIDB tables
➢ Install and configure the IBM HTTP Server
Install the IHS binaries
Configure SSL
Add IHS to the WPS cell
Configure BFM and HTM REST endpoint
➢ Verifcation of the setup
Install and configure a sample application
Verify the BPC Explorer
Verify the Business Space
If you are installing from the product DVD, mount the DVD and change to the
mount_point directory. If you are installing from a downloaded image from Passport
Advantage extract the image and change to the extract directory.
19
There are two options on how to install the WPS binaries:
1. graphical wizard
2. silent mode
Note: Installing the WPS binaries in silent mode is not described within this
document
To start the installation with the graphical wizard, enter the following (if you are not
locally working on the machine, make sure X11 tunneling is activated and an X server
is running on your machine):
cd /<WPS70_CD_OR_EXTRACTION_ROOT>
./launchpad.sh
20
A notice is displayed reminding you to close the IBM Installation Manager ap-
plication if open:
1. Click OK
1. Click OK
2. The WebSphere Application Server installation is now complete.
21
Now install WebSphere Process Server on top of WebSphere Application Serv-
er:
22
The IBM Installation Manager application will start to install WebSphere Pro-
cess Server:
1. Click Next
23
1. Read and accept the licence agreement
2. Click Next
24
1. Click Next
25
1. Click Next
26
The WebSphere Process Server installation is now ready to start:
1. Click Install
2. The Installation starts
27
After successful installation the folowing dialog is displayed:
28
1. Close the Launchpad application by clicking Exit
29
3.3 Installing the Update Installer
To install the WebSphere Application Server mandatory iFixes we need the IBM Up-
date Installer application. Get the latest Update Installer from:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg24020446
Note: The current version at the time of writing this document is v7.0.0.7
1. graphical wizard
2. silent mode
Note: Installing the Update Installer in silent mode is not described within this
document
Start the Installation Wizard for the Update Installer with the following command:
cd /UPDI_INSTALLER_EXTRACT_ROOT/UpdateInstaller
./install
30
The "Installation Wizard Welcome" panel is displayed:
1. Click Next .
31
The "Software License Agreement" panel is displayed:
2. Press Next .
32
The "System Prerequisite Check" panel is displayed:
2. Press Next .
33
The "Installation directory" panel is displayed:
2.Press Next .
34
The "Installation Summary" panel is displayed:
1. Verify that the Update Installer gets installed in the proper directory.
2.Press Next .
35
The "Installation Complete" panel is displayed after the installation has fin-
ished:
3. Press Finish .
36
3.4 Installing mandatory fixes
Get the latest mandatory ifixes and fixpack (Fixpack 1) from:
Note: The current fixpack at the time of writing this document is Fixpack 1
(v7.0.0.1)
NOTE: The steps shown here have to be executed on each node that is sup-
posed to contain WPS functionality; In this case this are the machines W70l3d-
mg, w70l3n01, w70l3n02.
Extract the WAS iFixes it into the Update Installer maintenance directory
{UpdateInstaller_Home}/maintenance.
1. graphical wizard
2. silent mode
Note: Applying the WAS iFixes using the silent mode is not described within this
document.
37
Start the Update Installer with the following command:
cd /opt/IBM/WebSphere/UpdateInstaller/
./update.sh
The "Welcome to the IBM Update Installer for WebSphere Software wizard"
panel is displayed:
1.Press Next .
38
The "Product Selection" panel is displayed:
2. Click Next .
39
The "Maintenance Operation Selection" panel is displayed:
2. Click Next .
40
The "Maintenance Package Directory Selection" panel is displayed:
1. Check the Directory path, this shoud be the path where you placed the
downloaded fixes
2. Click Next .
41
The "Available Maintenance Packages to Install" panel is displayed:
2. Click Next .
42
The "Installation Summary" panel is displayed:
1. Click Next .
43
The "Installation Complete" panel is displayed:
2. Click Finish.
NOTE: The steps shown here have to be executed on each node that is sup-
posed to contain WPS functionality; In this case this are the machines W70l3d-
mg, w70l3n01, w70l3n02.
Extract the WPS iFixes it into common directory on the current machine. For
example:
{UpdateInstaller_Home}/maintenance.
44
Hint: extract the iFixes to a shared directory to reuse it across multiple
installations.
The WPS iFixes are applied using the IBM Installation manager application. As
described on the page where you downloaded the mandatory iFixes, the WPS
iFixes can be installed either using the IBM repository in the internet or by
downloading and adding the fixes to the local IBM Installation Manager repository.
Here we will use the option 2: "Download the iFixes" because we have no internet
access from the machines on which we install WPS. Start the IBM Installation
Manager application with the following command:
cd /opt/IBM/InstallationManager/eclipse/
./launcher
45
The "Preferences" dialog is shown:
1.Click Repositores.
2.De-select the checkbox for the currently displayed repository (http://public.
Dhe...)
46
We now have to add the downloaded WPS iFix repositories as repository
locations. The following steps have to be repeated for each downloaded WPS
iFix repository:
2. Select the "repository.config" file for each iFix repository and click OK
47
3.Repeat this step for all needed WPS iFixes.
4.Add also the shipped WPS repository located on the WPS CD or the
extracted binary installaton files. The "repository.config" you need to add as a
repository is located here:
<WPS70_CD_OR_EXTRACTION_ROOT>/repository/repository.config
When all WPS iFix repositories have been added, the "Preferences" dialog will
look something like this:
48
To apply the WPS iFixes on our WPS binaries open IBM Installation Manager if
not already open:
49
1.Click Next
50
1.Click Next
51
1.Make sure all needed WPS iFixes are recognized and selected
2.Click Next
52
1.Click Update
53
If WPS update was successfully, the following dialog is shown:
1.Click Finish
2.Close IBM Installation Manager
NOTE: The steps shown here have to be executed on each node that is sup-
posed to contain WPS functionality; In this case this are the machines W70l3d-
mg, w70l3n01, w70l3n02.
Extract the WPS Fix Pack 1 files it into common directory on the current machine. For
example:
{UpdateInstaller_Home}/maintenance.
Hint: extract the Fix Pack 1 files to a shared directory to reuse it across multiple
installations.
54
The WPS Fix Pack 1 is applied using the IBM Installation manager application. As
for the WPS iFixes we will install the Fix Pack 1 by adding the Fix Pack 1 repository
files to the IBM Installation Manager. Start the IBM Installation Manager application
with the following command:
cd /opt/IBM/InstallationManager/eclipse/
./launcher
55
The "Preferences" dialog is shown:
1.Click Repositores.
56
We now have to add the downloaded WPS Fix Pack 1 repositories as a
repository location:
sca.1.0.1.1.fp.zip
sca.1.0.import.zip
was.7.0.import.zip
wps.7001.repository.zip
xml.1.0.0.1.fp.zip
xml.1.0.import.zip
57
When all WPS Fix Pack 1 repositories have been added, the "Preferences"
dialog will look something like this:
58
To apply the WPS Fix Pack 1 on our WPS binaries open IBM Installation
Manager if not already open:
59
1.Click Next
60
1.Click Next
61
1.Click Next
62
1.Accept the licence agreement
2.Click Next
63
1.Click Next
64
1.Click Update
65
If WPS Fix Pack 1 update was successfully, the following dialog is shown:
1.Click Finish
2.Close IBM Installation Manager
66
3.5 Verify WebSphere Process Server binary installation
NOTE: The steps shown here have to be executed on each node that is sup-
posed to contain WPS functionality; In this case this are the machines W70l3d-
mg, w70l3n01, w70l3n02.
Verify the success of the binary installation by examining the WebSphere Process
Server log files. If the last line of the file contains the word INSTCONFSUCCESS, the
selected WebSphere Process Server features were installed successfully.
You can also use the Installation Verification Tool (IVT) to check if the binaries
have been installed correctly. See the information on how to do that here:
http://publib.boulder.ibm.com/infocenter/dmndhelp/v7r0mx/index.jsp?
topic=/com.ibm.websphere.wps.doc/doc/tins_ivt.html
Also on each machine make a WPS version info check. To check the WPS version
execute the following command on each machine:
/WPS70/bin
./versionInfo.sh
This results in the following report. Check if the version numbers are compliant on
each machine:
--------------------------------------------------------------------------------
IBM WebSphere Application Server Product Installation Status Report
--------------------------------------------------------------------------------
Installation
--------------------------------------------------------------------------------
Product Directory /WPS70
Version Directory /WPS70/properties/version
DTD Directory /WPS70/properties/version/dtd
Log Directory /WPS70/logs
Backup Directory /WPS70/properties/version/nif/backup
TMP Directory /tmp
67
Product List
--------------------------------------------------------------------------------
XML installed
ND installed
WBI installed
SCA installed
Installed Product
--------------------------------------------------------------------------------
Name XML Feature Pack
Version 1.0.0.1
ID XML
Build Level cf010950.07
Build Date 12/19/09
Architecture Intel (32 bit)
Installed Product
--------------------------------------------------------------------------------
Name IBM WebSphere Application Server - ND
Version 7.0.0.7
ID ND
Build Level wps0946.04
Build Date 11/18/09
Architecture Intel (32 bit)
Installed Product
--------------------------------------------------------------------------------
Name IBM WebSphere Process Server
Version 7.0.0.1
ID WBI
Build Level of0950.17
Build Date 12/20/09
Architecture Intel (32 bit)
Installed Product
--------------------------------------------------------------------------------
Name SCA Feature Pack
Version 1.0.1.1
ID SCA
Build Level cf010950.08
Build Date 12/19/09
Architecture Intel (32 bit)
--------------------------------------------------------------------------------
End Installation Status Report
--------------------------------------------------------------------------------
68
Part III Database System
69
Chapter 4 Oracle binary installation
This chapter covers the Oracle binary installation and its prerequisites on an Red Hat
Enterprise Linux Version 5 system.
Before Oracle can be installed on a Linux operating system all requirements must be
met and all preparation tasks must be finished successfully.
70
RPMs required for Oracle 11g on a RHEL5 64-bit system - note that on the 64bit
system, several software packages are required in both, the 32-bit and 64-bit
versions:
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.1
gcc-c++-4.1.1
glibc-2.5-12
glibc-2.5-12 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5-12 (32 bit)
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libgcc-4.1.1
libgcc-4.1.1 (32 bit)
libstdc++-4.1.1
libstdc++-4.1.1 (32 bit)
libstdc++-devel 4.1.1
make-3.81
sysstat-7.0.0
Note: The listed packages without the additional (32 bit) mark are 64 bit ver-
sions.
71
RPMs required for Oracle 11g on a RHEL5 32-bit system:
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3-61
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
glibc-2.5-12
glibc-common-2.5-12
glibc-devel-2.5-12
glibc-headers-2.5-12
gcc-4.1.1-52
gcc-c++-4.1.1-52
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.1-52
libstdc++-4.1.1
libstdc++-devel-4.1.1-52
make-3.81-1.1
sysstat-7.0.0
unixODBC-2.2.11
unixODBC-devel-2.2.11
To verify that the required software packages are installed, enter the following
command as user root:
For example:
rpm -qa |grep binutils
To install the required software packages , enter the following command as user root:
For example:
rpm -ivh binutils-2.17.50.0.6
72
4.1.1.2 Linux kernel requirements
Oracle 11g requires a Linux kernel version of at least 2.6.18.
To verify the installed Linux kernel version on your Oracle DB host machine execute
the following command as user root:
uname -r
2.6.18-164.10.1.el5
For further information on tuning please refer to: Oracle® Database Performance
Tuning Guide 11g Release 1 (11.1) Part Number B28274-02:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28274/toc.htm
The following parameters and values are required as a minimum for the Oracle 11g
installation:
73
Kernel parameter Value Description
kernel.sem semmsl 250 semmsl is the maximum
number of semaphores per
semaphore set
semmns 32000 semmns is the the total
number of semaphores
semopm 100 semopm is the maximum
number of semaphore
operations that can be
performed per semop(2)
system call.
semmni 128 semmni is the maximum
number of semaphore sets in
the entire Linux system
fs.file-max 102696 file-max is the maximum of
file handles that the Linux
kernel will allocate
net.ipv4.ip_local_port_ran 1024 65000 ip_local_port_range defines
ge the local port range used by
TCP und UDP traffic to choose
the local port
net.core.rmem_default 4194304 rmem_default is the receive
socket buffer's default size
net.core.rmem_max 4194304 rmem_max is the receive
socket buffer's maximum size
net.core.wmem_default 262144 wmem_default is the send
socket buffer's default size
net.core.wmem_max 262144 wmem_max is the send
socket buffer's maximum size
Important: If the current system values are higher than the ones listed above,
it is recommended to leave them as they are.
This is not valid for the SHMMAX parameter which needs to be calculated.
74
To check the values issue the following command as user root:
For example:
/sbin/sysctl –a | grep kernel.shmmax
kernel.shmmax = 1892380672
To change the values, edit /etc/sysctl.conf as user root and modify this file as shown
below:
# -----------------------------------------------------------------
# Linux kernel parameter for Oracle 11g
# -----------------------------------------------------------------
kernel.shmmax = <add value here>
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 102696
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
After completing the changes, activate them either by issuing the following command
as user root:
/sbin/sysctl –p
...
kernel.shmmax = <added value>
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
fs.file-max = 102696
...
75
4.1.1.4 Memory requirements
Oracle 11g requires a minimum of 1GB RAM memory.
df -k /tmp
If there is less than 400 MB of free disk space available in the /tmp directory, then
complete one of the following steps:
• Delete unnecessary files from the /tmp directory to meet the disk space
requirement.
• Set the TMP and TMPDIR environment variables when setting the oracle user's
environment (described in Linux operating system user for Oracle).
• Extend the file system that contains the /tmp directory. If necessary, contact
the system administrator for information about extending file systems.
df -k
Between 3.5 GB and 5 GB of disk space for the Oracle software, depending on the
installation type are needed. The following table describes the disk space requirements
for software files for each installation type:
76
The following table describes the disk space requirements for each installation type:
To display the size of the configured swap space execute the following command as
user root:
77
4.1.2 The Linux operating system user for Oracle
The Oracle 11g installation is usually performed using a Linux operating system user.
This user needs certain environment variable settings to make sure that the Oracle
database is set up and functions correctly. This section describes how to create such a
user for Oracle, and how to configure this user’s environment.
Note: The group and user names are a recommendation from the Oracle Install-
ation Guide for Linux. We will follow the recommendation in this case.
To determine if these groups and users already exist, and if necessary, to create
them, follow the steps below.
To determine if the group oinstall exists, enter the following command as user
root:
If the output of this command contains the group name oinstall, then the group
already exists.
To determine if the group dba exists, enter the following command as user root:
If the output from this command contains the group name dba, then the group
already exists.
If you need to create these groups, enter the following commands as user root:
groupadd oinstall
groupadd dba
78
To determine if the user oracle exists and belongs to the correct groups, enter the
following command as user root:
id oracle
If the user oracle exists, this command will display information about the groups to
which the user belongs. The output should be similar to the following:
This indicates that oinstall is the primary group and dba is a secondary group. Some
hints and tips if you need to adapt your settings are described in the following.
If the oracle user exists, but its primary group is not oinstall or it is not a member of
the group dba, enter the following command as user root:
If the user oracle does not exist, enter the following command as user root to create
it:
This command creates the oracle user and specifies oinstall as the primary group
and dba as the secondary group.
Enter the following command to set the password of the oracle user:
passwd oracle
79
4.1.2.2 Modifying the profile of user oracle
After creating the operating system user oracle, the user’s profile needs to be
changed. To do this, log in as user oracle and change or add the following entries in
/home/oracle/.bash_profile:
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/11g
export ORACLE_PATH=$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/ad-
min
export ORACLE_SID=ORCL
export PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin
export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
export PATH=${PATH}:$ORACLE_BASE/common/oracle/bin
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS10=$ORACLE_HOME/nls/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export CLASSPATH=$ORACLE_HOME/JRE
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export THREADS_FLAG=native
export TEMP=/tmp
export TMPDIR=/tmp
Note: In this document the defaults are used for the environment variables OR-
ACLE_BASE and ORACLE_HOME. If other values are used the screens shown in
4.2 Installing the Oracle binaries will reflect those values instead of the defaults.
The environment variable ORACLE_SID defines the Oracle System ID for the
particular database on the system. Set this system variable to match the value that
will be used later in the database creation process.
80
4.1.3 Creating the directories for Oracle
The Oracle user needs a base directory for the software binaries and the database
files. The user must have read and write rights in this directory.
Create this directory to match the path defined in the previous chapter in the system
variable ORACLE_BASE (e.g. /opt/oracle).
To create the Oracle base directory execute the following commands as user root:
mkdir -p /opt/oracle
chown -R oracle:oinstall /opt/oracle
chmod -R 775 /opt/oracle
Before installing the binaries, make sure that the binaries for Oracle 11g have been
unzipped in the /tmp/db11106 directory or the Software CD/DVD is mounted in the
system.
In this example the unzipped variant will be used. Please refer to the Linux man-page
how to mount the CD/DVD and how to access the file on it.
Note: Make sure that you use Oracle 32-bit binaries on a 32-bit Linux system,
and Oracle 64-bit binaries on a 64-bit system.
The following are the general steps to install and configure Oracle products using Or-
acle Universal Installer in silent:
1. Create the oraInst.loc file.
2. Prepare a response file.
3. Run Oracle Universal Installer in silent mode (Software-only).
4. Run Oracle Patch Set in silent mode.
5. Run Net Configuration Assistant in silent mode
6. Run Database Configuration Assistant in silent mode.
81
Note: The steps in the following sections imply that the user oracle is logged
in on the database host.
Note: If Oracle software has been installed previously on the system, the
oraInst.loc file might already exist. If the file does exist, you do not need to cre-
ate a file.
3. Use a text editor to create the oraInst.loc file, containing the following
lines:
vi oraInst.loc
inventory_loc=$ORACLE_BASE/oraInventory
inst_group=oinstall
In this example, $ORACLE_BASE is the path of the Oracle base directory, for example,
/opt/oracle. Type in a absolute path for ORACLE_BASE, do not use variables.
4. Enter the following commands to set the appropriate owner, group, and
permissions on the oraInst.loc file:
chown oracle:oinstall oraInst.loc
chmod 664 oraInst.loc
exit
82
4.2.2 Editing the response file template
Oracle provides response file templates for each product and installation type, and for
each configuration tool. These files are located at the {db_install_dir}/response
directory. In this example the response files are located in /tmp/db11106/response
and it will use the enterprise.rsp for the silent installation.
To modify the enterprise.rsp response file finish the following steps:
In addition to editing settings specific to the Oracle Database installation, check that
the FROM_LOCATION path is correct and points to the products.xml file in the stage
directory in the installation media. You may want to set this variable to point to an
absolute path, for example:
FROM_LOCATION="/directory_path/stage/products.xml"
Change the variables in the enterprise.rsp response file to the following values:
UNIX_GROUP_NAME="oinstall"
FROM_LOCATION="/tmp/db11106/stage/products.xml"
ORACLE_BASE="/opt/oracle"
ORACLE_HOME="/opt/oracle/11g"
ORACLE_HOME_NAME="OraDbHome1"
RESTART_SYSTEM=false
RESTART_REMOTE_SYSTEM=false
ORACLE_HOSTNAME="w70l3ora.boeblingen.de.ibm.com"
INSTALL_TYPE="EE"
s_nameForDBAGrp="dba"
83
s_nameForOPERGrp="dba"
s_nameForASMGrp="oinstall"
n_configurationOption=3
1. Complete the preinstallation tasks listed in 4.2.2 Editing the response file
template.
2. Log in as the Oracle software owner user (in this case oracle ).
3. To start Oracle Universal Installer in silent mode, enter the following com-
mand:
/tmp/db11106/runInstaller -silent -noconfig -responseFile /tmp/db11106/re-
sponse/enterprise.rsp
Note: Do not specify a relative path to the response file. If you specify a relat-
ive path, then the Oracle Universal Installer fails.
4. When the installation completes, log in as the root user and run the
root.sh script:
su - root
password:
84
/opt/oracle/11g/root.sh
Note: The Oracle 11g (11.1.0.6.0) can be used for WebSphere Process Server
7.0. This step can be skipped if the Oracle Patch Set is not needed.
Finish the following steps to install the Oracle 11g Patch Set 11.1.0.7.0:
1. Download the Oracle 11g Patch Set 11.1.0.7.0 for Linux from the Oracle
Support Homepage (Metalink).
https://metalink.oracle.com/CSP/ui/index.html
Copy the downloaded patch set file to the database host. Make sure, that the oracle
user has
2. Unzip the downloaded Patch Set to /tmp/patch11107 .
Login on the database host as user oracle and unzip the downloaded patch set file.
Change the variables in the patchset.rsp response file to the following values:
UNIX_GROUP_NAME="oinstall"
FROM_LOCATION="/tmp/patch11107/stage/products.xml"
ORACLE_HOME="/opt/oracle/11g"
ORACLE_HOME_NAME="OraDbHome1"
RESTART_SYSTEM=false
OUI_HOSTNAME="w70l3ora.boeblingen.de.ibm.com"
METALINK_USERNAME=""
4. Run the Oracle Universal Installer using the patchset.rsp response file:
85
Execute the following command to start the oracle universal installer:
/tmp/patch11107/runInstaller -silent -responseFile
/tmp/patch11107/response/patchset.rsp
5. When the installation completes, log in as the root user and run the
root.sh script:
su - root
password:
/opt/oracle/11g/root.sh
86
Chapter 5 Oracle database configuration
5.1 Creating the Oracle listener using a Response File
To configure and start an Oracle Net listener on the system, configure naming meth-
ods, and configure Oracle Net service names run Net Configuration Assistant in silent
mode . To run Net Configuration Assistant in silent mode, edit a response file tem-
plate. Oracle provides a response file template named netca.rsp in the response dir-
ectory /tmp/db11106/response .
To run Net Configuration Assistant using a response file:
Change the variables in the netca.rsp response file to the following values:
SHOW_GUI=false
2. Log in as the Oracle software owner user (in this case oracle ).
3. Run the network configuration assistent using the netca.rsp response file:
Execute the following command to start the oracle universal installer:
/opt/oracle/11g/bin/netca /silent /responsefile /tmp/db11106/response/netca.rsp
87
5.1.1 Verifying the created listener
To verify the created listener:
lsnrctl status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.7.0 -
Production
Start Date 30-APR-2009 15:45:30
Uptime 0 days 0 hr. 0 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/11g/network/admin/listener.ora
Listener Log File
/opt/oracle/diag/tnslsnr/W6201L3O/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
(HOST=W6201L3O.boeblingen.de.ibm.com)(PORT=1521)))
The listener supports no services
The command completed successfully
88
5.2 Creating the WebSphere Process Server database
Start the database configuration assistant by executing the
/opt/oracle/11g/bin/dbca command as user oracle to create the WebSphere
Process Server database.
89
The “Database Templates” panel is displayed:
1. By default there are three database templates. Select the “Custom Data-
base”.
90
The “Database Identification” panel is displayed:
The “Global Database Name” usually consists of the SID followed by the data-
base domain.
The hostname of the database will be used as the database domain.
For example the database with the SID “ORCL” on host “hostname” would get
the Global Database Name “ORCL.hostname”
91
The “Management Options” panel is displayed:
92
The “Database Credentials” panel is displayed:
1. Select “Use the Same Administrative Password for All Account” and type in
a preferred password.
93
The “Storage Options” panel is displayed:
94
The “Database File Locations” panel is displayed:
“Database File Locations from Template” gives the most control over the
location where the database files will be created.
Choosing “Common Location for All Database Files”, will create all data-
base files in the same directory.
95
The "Recovery Configuration" panel is displayed:
Flash Recovery Area is not needed if archiving is disabled and/or redo logs and
control files are not multiplexed.
96
The "Database Content" panel is displayed:
97
The "Standard Database Components" panel pops up:
98
The "Initialization Parameters" panel with open "Memory" tab is displayed:
"Typical" defines one memory size for both the System Global Area (SGA)
and the Program Global Area (PGA) in one value and splits it automatically into
SGA and PGA.
"Custom" defines the SGA and PGA memory size separately. The SGA size
can not be set higher than defined in the kernel parameter kernel.shmmax.
1. Select “Custom” and type in the chosen SGA and PGA memory size.
Note: When choosing the SGA and PGA size make sure, that the database host
has enough memory and will not start swapping. Swapping will extremely slow
the database.
Please also refer to the Oracle Installation Guide for Linux.
99
The "Initialization Parameters" panel with open "Sizing" tab is displayed:
On the “Sizing” tab increase the number of processes. This parameter limits
the number of parallel database connections if “Dedicated Server” is used as
connection mode. It depends on the BPEL application and the number of pro-
cess instances that are running in parallel.
1. Change the processes from 150 to 500 as first initial tuning action.
100
The "Initialization Parameters" panel with open "Character Sets" tab is dis-
played:
101
The "All Initialization Parameters" panel pops up:
102
new
Parameter default Remark
value
OPEN_CURSORS 300 1000 Specifies the maximum number of open
cursors (context areas) a session can
have at once, and constrains the PL/SQL
cursor cache size which PL/SQL uses to
avoid reparsing statements re-executed
by a user. Set this value high enough to
prevent your applications from running
out of open cursors.
SESSION_CACHED_CURSORS 50 1000 Specifies the number of session cursors
to cache. When the same SQL statement
is parses several times, it’s session
cursor is moved into the session cursor
cache.
FAST_START_MTTR_TARGET 900 This parameter specifies the mean time
in seconds that the database should be
able to recover if a crash occurs.
Possible values are from 0 to 3600.
103
The "Initialization Parameters" panel with open "Connection Mode" tab is dis-
played:
104
The "Security Settings" panel is displayed:
105
The "Automatic Maintenance Tasks" panel is displayed:
Oracle 11g has the possibility to run scheduled maintenance tasks like com-
pute statistics and table space advisor.
106
The "Database Storage" panel is displayed:
The default size of the database files of the tablespaces is too small; increase
the sizes to the following values:
SYSAUX 500 MB
SYSTEM 700 MB
TEMP 200 MB
UNDOTBS1 1500 MB
USERS 150 MB
107
1. Select the datafile.
108
The "Edit Datafile" panel pops up:
109
The "Edit Datafile" is closed and the "Database Storage" panel gets the focus
back:
1. Repeat the last steps for the SYSTEM, TEMP, UNDOTBS1 and USERS table
spaces to increase the size as listed above.
110
Specify the size and the location of the redo log files. The optimal size depends
on the database load. To increase the performance of the database increase
the size at least to 1500 MByte. All redo log files should have the same size.
111
1. Insert the value 1500 in the file size field.
3. Select the two other Redo Log Groups one after the other and repeat the
steps.
112
1. Press the Next button.
113
The "Confirmation" panel pops up:
114
The "Database Configuration Assistant" starts:
115
1. Press the Exit button.
116
5.3 Database listener configuration
Login as user oracle. Goto the directory /opt/oracle/11g/network/admin and verify
the settings in the file listener.ora:
# listener.ora Network Configuration File:
/opt/oracle/11g/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = <your_hostname>)(PORT = 1521))
)
)
)
Make the necessary adjustments for the installation path und hostname.
The Oracle 11g listener needs the entry of an SID_LIST_LISTENER in the listerner.ora
file. Add the following lines to the listener.ora file:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = ORCL)
(ORACLE_HOME = /opt/oracle/11g)
)
)
The Oracle listener will discover the database instance ORCL automatically after a time
period of about 1 minute.
The file tnsnames.ora located in the same directory has also to be checked. Add the
following lines to the tnsnames.ora file if a similar entry is missing:
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = <your_hostname>)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
)
)
117
Restart the listener after changing the files.
Note: The commands to start and stop the listener are listed in the Oracle
Appendix in this document.
Note: Skip this chapter if a new database was created during the Oracle install-
ation process and continue with chapter 5.5.Oracle JDBC driver.
Modify the initialization parameters for a existing database to match the “new value”
size as in the table below:
new
Parameter default Remark
value
OPEN_CURSORS 300 1000 Specifies the maximum number of open
cursors (context areas) a session can
have at once, and constrains the PL/SQL
cursor cache size which PL/SQL uses to
avoid reparsing statements re-executed
by a user. Set this value high enough to
prevent your applications from running
out of open cursors.
SESSION_CACHED_CURSORS 50 1000 Specifies the number of session cursors
to cache. When the same SQL statement
is parses several times, it’s session
cursor is moved into the session cursor
cache.
FAST_START_MTTR_TARGET 900 This parameter specifies the mean time
in seconds that the database should be
able to recover if a crash occurs.
Possible values are from 0 to 3600.
PROCESSES 150 500 This parameter limits the number of
parallel database connections if you are
using “Dedicated Server” as connection
mode. It depends on the BPEL
application and the number of process
instances that are running in parallel.
118
To change the parameters connect to the database ORCL as SYSDBA and use the
ALTER SYSTEM command. The following script can be used to change the database
initialization parameters.
REM
************************************************************************
REM File: setWPSOraInitParameter.sql
REM Date: 2009-01-15
REM
REM Desc: Set the initial Oracle database parameter for WPS.
REM
REM Usage: Execute the sql script as user oracle on the database
host.
REM
************************************************************************
Stop and restart the database after changing the initialization parameters.
Note: How to start and stop the database please refer to the Oracle Appendix.
119
5.5 Oracle JDBC driver
This chapter describes where to find the needed Oracle JDBC drivers.
2. Locate the jdbc driver files in the directory “$ORACLE_HOME/jdbc/lib” on the host
where Oracle was installed.
Note: WPS 7.0 will use the oracle JDK 1.6 drivers (ojdbc6.jar).
3. Copy all files from the lib directory into the directory /opt/oracle/driver on the
Deployment manager host and on each WPS and WBM host.
Note: If a non-root WPS installation is done, make sure the driver directory is
readable by the used WPS os user.
120
Chapter 6 Creating Oracle users and tables
This chapter describes the creation of the Oracle users, tablespaces and tables for
WebSphere Process Server.
A SQL script to create the recommended tablespaces can be found in the Section
6.1.3 Create recommended tablespaces.
Note: The tablespace names are also only recommendations. Changing the ta-
blespace name can be done in the 01createRecWPSOraTablespaces.sql script. If
the tablespace names are changed, remember to change them also in the sec-
tion 6.2 WebSphere Process Server users and privileges.
122
6.1.3 Create recommended tablespaces
You can use the following script to create the recommended tablespaces from Section
6.1.2 Recommended user default tablespaces.
Create a file 01createRecWPSOraTablespaces.sql with the editor of your choice
and paste in the lines from below:
REM *******************************************************************
REM File: 01createRecWPSOraTablespaces.sql
REM Date: 2010-01-14
REM
REM Desc: Create all recommended tablespaces for WPS
REM
REM Usage:
REM 1. Define datafile paths as needed.
REM 2. Execute the sql script as user oracle on the database host.
REM *******************************************************************
REM *******************************************************************
REM Create the Oracle tablespace for WPS
CREATE TABLESPACE WPS_COMMON_TBS DATAFILE '&WPS_TbsPath/WPS_COMMON.dbf'
SIZE 150 M REUSE AUTOEXTEND ON NEXT 10 M;
REM *******************************************************************
REM Create the Oracle tablespace for the Message Engines
CREATE TABLESPACE WPS_MEAPP_TBS DATAFILE '&MEAPP_TbsPath/WPS_MEAPP.dbf'
SIZE 100 M REUSE AUTOEXTEND ON NEXT 10 M;
CREATE TABLESPACE WPS_MESYS_TBS DATAFILE '&MESYS_TbsPath/WPS_MESYS.dbf'
SIZE 100 M REUSE AUTOEXTEND ON NEXT 10 M;
CREATE TABLESPACE WPS_MECEI_TBS DATAFILE '&MECEI_TbsPath/WPS_MECEI.dbf'
SIZE 100 M REUSE AUTOEXTEND ON NEXT 10 M;
CREATE TABLESPACE WPS_MEBPC_TBS DATAFILE '&MEBPC_TbsPath/WPS_MEBPC.dbf'
SIZE 100 M REUSE AUTOEXTEND ON NEXT 10 M;
123
Execute the 01createRecWPSOraTablespaces.sql by typing the following
command as user oracle:
124
6.2 WebSphere Process Server users and privileges
This section describes the Oracle database users needed for WebSphere Process
Server. A common database role with all needed privileges is also described.
Scripts for creating the database users and the common role are also provided in a
sub-section.
DB user Description
WPS_COMMONDB Common DB user
WPS_BPCDB BPC DB user
WPS_BPCOBS Observer DB user
WPS_CEIDB Common Event Infrastructure DB user
WPS_BSPACE BusinessSpace DB user
WPS_SCAAPPMSG SCA application message engine DB user
WPS_SCASYSMSG SCA system message engine DB user
WPS_CEIMSG Common Event Infrastructure message engine DB user
WPS_BPCMSG Business process choreographer message engine DB user
WPS_RECOVERY Oracle DB user with XA recovery privileges. (Optional)
125
6.2.2 WebSphere Process Server database user roles
The following privileges are needed for every WebSphere Process Server database
user:
Role Description
CONNECT Enables a user to connect to the database. Grant this
role to any user or application that needs database
access. If you create a user using Oracle Enterprise
Manager Database Control, this role is automatically
granted to the user.
RESOURCE Enables a user to create, modify, and delete certain
types of schema objects in the schema associated with
that user. Grant this role only to developers and to other
users that must create schema objects. This role grants
a subset of the create object system privileges. For
example, it grants the CREATE TABLE system privilege,
but does not grant the CREATE VIEW system privilege.
It grants only the following privileges: CREATE CLUSTER,
CREATE INDEXTYPE, CREATE OPERATOR, CREATE
PROCEDURE, CREATE SEQUENCE, CREATE TABLE,
CREATE TRIGGER, CREATE TYPE. In addition, this role
grants the UNLIMITED TABLESPACE system privilege,
which effectively assigns a space usage quota of
UNLIMITED on all tablespaces in which the user creates
schema objects.
UNLIMITED TABLESPACE Permits a user to use an unlimited amount of any
tablespace in the database, grant the user the
UNLIMITED TABLESPACE system privilege. This
overrides all explicit tablespace quotas for the user. If
you later revoke the privilege, then explicit quotas again
take effect. You can grant this privilege only to users,
not to roles.
Note: WPS provides a jar-file to measure time differences in the BPC Observer.
In order to make use of this java utility a specific jar file is needed within oracle
(bpcodbutil.jar). To use this jar file the Oracle database needs to give the
WPS_BPCOBS user an additional user privilege. For further information please
refer to the WPS infocenter and the technote below.
javauserpriv technote:
http://www.ibm.com/support/docview.wss?uid=swg21377372
126
The WPS BPC database user will need the following additional privilege when using
query tables or during migration from WPS versions 6.1.2.x and lower:
Role Description
CREATE VIEW Enables a user to create a view in his own user schema.
This system privilege is commented out in the create WPS users script.
Privileges Description
SELECT ON DBA_PENDING_TRANSACTIONS Used for XA recovery.
SELECT ON PENDING_TRANS$ Used for XA recovery.
SELECT ON DBA_2PC_PENDING Used for XA recovery.
EXECUTE ON DBMS_XA Used to execute XA recovery action
in the Oracle database.
Create a file 02reateWPSrecoveryRole.sql with the editor of your choice and paste
in the lines from below:
REM *******************************************************************
REM File: 02createWPSrecoveryRole.sql
REM Date: 2010-01-14
REM
REM Desc: Create Oracle user role for WPS
REM
REM Usage:
REM 1. Execute the sql script as user oracle on the database host.
REM *******************************************************************
127
GRANT SELECT ON SYS.DBA_2PC_PENDING TO WPS_RECOVERY_ROLE;
GRANT EXECUTE ON SYS.DBMS_XA TO WPS_RECOVERY_ROLE;
128
Execute the 02createWPSrecoveryRole.sql by typing the following commands as
user oracle:
129
6.2.4 Create WPS users and assign needed privileges and
roles
This section describes how to create the needed WPS database users: Once the
users exist the previously created role is assigned.
You can use the following script to create the WPS database users from section 6.2.1
Needed WebSphere Process Server database users and grant the needed privileges
and roles to the WPS database users from the sections above:
Create a file 03createWPSOraUser.sql with the editor of your choice and paste in
the lines from below:
REM *******************************************************************
REM File: 03createWPSOraUser.sql
130
REM Date: 2010-01-14
REM
REM Desc: Create all Oracle database user for WPS
REM
REM Usage:
REM 1. Define db user names
REM 2. Define db user passwords for all WPS user
REM 3. Optional: Adjust default tablespaces.
REM 4. Execute the sql script as user oracle on the database host.
REM *******************************************************************
131
GRANT RESOURCE TO WPS_BPCDB;
GRANT UNLIMITED TABLESPACE TO WPS_BPCDB;
REM GRANT CREATE VIEW TO WPS_BPCDB;
132
Grant succeeded.
Grant succeeded.
User created.
Grant succeeded.
Grant succeeded.
Grant succeeded.
User created.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Commit complete.
Disconnected from Oracle Database 11g Enterprise Edition Release
11.1.0.7.0 - 64bit Production
With the Partitioning option
133
6.2.5 WPS XA recovery user(s)
In order to use distributed transactions (XA) with Oracle several privileges are re-
quired (see also 6.2.3 WebSphere Process Server XA recovery user privileges) for the
connecting db user.
2. Grant all connecting db users (WPS users) the required recovery privileges.
Pro: The authentication alias settings within the datasources do not
need to be altered.
Cons: XA privileges are spread across all users which might be a
potential security issue.
Scripts will be provided for both approaches. However this document describes
the first approach (specific recovery user) in detail.
REM *******************************************************************
REM File: 04createWPSrecoveryUser.sql
REM Date: 2010-01-14
REM
REM Desc: Create WPS recovery database user for WPS
REM
REM Usage:
REM 1. Define db user names
REM 2. Define db user passwords for WPS recovery user
REM 3. Execute the sql script as user oracle on the database host.
REM *******************************************************************
134
GRANT WPS_RECOVERY_ROLE TO WPS_RECOVERY;
REM *******************************************************************
REM File: 04BgrantWPSallUSersRecoveryPrivileges.sql
REM Date: 2010-01-14
REM
REM Desc: Grant all Oracle database user the XA recovery privileges.
REM
REM Usage:
REM 1. Define db user names
REM 2. Execute the sql script as user oracle on the database host.
REM *******************************************************************
135
EXIT
136
6.3 WebSphere Process Server tables
This chapter describes how to create the different WebSphere Process Server tables in
the Oracle database.
/WPS70/util/dbUtils/DbDesignGenerator.sh
[info] Please enter the values for the properties in the database objects
section.
137
Database name(SID)[default=WPRCSDB] :ORCL
Database User name[default=] :WPS_COMMONDB
Database schema[default=] :WPS_COMMONDB
System user name(this is required ONLY for creating the database as a part
of standalone profile creation.)[default=] :[Enter]
System password(this is required ONLY for creating the database as a part
of standalone profile creation.)[default=] :[Enter]
Database Location(this is required ONLY for creating the database as a
part of standalone profile creation.)[default=] :[Enter]
[info] You have completed database objects section properties needed for
database scripts generation.
To skip data source properties, enter 's'; or enter anything else to con-
tinue :s
# ll
total 12
-rw-r--r-- 1 root root 1346 Jan 15 14:29 CommonDB_Oracle.properties
-rw-r--r-- 1 root root 3521 Jan 15 14:29 dbDesignGenerator.log
drwxr-xr-x 2 root root 4096 Jan 15 14:29 Oracle-CommonDB
4. Copy the Oracle-CommonDB directory and all files inside from the dbDesignFiles
directory to the created directory on the Oracle database host, in this case the
host w70l3ora.boeblingen.de.ibm.com.
5. Start the CommonDB scripts in the created directory on the Oracle host by ex-
ecuting the following command as user oracle:
# ./configCommonDB.sh
Connected.
Table created.
Table altered.
Index created.
Table created.
Table altered.
138
Index created.
Table created.
Table altered.
Index created.
Table created.
Table altered.
Index created.
...
Sequence created.
Sequence created.
Sequence created.
Sequence created.
Table created.
Table altered.
Table created.
Table created.
Table created.
Table created.
Table created.
1 row created.
Table created.
Disconnected from Oracle Database 11g Enterprise Edition Release
11.1.0.7.0 - 64bit Production
With the Partitioning option
/WPS70/util/dbUtils/DbDesignGenerator.sh
[info] Enter 'q' to quit without saving; '-' for back to previous menu;
'?' for help at any time.
[info] To accept the given default values, simply press the 'Enter' key.
(1)bpc
(2)bpcreporting
(3)bspace
(4)cei
139
(5)commondb
(6)sibme
(1)DB2-distributed
(2)DB2-iSeries
(3)DB2-zOS-8
(4)DB2-zOS-9
(5)Derby
(6)Informix
(7)Oracle
(8)SQL Server
[info] Please enter the values for the properties in the database objects
section.
(1)Configuration
(2)Migration
(3)Removal
140
Tablespace for work item tables and indexes (leave default when not using
tablespaces)[default=WORKITEM] :
[info] You have completed database objects section properties needed for
database scripts generation.
# ll
3. Copy the Oracle-BPC directory and all files inside from the dbDesignFiles
directory to the created directory on the Oracle database host, in this case the
host w70l3ora.boeblingen.de.ibm.com.
4. Start the BPCDB scripts in the created directory on the Oracle host by
executing the following command as user oracle:
sqlplus sys/<password>@ORCL AS SYSDBA @createTablespace.sql
141
SQL*Plus: Release 11.1.0.7.0 - Production on Fri Feb 26 10:58:47 2010
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options
Tablespace created.
Tablespace created.
Tablespace created.
Tablespace created.
Tablespace created.
Tablespace created.
Tablespace created.
Tablespace created.
...
Table created.
Table created.
Table created.
Index created.
Disconnected from Oracle Database 11g Enterprise Edition Release
11.1.0.7.0 - 64bit Production
With the Partitioning option
/WPS70/util/dbUtils/DbDesignGenerator.sh
142
[info] running DbDesignGenerator in interactive mode...
[info] Enter 'q' to quit without saving; '-' for back to previous menu;
'?' for help at any time.
[info] To accept the given default values, simply press the 'Enter' key.
(1)bpc
(2)bpcreporting
(3)bspace
(4)cei
(5)commondb
(6)sibme
(1)DB2-distributed
(2)DB2-iSeries
(3)DB2-zOS-8
(4)DB2-zOS-9
(5)Derby
(6)Oracle
[info] Please enter the values for the properties in the database objects
section.
(1)Configuration
(2)Removal
143
Use tablespaces (true/false)?[default=true] :
Tablespace directory (only needed when using tablespaces)[default=]
:/opt/oracle/oradata/ORCL
Tablespace for Reporting function indexes (leave default when not using
tablespaces)[default=OBSVRIDX] :
Tablespace for Reporting function large objects (leave default when not
using tablespaces)[default=OBSVRLOB] :
Tablespace for Reporting function tables (leave default when not using
tablespaces)[default=OBSVRTS] :
[info] You have completed database objects section properties needed for
database scripts generation.
# ll
total 28
-rw-r--r-- 1 root root 1892 Feb 26 10:38 BPC_Oracle.properties
-rw-r--r-- 1 root root 1760 Feb 26 11:04 BPCReporting_Oracle.properties
-rw-r--r-- 1 root root 1346 Jan 15 14:29 CommonDB_Oracle.properties
-rw-r--r-- 1 root root 2544 Feb 26 11:04 dbDesignGenerator.log
drwxr-xr-x 2 root root 4096 Feb 26 10:38 Oracle-BPC
drwxr-xr-x 2 root root 4096 Feb 26 11:04 Oracle-BPCReporting
drwxr-xr-x 2 root root 4096 Jan 15 14:29 Oracle-CommonDB
144
3. Copy the Oracle-BPCReporting directory and all files inside from the
dbDesignFiles directory to the created directory on the Oracle database host, in
this case the host w70l3ora.boeblingen.de.ibm.com.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options
Tablespace created.
Tablespace created.
Tablespace created.
...
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
Disconnected from Oracle Database 11g Enterprise Edition Release
11.1.0.6.0 - 64bit Production
With the Partitioning option
/WPS70/util/dbUtils/DbDesignGenerator.sh
145
[info] Enter 'q' to quit without saving; '-' for back to previous menu;
'?' for help at any time.
[info] To accept the given default values, simply press the 'Enter' key.
(1)bpc
(2)bpcreporting
(3)bspace
(4)cei
(5)commondb
(6)sibme
(1)DB2-distributed
(2)DB2-iSeries
(3)DB2-zOS-8
(4)DB2-zOS-9
(5)Derby-embedded
(6)Derby-networkServer
(7)Oracle
(8)SQL Server
[info] Please enter the values for the properties in the database objects
section.
[info] You have completed database objects section properties needed for
database scripts generation.
146
To skip data source properties, enter 's'; or enter anything else to
continue :s
# ll
total 36
-rw-r--r-- 1 root root 1892 Feb 26 10:38 BPC_Oracle.properties
-rw-r--r-- 1 root root 1760 Feb 26 11:04 BPCReporting_Oracle.properties
-rw-r--r-- 1 root root 1258 Feb 26 11:58 BSpace_Oracle.properties
-rw-r--r-- 1 root root 1346 Jan 15 14:29 CommonDB_Oracle.properties
-rw-r--r-- 1 root root 2193 Feb 26 11:58 dbDesignGenerator.log
drwxr-xr-x 2 root root 4096 Feb 26 10:38 Oracle-BPC
drwxr-xr-x 2 root root 4096 Feb 26 11:04 Oracle-BPCReporting
drwxr-xr-x 2 root root 4096 Feb 26 11:58 Oracle-BSpace
drwxr-xr-x 2 root root 4096 Jan 15 14:29 Oracle-CommonDB
3. Copy the Oracle-BSpace directory and all files inside from the dbDesignFiles
directory to the created directory on the Oracle database host, in this case the
host w70l3ora.boeblingen.de.ibm.com.
4. Start the BSpace scripts in the created directory on the Oracle host by
executing the following command as user oracle:
sqlplus sys/<password>@ORCL AS SYSDBA @createTablespace.sql
147
SQL*Plus: Release 11.1.0.7.0 - Production on Fri Feb 26 12:08:28 2010
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options
Tablespace created.
User altered.
SQL> commit;
Commit complete.
SQL> exit
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options
Tablespace created.
User altered.
Table created.
Grant succeeded.
148
SQL> commit;
Commit complete.
SQL> exit
...
Index created.
Index created.
Index created.
Index created.
Index created.
Index created.
Index created.
Index created.
1 row created.
SQL> commit;
Commit complete.
SQL> exit
149
Part IV Profile Creation
150
Chapter 7 Create deployment manager profile
7.1 Create the profile
The creation of the profile has to be executed on the deployment manager machine, in
this case the machine W70L3DMG. In our case this step was executed with root user
id. In a production system this step will be done as non-root user.
The first step in building up a WPS cell or cluster is creating a deployment manager
profile. The deployment manager is used to manage the whole cell later on. To create
a deployment manager profile there are two options:
- graphical creation via profile creation tool. (Only available on 32 -bit, on 64-bit
you must use the silent mode)
- silent creation (via response files, as described in this chapter)
You find more information on how to create a profile in both ways by inspecting the
information provided here:
http://publib.boulder.ibm.com/infocenter/dmndhelp/v7r0mx/topic/com.ibm.webs
phere.wps.doc/doc/tins_creating_profiles.html
The parameters we need for silently creating the Deployment Manager profile are
shown below:
create
profileName Dmgr01
profilePath /WPS70/profiles/Dmgr01
hostName w70l3dmg.boeblingen.de.ibm.com
cellName Cell01
nodeName w70l3dmgCellManager01
serverType DEPLOYMENT_MANAGER
ndtopology false
enableAdminSecurity true
adminUserName vmmuser
adminPassword <yourAdminUserPwd>
dbDesignEnabled true
dbDelayConfig true
enableService false
personalCertDN
cn=w70l3dmg.boeblingen.de.ibm.com\\,ou=Cell01\\,ou=w70l3dmgCellManager01\\
,o=IBM\\,c=US
signingCertDN cn=w70l3dmg.boeblingen.de.ibm.com\\,ou=Root
Certificate\\,ou=Cell01\\,ou=w70l3dmgCellManager01\\,o=IBM\\,c=US
personalCertValidityPeriod 1
wbidbDesign /dbDesignFiles/CommonDB_Oracle.properties
signingCertValidityPeriod 15
151
keyStorePassword <yourKeyStorePwd>
templatePath /WPS70/profileTemplates/dmgr.wbiserver
In order to create the deployment manager profile silently a response file which
contains the configuration information for the deployment manager needs to be
created. Navigate to the root folder (/) and create a folder profileRespFiles. In that
folder create file and name it dmgrRespFile.txt. Add the entries from the previous
page to that file, replace the placeholders with the correct values and then save the
file.
7.2 Verification
1. List existing profiles with the following command:
cd /WPS70/bin
./manageprofiles.sh -listProfiles
[Dmgr01]
cd /WPS70/logs/manageprofiles
grep INSTCONFSUCCESS W6201L3MBPMDmgr_create.log
152
7.3 Start and configure the deployment manager
This chapter describes how to start the deployment manager the first time and access
the admin console to configure database settings for Oracle 11g.
1. Start the deployment manager entering the following command in profile directory
<install_root>profiles/Dmgr01/bin:
On w70l3dmg:
cd /WPS70/profiles/Dmgr01/bin
./startManager.sh
Hint: Check the SystemOut.log of the deployment manager process to find out
the correct port for the admin_host. In our scenario the deployment manager
hostname is w70l3dmg.boeblingen.de.ibm.com.
153
7.3.1 Create the authentication alias for XA recovery
This chapter describes how to create the authentication alias for XA recovery. Oracle
need a special userid for recovery. For that we need to create an authentication alias
and set them on the datasources.
Security
-> Global security
-> Java Authentication and Authorization Service
-> J2C authentication data
-> New
4. Click OK
154
Please refer to the Appendix "Save changes and synchronize Nodes" how to do
this.
1. Click WBI_DataSource
155
The "WBI_DataSource" page is displayed:
3. Click Ok
156
In the "Data sources" page:
157
Chapter 8 Create custom profiles
NOTE: This step has to be executed on the machines hosting the servers of this
cluster, in our case this are the machines w70l3n01 and w70l3n02. Make sure to
execute this step with root user id.
- graphical creation via profile creation tool (Only available on 32 -bit, on 64-bit
you must use the silent mode)
- silent creation (via response files, as you have seen it in the prior chapter for
the deployment manager profile)
You find more information on how to create a profile in both ways by inspecting the
information provided here:
http://publib.boulder.ibm.com/infocenter/dmndhelp/v7r0mx/topic/com.ibm.web-
sphere.wps.doc/doc/tins_creating_profiles.html
create
profileName Custom01
profilePath /WPS70/profiles/Custom01
hostName w70l3n01.boeblingen.de.ibm.com
cellName w70l3n01Node01Cell
nodeName w70l3n01Node01
ndtopology false
personalCertDN
cn=w70l3n01.boeblingen.de.ibm.com\\,ou=w70l3n01Node01Cell\\,ou=w70l3n01Nod
e01\\,o=IBM\\,c=US
signingCertDN cn=w70l3n01.boeblingen.de.ibm.com\\,ou=Root
Certificate\\,ou=w70l3n01Node01Cell\\,ou=w70l3n01Node01\\,o=IBM\\,c=US
personalCertValidityPeriod 1
signingCertValidityPeriod 15
keyStorePassword fm07test
dbType Oracle
dbJDBCClasspath /opt/oracle/driver
templatePath /WPS70/profileTemplates/managed.wbiserver
158
create
profileName Custom02
profilePath /WPS70/profiles/Custom02
hostName w70l3n02.boeblingen.de.ibm.com
cellName w70l3n02Node02Cell
nodeName w70l3n02Node02
ndtopology false
personalCertDN
cn=w70l3n02.boeblingen.de.ibm.com\\,ou=w70l3n02Node02Cell\\,ou=w70l3n01Nod
e02\\,o=IBM\\,c=US
signingCertDN cn=w70l3n02.boeblingen.de.ibm.com\\,ou=Root
Certificate\\,ou=w70l3n02Node02Cell\\,ou=w70l3n01Node02\\,o=IBM\\,c=US
personalCertValidityPeriod 1
signingCertValidityPeriod 15
keyStorePassword fm07test
dbType Oracle
dbJDBCClasspath /opt/oracle/driver
templatePath /WPS70/profileTemplates/managed.wbiserver
In order to create the custom profiles silently a response file which contains the
configuration information needs to be created. Navigate to the root folder (/) of the
w70l3n01 and w70l3n02 machines and create a folder profileRespFiles. In that
folder create a file and name it Custom01RespFile.txt (w70l3n01) and
Custom02RespFile.txt (w70l3n02). Add the parameters from above to that files,
then save the files.
On w70l3n01 and w70l3n02 execute the manage profiles command with the proper
response file to create the two custom profiles Custom01 , Custom02:
root:
on w70l3n01:
/WPS70/bin/manageprofiles.sh -response /profileRespFiles/Custom01Resp-
File.txt
on w70l3n02:
/WPS70/bin/manageprofiles.sh -response /profileRespFiles/Custom02Resp-
file.txt
Make sure the Deployment Manager on w70l3dmg is up and running. Then federate
the Custom01 and Custom02 nodes to the deployment manager:
root:
159
on w70l3n01:
cd /WPS70/profiles/Custom01/bin/
./addNode.sh w70l3dmg.boeblingen.de.ibm.com -username vmmuser
-password <password>
on w70l3n02:
cd /WPS70/profiles/Custom02/bin/
./addNode.sh w70l3dmg.boeblingen.de.ibm.com -username vmmuser
-password <password>
160
if all goes right here, too, you should see the following output:
ADMU0116I: Tool information is being logged in file
/WPS70/profiles/Custom02/logs/addNode.log
ADMU0128I: Starting tool with the Custom02 profile
CWPKI0308I: Adding signer alias "CN=w70l3dmg.boeblingen.de.ibm.c" to local
keystore "ClientDefaultTrustStore" with the following SHA
digest:
8B:85:8D:C9:06:FC:FD:0F:F8:94:E3:4F:96:98:99:9A:26:30:C2:0E
CWPKI0308I: Adding signer alias "datapower" to local keystore
"ClientDefaultTrustStore" with the following SHA digest:
A9:BA:A4:B5:BC:26:2F:5D:2A:80:93:CA:BA:F4:31:05:F2:54:14:17
ADMU0001I: Begin federation of node w70l3n02Node02 with Deployment Manager
at
w70l3dmg.boeblingen.de.ibm.com:8879.
ADMU0009I: Successfully connected to Deployment Manager Server:
w70l3dmg.boeblingen.de.ibm.com:8879
...
ADMU0003I: Node w70l3n02Node02 has been successfully federated.
on w70l3n01:
cd /WPS70/bin/
./manageprofiles.sh -listProfiles
[Custom01]
on w70l3n02:
cd /WPS70/bin/
./manageprofiles.sh -listProfiles
[Custom02]
on w70l3n01:
cd /WPS70/logs/manageprofiles
grep INSTCONFSUCCESS Custom01_create.log
on w70l3n02:
161
cd /WPS70/logs/manageprofiles
grep INSTCONFSUCCESS Custom02_create.log
Unlike the deployment manager profile creation, the creation of a WPS profile does not
create a startable server. The servers are created later on when the clusters are
created.
System Administration
-> Node agents.
162
Then verify existence and status of the node agents, they should have status "green":
163
Chapter 9 Enable security
9.1 Configure Federated Repository
This step can be performed at any time after the deployment manager is up and
running. The chosen point of time is right here, to find potential errors in security
settings at an early stage.
WebSphere Process Server offers two approaches to use a Directory Server like IBM
Tivoli Directory Server (LDAP). The first one is using a standalone LDAP repository and
the second one is using a federated repository which will be presented in this
document.
164
The "Global Security" page is displayed:
4. Click Configure
165
The "Federated repositories Configuration" page is displayed:
166
The "Repository reference New" page is displayed:
3. Type in the Primary host name (in our case this is "hobart.boeblingen.de.ib-
m.com")
4. Click Ok
167
The "Repository reference Configuration" page is displayed again:
1. Type in the DN for the realm (in our case this is "o=ibm,c=us")
2. Type in the DN for the base entry (in our case this is "o=ibm,c=us").
3. Click Ok
168
The "Federated repositories Configuration" page is displayed:
2. Click Ok
169
9.2 Enable identity assertion
In a clustered environment, userids have to be propagated across servers in the cell.
To support this, we have to enable "Identity assertation".
3. Click Ok
170
9.2.2 Enable outbound authentication
In the admin console navigate to:
Security
-> Global security
-> Authentication: RMI/IIOP security
-> CSIv2 outbound authentication
2. Click Ok
171
9.3 Verification
To verify the enabled security stop the node agents and the deployment manager and
start them again.
Please refer to the Appendix "Start/stop the deployment manager and the node
agents" on how to start and stop the node agents and the deployment manager.
Then open the administrative console in the browser. When starting the administration
console you are prompted for user ID and password.
http://w70l3dmg.boeblingen.de.ibm.com:9060/admin
3. Click Log In
In the admin console verify that all node agents are shown up and running. Try to
synchronize the nodes to check that secure communication is working well. In the
Admin Console navigate to:
System administration
Nodes
172
Execute a Full Resynchronize:
2. Check that the 2 nodes are displayed and are in the synchronized state
after the resynchronize.
If you do not see all node agents, you were maybe too fast starting the admin
console. Logout and login to the console again and check again.
If they are still missing, check the appropriate log files on the machines for errors at
startup and registering with the deployment manager:
w70l3dmg: /WPS70/profiles/Dmgr01/logs/dmgr
w70l3n01: /WPS70/profiles/Custom01/logs/nodeagent
w70l3n02: /WPS70/profiles/Custom02/logs/nodeagent
173
Part V Basic Cluster (ND7)
174
Chapter 10 Create and configure the deployment
environment
With the deployment environment (DE) we will use a powerful tools that helps us in
creating our WPS Cluster topology. The DE will create all needed clusters and servers
on the cluster for us. Also the messaging and Business Process Choreographer
components are configured. We could do this also "by hand", but with DE we are
much faster.
1. Click New..
175
The "Create new deployment environment" page is displayed:
4. Click New
176
The "Create new deployment environment" page is displayed:
1. Select "WPS"
2. Next
2. Next
177
The "Create new deployment environment" page is displayed:
2. Next
178
The "Create new deployment environment" page is displayed:
1. Make sure for each cluster type, "1" member per cluster and node is con-
figured
2. Next
179
The "Create new deployment environment" page is displayed:
2. Next
180
The "Create new deployment environment" page is displayed:
2. Next
181
The "Create new deployment environment" page is displayed:
1. Fill in the proper database users, schema names and passwords. Make sure
the Provider type "Oracle" is selected and the server hostname is correct.
2. Next
182
The "Create new deployment environment" page is displayed:
1. Make sure "vmmuser" is configured, retype the correct password for vm-
muser for each of the 3 components.
2. Next
183
The "Create new deployment environment" page is displayed:
1. Make sure "vmmuser" is configured, retype the correct password for vm-
muser for each of the 3 authentication points.
2. Uncheck the "Enable e-mail service" box (if you need the e-mail service of
the Human Task Manager component, you can configure it later)
3. Next
184
The "Create new deployment environment" page is displayed:
2. Next
185
The "Create new deployment environment" page is displayed:
186
10.2 Configure deployment environment
NOTE: Before doing the steps below restart the complete cell (Deployment
manager, both nodes)
NOTE: If you do any of the corrections explained below, you have to synchron-
ize and restart the whole cell also to make the changes work.
Security
-> Global security
-> Java authentication and authorization service
-> J2C authentication data
187
1. Verify that BPC_Auth_Alias, SCA_Auth_Alias and CommonEventInfra-
structureJMSAuthAlias are correctly set to "vmmuser"
3. If you are not sure if a password for a userid is correct, you can click the
authentication alias to change/re-enter the password (Note: you have to re-
start the complete cell to make changes work)
Service integration
-> Buses
188
Verify bus security:
189
Open the security panel for each bus by clicking the "Enabled" link. (Shown
here BPC bus). The "Security for bus BPC.Cell01.Bus page is displayed:
4. Click Users and groups in the bus connector role . The authenticated
users/groups on this bus are shown:
190
5. Verify that user "vmmuser" and the group "Server" is shown in the list.
Repeat the steps above for the two SCA buses (SCA.APPLICATION.Cell01.Bus
and SCA.SYSTEM.Cell01.Bus).Use SCA_Auth_Alias as the authentication alias
for the SCA buses.
Repeat the steps above also for the CEI bus (CEI.Cell01.Bus). Use the Com-
monEventInfrastructureJMSAuthAlias as the authentication alias for the
CEI bus.
191
10.2.3 Configure/verify JDBC providers
Ressources
-> JDBC
-> JDBC providers
1. Verify that the JDBC providers shown above have been created.
192
Verify each JDBC providers, to do this click on each JDBC provider to open its
configuration panel (Sample Support cluster JDBC provider):
3. Click Ok
193
10.2.4 Configure/verify data sources
Ressources
-> JDBC
-> Data sources
194
3. After the test, you should see success messages for each datasource on top
of the page:
If you see error messages, check the failing datasource. Maybe the
authentication alias is not set correctly, or the configured authentication alias is
not properly configured (wrong userid or password).
Now we have to enssure, that the BPC, CommonDB, BPC Reporting and ESB data
sources have set the correct Recovery alias (WPS_RECOVERY) created on the data-
base. Remember that on Oracle we need a special permitted user for doing recovery
actions and it's crucial to set this user as the recovery user for the data sources.
In the admin console, navigate to
Ressources
-> JDBC
-> Data sources
195
Select "Business Process Choreographer data source", the datasource detail
page is displayed:
3. Click Ok
196
Repeat this step also for the following data sources:
- Business Process Choreographer reporting function source
- ESBLoggerMediationDataSource
- WBI_DataSource
- Business Space data source
197
10.2.5 Configure/verify SCA configuration
Servers
-> Cluster
-> WebSphere application server clusters
-> WAS70DE.Messaging
-> Service Component Architecture
198
In the admin console, navigate to
Servers
-> Cluster
-> WebSphere application server clusters
-> WAS70DE.AppTarget
-> Service Component Architecture
3. Verify that the remote bus member location points to the "WAS70DE.Mes-
saging" cluster
199
10.2.6 Configure/verify CEI configuration
CEI is a set of modular event processing components that deliver functions such as
event transport, event-bus distribution, event persistence, event subscription, event
updates and event queries. The following block chart depicts the event flow from the
event source to the CEI event server shows the involved components. The next
chapters describe the setup of these components:
(Image Source: SW360 “WebSphere Process Server High Availability, Tuning and Administration” Course Exercises)
The ORCL database contains the tables for the following Buses:
- SCA.SYSTEM.Cell01.Bus - WPS_SCASYSMSG
- SCA.APPLICATION.Cell01.Bus - WPS_SCAAPPMSG
- CommonEventInfrastructure_Bus - WPS_CEIMSG
First we check if CEI has been configured on the Support cluster. In the admin
console, navigate to
Servers
-> Cluster
-> WebSphere application server clusters
-> WAS70DE.Support
-> Common Event Infrastructure
-> Common Event Infrastructure Server
200
Verify CEI configuration
2. Verify that the "Common Event Infrastructure Bus Member Location" is set
to "Remote"
201
The next step is to verify, that the AppTarget cluster uses the CEI configuration on the
Support cluster. In the admin console, navigate to
Servers
-> Cluster
-> WebSphere application server clusters
-> WAS70DE.AppTarget
-> Common Event Infrastructure
-> Common Event Infrastructure Destination
2. Verify that the "Event Infrastructure emitter factory JNDI name" points to
the
"cell/clusters/WAS70DE.Support/com/ibm/events/configuration/emitter/De-
fault"
An application (event source) sends events to the event server though an emitter
object. The emitter factory is used to create emitter objects and to define their
behavior (e.g. asynchronous transmission). To configure this behavior, navigate to:
Service Integration
-> Common Event Infrastructure
-> Event Emitter Factories
-> Default Common Event Infrastructure emitter
202
The "Default Common Event Infrastructure emitter" page is displayed:
In the Event transmission box the selections have the following meaning:
Support event service transmission - Indicates whether events are sent
directly to the event service before control is returned to the event source.
Support JMS transmission - Indicates whether events are sent to a JMS
queue and control returned to the event source before the event is returned to
the event source.
Prefer event service transmission - The transmission mode you want to
use by default when sending event to the event service. Indicates whether
events are sent to a JMS queue and control returned to the event source be-
fore the event is returned to the event source.
203
10.2.7 Configure BPC Event Collector
During the deployment environment configuration, the BPC Event Collector application
has already been installed. For verification purposes it is recommended to modify
some settings, so that Event verification is easier. To do that, log in to the deployment
manager host as user root and execute the following commands to setup the event
collector application:
cd /WPS70/ProcessChoreographer/config
Commands Menu
0) Exit Menu
Your selection: 4
204
Retrieving the application configuration settings of application
'BPCECollector_WAS70DE.Support' ...
Your selection: 1
Your selection: 20
1) BPCEventTransformerEventCount
2) BPCEventTransformerMaxWaitTime
3) BPCEventTransformerToleranceTime
4) ObserverCreateTables
5) ObserverSchemaName
0) Exit Menu
Your selection: 2
Your selection: 1
205
1) BPCEventTransformerEventCount
2) BPCEventTransformerMaxWaitTime
3) BPCEventTransformerToleranceTime
4) ObserverCreateTables
5) ObserverSchemaName
0) Exit Menu
Your selection: 3
Your selection: 1
1) BPCEventTransformerEventCount
2) BPCEventTransformerMaxWaitTime
3) BPCEventTransformerToleranceTime
4) ObserverCreateTables
5) ObserverSchemaName
0) Exit Menu
Your selection: 0
==> yes
Updating the application configuration settings ...
Commands Menu
206
Your selection: 0
207
10.3 Configure/verify host names and corresponding port
numbers
NOTE: Please note that the ports shown here may vary on your system.
First we check the host aliases for the Support cluster members. To check it navigate
to:
Servers
-> Server Types
-> WebSphere application server types
-> WAS70DE.Support.w70l3n01Node01.0
-> Communications
-> Ports
2. These ports need to be added to the host alias list for each node.
208
In the admin console navigate to:
Environment
-> Virtual hosts
-> default host
-> Host aliases
If not already configured, create the following host aliases for the Support cluster
members:
Hostname: Port:
w70l3n01.boeblingen.de.ibm.com 9081 (WC_defaulthost)
w70l3n02.boeblingen.de.ibm.com 9081 (WC_defaulthost)
w70l3n01.boeblingen.de.ibm.com 9444 (WC_defaulthost_secure)
w70l3n02.boeblingen.de.ibm.com 9444 (WC_defaulthost_secure)
Note: To add an host alias click "New", specify hostname and port, then click
"OK"
Servers
-> Server Types
-> WebSphere application server types
-> WAS70DE.AppTarget.w70l3n01Node01.0
-> Communications
-> Ports
Write down the 2 ports like you did it for the Support cluster members.
209
If not already configured, create the following host aliases for the AppTarget cluster
members:
Hostname: Port:
w70l3n01.boeblingen.de.ibm.com 9080 (WC_defaulthost)
w70l3n02.boeblingen.de.ibm.com 9080 (WC_defaulthost)
w70l3n01.boeblingen.de.ibm.com 9443 (WC_defaulthost_secure)
w70l3n02.boeblingen.de.ibm.com 9443 (WC_defaulthost_secure)
210
10.4 Share transaction and recovery logs
In order to enable proper failover handling the transaction and the recovery log of
each cluster member needs to to be shared. Sharing means that the log files can be
commonly accessed by each node/cluster member. This can be achieved by putting
the logs on a shared network drive.
Navigate to:
Servers
-> Server Types
-> WebSphere application server types
-> WAS70DE.AppTarget.w70l3n01Node01.0
-> Container Settings
-> Container Services
-> Transaction Service
1. Enter
/<shared_drive>/tranlogs/WAS70DE.AppTarget.w70l3n01Node01.0
Note: Make sure that folder tranlogs already exists on your shared drive.
211
Repeat the previous step for the remaining cluster members:
212
Navigate to:
Servers
-> Server Types
-> WebSphere application server types
-> WAS70DE.AppTarget.w70l3n01Node01.0
-> Container Settings
-> Container Services
-> Compensation Service
1. Enter
/<shared_drive>/recoverylogs/WAS70DE.AppTarget.w70l3n01Node0
1.0
Note: Make sure that folder recoverylogs already exists on your shared drive.
Repeat the previous step for the remaining application cluster member:
213
Chapter 11 Create CEIDB tables
The CEIDB database scripts were created during the configuration of the deployment
environment in the dircetory
/WPS70/profiles/Dmgr01/databases/event/WAS70DE.Support/dbscripts/oracle.
2. Copy the CEIDB files from the directory above to the created directory on the
Oracle database host, in this case the host w70l3ora.boeblingen.de.ibm.com.
3. Start the CEIDB scripts in the created directory on the Oracle host by executing
the following command as user oracle:
# ./cr_event_oracle.sh
Enter the password for the schema user WPS_CEIDB to be created in the
database.
Retype the password for the schema user WPS_CEIDB to be created in the
database.
Enter the user id for a user that has SYSDBA privileges in the Oracle
database (normally SYS).
sys
Enter the password for the user sys that has SYSDBA privileges in the Or-
acle database. Type none if no password.
ORCL
/opt/oracle/11g
...
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
Commit complete.
Procedure created.
Commit complete.
215
Chapter 12 Verify the deployment environment
12.1 Verify messaging cluster
12.1.1 Verify messaging cluster startup
In the admin console, navigate to:
Servers
-> Clusters
-> WebSphere application server clusters
1. Select WAS70DE.Messaging
2. Click Start
216
Check log file SystemOut.log for WAS70DE.Messaging in directory:
on w70l3n01:
<install_root>/profiles/Custom01/logs/WAS70DE.Messaging.w70l3n01Node01.0
on w70l3n02:
<install_root>/profiles/Custom01/logs/WAS70DE.Messaging.w70l3n02Node02.0
for errors. The following messages should appear in the log files (on one node all
messaging engines (SCA.SYSTEM, SCA.APPLICATION, BPC, CEI) should be "Started",
on the other "Joined"):
217
Note: You can ignore the following error messages on all clusters (if they
appear in your configuration):
00000000 TrustAssociat E SECJ0384E: Trust Association Init Error.
The Trust Association interceptor implementation
com.ibm.ws.security.web.TAMTrustAssociationInterceptorPlus
initialization failed. The error status/exception is -1. If you
receive this error message in association with a trust association
interceptor that you are not using, you can ignore this message.
...
00000000 TrustAssociat E
com.ibm.ws.security.spnego.TrustAssociationInterceptorImpl
initialize CWSPN0009E: SPNEGO Trust Association Interceptor
configuration is not valid. Failure condition:
com.ibm.ws.security.spnego.isEnabled JVM property is false or not
set, no further processing will be done.. If you are not using the
SPNEGO TAI, you can ignore this message.
218
12.1.2 Verify messaging cluster messaging table creation
During the cluster startup, the tables for the messaging engines for SCA should have
been created. To verify that, check in the ORCL database, that new tables have been
created in the users WPS_SCAAPPMSG and WPS_SCASYSMSG.
To verify the table creation in the ORCL database execute the following commands as
user oracle on the database host in this case the w6201l3o.boeblingen.de.ibm.com
for the application ME datastore:
sqlplus WPS_SCAAPPMSG/<password>@ORCL
TABLE_NAME
------------------------------
SIBXACTS
SIBKEYS
SIB002
SIB001
SIB000
SIBLISTING
SIBCLASSMAP
SIBOWNER
SIBOWNERO
9 rows selected.
sqlplus WPS_SCASYSMSG/<password>@ORCL
219
SQL>select table_name from user_tables;
TABLE_NAME
------------------------------
SIBXACTS
SIBKEYS
SIB002
SIB001
SIB000
SIBLISTING
SIBCLASSMAP
SIBOWNER
SIBOWNERO
9 rows selected.
220
12.2 Verify the support cluster
NOTE: Make sure the messaging cluster is already started before executing this
step.
Servers
-> Clusters
-> WebSphere application server clusters
1. Select WAS70DE.Support
2. Click Start
221
Check logs file SystemOut.log for the support cluster members in directory:
on w70l3n01:
<install_root>/profiles/Custom01/logs/WAS70DE.Support.w70l3n01Node01.0/
on w70l3n02:
<install_root>/profiles/Custom02/logs/WAS70DE.Support.w70l3n02Node02.0/
for errors.
Now check that all applications on the support cluster have been started successfully.
To do that navigate to
Applications
-> Application Types
-> WebSphere enterprise applications
222
Verify that the following applications are started:
1. Verify that all applications ending with ".Support" are started successful.
223
12.3 Verify the application target (BPEL) cluster
NOTE: Make sure the messaging and support cluster are already started before
executing this step.
Servers
-> Clusters
-> WebSphere application server clusters
1. Select WAS70DE.AppTarget
2. Click Start
224
Check logs file SystemOut.log for the application target cluster members in
directory:
on w70l3n01:
<install_root>/profiles/Custom01/logs/WAS70DE.AppTarget.w70l3n01Node01.0/
on w70l3n02:
<install_root>/profiles/Custom02/logs/WAS70DE.AppTarget.w70l3n02Node02.0/
for errors.
Now check that all applications on the application target cluster have been started
successfully. To do that navigate to
Applications
-> Application Types
-> WebSphere enterprise applications
225
Verify that all applications are now successfully started:
226
Chapter 13 Install and configure IBM HTTP Server
v7.0
This section describes how to install and configure IBM HTTP Server v7.0 (IHS) within
a clustered environment. Based on the HTTP server Plug-in HTTP and REST requests
are routed to any available cluster member. In case an active cluster member fails
subsequent requests are automatically routed to another active cluster member.
Configuring high availability of the HTTP server is beyond the scope the this
document.
1. A HTTP request for a defined web resource arrives at the HTTP server. Based on the
HTTP Plug-In and a selection algorithm (round robin or random) the request is routed
to any available cluster member. The cluster member chosen handles the request.
227
2. In case the cluster members which served the incoming request fails subsequent
requests are routed to the remaining cluster member.
228
13.0.1 Install the IHS binaries
As user root log in to the deployment manager host and install the IHS binaries by
executing the following command:
cd /<IHSV7_BINARY_ROOT>
./install
1. Press Next
229
The "Software License Agreement" panel is displayed:
1. Select “I accept both the IBM and the non IBM terms” to accept the license
agreement.
2. Press Next .
230
The “System Prerequisties Check” panel is displayed:
2. Press Next .
231
The "Product installation location" panel is displayed:
2. Press Next .
232
The "Port Values Assignment" panel is displayed:
3. Press Next .
233
The “HTTP Admininstration Server Authentication” panel is displayed:
5. Press Next .
234
The “Setup HTTP Server Administration Server” panel is displayed:
2. Select “'Create a unique user ID and group for IBM HTTP Server
administration files”.
5. Press Next .
235
The “IBM HTTP Server Plug-in for IBM WebSphere Application Server” panel is
displayed:
1. Select “Install the IBM HTTP Server Plug-in for IBM WebSphere Application
Server”.
3. Specify the host name of the application server (host name of the
deployment manager).
4. Press Next .
236
The “Installation summary” panel is displayed:
237
After IHS has been installed a status panel is displayed:
1. Press Finish .
238
13.0.2 Configure SSL
Execute following command:
cd /<IHS_INSTALL_ROOT>/bin
./ikeyman
239
The key file creation window is displayed:
4. Press OK .
4. Press OK .
240
The ikeyman utility main window is displayed again:
241
The Self-Signed Certificate configuration panel is displayed:
3. Press OK .
The certificate is displayed in the list of Personal Certificates. Shut down the ikeyman
utility.
242
1. Open httpd.conf (located in <IHS_INSTALL_ROOT>/conf).
Locate the following lines and remove the leading #. Also the key file setting needs to
reference the key file which has been created in the previous step.
LoadModule ibm_ssl_module modules/mod_ibm_ssl.so
Listen 443
<VirtualHost *:443>
SSLEnable
SSLProtocolDisable SSLv2
</VirtualHost>
KeyFile /opt/ihs7/ihskey.kdb (Note: this is the key file that has been
created in the previous step)
243
13.0.3 Add IHS to the WPS cell
The HTTP Server will be defined on an unmanaged node. The advantage of having an
unmanaged node is that the HTTP administrative server can be configured and
utilized. This enables the operator to start and start the IBM HTTP server from within
the integration solutions console (assumed the administrative server is running).
Navigate to:
Administration
-> Nodes
2. Press Next .
244
Specify the basic settings for the unmanaged node:
245
Navigate to
Servers
-> Server Types
-> Web servers
1. Press New
246
Specify the basic settings of the HTTP Server:
1. Specify the node (ihsnode). (Note: This is the unmanaged node which was
specified in the previous step).
2. Specify the HTTP server name (httpserver). (Note: This name needs to corres-
pond to the name of the web server definition which was specified during the in-
stallation of IHS).
4.Press Next
247
Specify the web server template (There is only on pre-selected template):
2.Press Next
248
Specify the web server properties:
5. Specify the HTTP Administration Server port (8008). (Note: this needs to cor-
respond to the port which was specified during the installation of the HTTP Admin-
istration Server).
249
6. Specify the username of the HTTP Administration Server administrator (ihsad-
min). (Note: this needs to correspond to the username which was specified during
the installation of the HTTP Administration Server).
9.Press Next and then Finish. Save and Synchronize the configuration.
The newly created HTTP server appears in the list of available web servers (Note:
the server is stopped).
250
In order to be able to start and and stop the server from within the integration solutions
console the corresponding HTTP Administration Server needs to be started.
Execute following command:
cd /<IHS_INSTALL_ROOT>/bin
./adminctl start
Navigate to
Servers
-> Server Types
-> Web servers
251
Stay at “Servers → Server Types → Web servers”
252
Stay at “Servers → Server Types → Web servers”
1. Select “httpserver”.
253
2. Press Copy to Web server key store directory.
254
Navigate to
Servers
-> Server Types
-> Web servers
255
The Web Applications should now be accessible through the HTTP Server.
BPC Explorer:
https://w70l3dmg.boeblingen.de.ibm.com:443/bpc/faces/pages/Login.jsp
Business Space:
https://w70l3dmg.boeblingen.de.ibm.com:443/bpc/faces/pages/Login.jsp
256
13.0.4 Configure BFM and HTM REST endpoints
Navigate to:
Resources
-> Resource Environment
-> Resource Environment Providers
257
Locate following resources:
resource value
{com.ibm.bpm}BFM.url https://w70l3n01.boeblingen.de.ibm.com:
9443/rest/bpm/bfm/
{com.ibm.bpm}HTM.url https://w70l3n01.boeblingen.de.ibm.com:
9443/rest/bpm/htm/
This can be achieved by selecting the resource and changing the value:
After both resources have been changed save and synchronize the configuration.
258
Part VII Cell Verification
259
Chapter 14 Verify application functionality
Note: Make sure the complete cell with all clusters is started
➢ The event collector application reads event information from the CEI bus and
stores it in the event collector table in the reporting database.
➢ The reporting database is a set of database tables that store the event data.
➢ Periodically the event transformer is triggered, which transforms the raw event
data into a format that is suitable for queries from the Business Process
Choreographer Explorer reporting function.
➢ The Business Process Choreographer Explorer reporting function generates the
reports and performs other actions that the user can initiate using the graphical
user interface (GUI).
260
➢ You can use the GUI to generate your reports. You can also store and retrieve
reports that you have defined.
➢ A cleanup utility can be used to remove records from the observer database,
which can help to improve the performance.
The following constraints apply if you want to configure Business Process
Choreographer Explorer reporting function in a network deployment environment.
• CEI must be configured in your cell.
• As illustrated in the previous figure, the Business Process Choreographer event
collector must be configured on a deployment target where the CEI Event
server is configured. If the CEI Event server is configured on a different cluster
than Business Process Choreographer, you must configure the Business Process
Choreographer event collector on a deployment target where the CEI Event
server is configured. The Business Process Choreographer Explorer reporting
function application does not need to be installed on the same machine as the
event collector.
During the deployment environment configuration the BPC Explorer with the BPC
reporting functionality, as well as the BPC Event Collector application has already been
installed and configured properly. Both applications have been installed on the Support
cluster.
https://w70l3dmg.boeblingen.de.ibm.com/bpc/faces/pages/Login.jsp
Login as:
261
The BPC Explorer application opens:
3. In the "Reports" tab click "Lists -> Processes", add some time to the "To:"
date and click continue. You should get an empty list.
4. In the "Views" tab click "All versions". You should also see an empty list.
5. Click "Logout"
NOTE: If you get any errors or problems, check the System.Out log files on
the clusters WAS70DE.Support and WAS70DE.AppTarget for hints.
262
14.0.2 Deploy the Claims Handling sample application
For an advanced verification of the configuration, download the ClaimsHandling
Sample application from the "Business Process Management Samples" page:
http://publib.boulder.ibm.com/bpcsamp/index.html?
scenarios&scenarios/claimsHandling.html
Navigate to the download section and make sure to download the application for a
clustered environment, that is ClaimsHandlingApp_cluster ear and
ClaimsHandlingJSPApp_cluster ear.
Open the WebSphere Process Server Admin Console to install both ears Navigate to:
Applications
-> Application Types
-> WebSphere Enterprise Applications
1. Press Install
263
2. Select “Local file system” and browse to the ClaimsHandlingApp_cluster
ear file
3. Press Next
264
4. Select “Fast Path”
5. Press Next
6. On the first panel (Step 1: Select installation options) leave the default
settings and press Next.
265
7. Select “WebSphere:cell=Cell01,cluster=WAS70DE.AppTarget”
10. Press Next then Finish. Save and Synchronize the configuration.
266
Start both applications. To do that navigate (in the AdminConsole) to:
Applications
-> Application Types
-> WebSphere enterprise applications
267
14.0.3 Run the Claims Handling sample application
BPC Explorer is opened. The next steps will verify if BPC API, REST API and re-
mote artifact loading is working correctly:
1. Click "Process Templates" --> "Currently Valid". You should now see the
"ClaimsHandlingProcess" in the list:
268
3. Specify a "Process Name" and some input data for "customerNo" (123) and
"claimRecord" (456). Then press Submit
5. Select your process instance and press View Process State. The "Process
State View" should be opened showing the process model of the ClaimsHand-
ling Process:
269
6. Verify that the "CheckClaim" activity (this is a HumanTask) is highlighted
in green (indicating that the process has currently navigated to this activity).
270
7. In the "View" tab click "Task Instances" --> "My To-dos". A task named
"CheckClaim" in state "ready" should be shown now:
9. Select “Compensate” and press Complete. The task disappears from the
“My To-dos” list.
271
10. In the "View" tab click "Process Instances" --> "Administered By Me". The
instance “myProcessName” is now in state “Finished”.
11. Tick the checkbox next to “myProcessName” and press Delete. The in-
stance disappears from the Process Instances list.
272
14.0.4 Verify the Business Space
Open the Business Space:
https://w70l3dmg.boeblingen.de.ibm.com/mum/resources/bootstrap/login.jsp
1. Login with User ID: "vmmuser" and appropriate password. The Busi-
nessSpace start page should be shown.
273
2. After Login, verify that the "vmmuser" is the logged in user (on the top
right)
274
6. On the BusinessSpace start page now click "Go to spaces". The previously
create BusinessSpace should be shown in the list. Select your created Busi-
nessSpace from the list:
275
7. The created (empty) Business Space is displayed. Press Edit Page, the page
(Page 1) will open. In the upper left corner select “Human Task Management
(9)” from the drop down list.
8. Drag both the “Processes List” and the “My Teams's Tasks” widget on the
page. Afterwards, the page should look like this:
276
9. In the upper right corner press Save, then Finish Editing. Since no process
instance is currently active no data is displayed in both widgets. To change
this, open the BPC Explorer again and start another instance of the Claims
Handling process as you did in the previous chapter. Once an instance exists,
refresh both widgets (in the upper right corner of each widget press the small
arrow, in the context menu select “Refresh”).
10. As both widgets get refreshed they display the process data. The “Pro-
cesses List” widget displays the active instance of the Claims Handling process
(Status: in progress), the “My Team's Tasks” widget the Check Claim task that
is currently pending (Status: Available).
11. Once you complete the task within the BPC Explorer (thus finishing the
process instance) refresh the widgets again. The Status of the process in-
stance is now “Finished” , the status of the Check Claim task is in status
“Complete”. Once you delete the finished process instance within the BPC Ex-
plorer and refresh the widgets again, the process and task information disap-
pears.
277
Part VIII Appendix
278
Chapter 15 Appendix
15.1 WPS How To
15.1.1 Save changes and synchronize nodes
The "Save changes" section is displayed on top of a page:
1. Click Review
2. Click Save
279
The "Synchronize changes with Nodes" page is displayed:
2. Click OK
280
15.1.2 Start/stop the deployment manager and the node agents
This section describes how to stop and start the node agents and the deployment
manager. Deployment manager and node agents are the parts of the cell.
2. Click Stop
281
In the admin console navigate to:
System administration
-> Deployment manager
1. Click Stop
Click Ok
282
You can also stop the node agents and the deployment manager by executing the
following commands as user root on the several hosts:
283
15.1.2.2 Start the deployment manager and the node agents
To start the deployment manager and the node agents execute the following
commands as user root on the several hosts:
284
15.2 IHS How To
15.2.1 Starting and stopping the IBM HTTP server
To start the http serverexecute the following commands as user root on the http
host:
cd /<install_root>/bin
./apachectl start
To stop the http serverexecute the following commands as user root on the http host:
cd /<install_root>/bin
./apachectl stop
285
15.3 Oracle How To
15.3.1 Starting and stopping the database listener
This chapter describes now to manage the Oracle database listener.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(HOST=<your_hostname>)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.6.0 -
Production
Start Date 05-DEC-2008 19:45:06
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/11g/network/admin/listener.ora
Listener Log File
/opt/oracle/diag/tnslsnr/fmtc7175/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<your_hostname>)
(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The command completed successfully
Note: The Oracle Listener needs about 1 minute to discover all services.
Trying to connect to a database before all services are discovered will
lead to an ORA error.
286
15.3.1.2 Stopping the database listener
Login the database system as user oracle and execute the following command:
lsnrctl stop
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 05-DEC-2008
19:46:30
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(HOST=<your_hostname>)(PORT=1521)))
The command completed successfully
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(HOST=<your_hostname>)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.6.0 -
Production
Start Date 05-DEC-2008 19:49:13
Uptime 0 days 0 hr. 0 min. 42 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/11g/network/admin/listener.ora
Listener Log File
/opt/oracle/diag/tnslsnr/fmtc7175/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<your_hostname>)
(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "ORCL.<your_hostname>" has 1 instance(s).
Instance "ORCL", status READY, has 1 handler(s) for this
service...
Service "ORCL_XPT.<your_hostname>" has 1 instance(s).
Instance "ORCL", status READY, has 1 handler(s) for this
service...
The command completed successfully
287
15.3.2 Starting and stopping the database
This chapter describes how to start and stop the oracle database ORCL.
SQL>startup
ORACLE instance started.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
Production
With the Partitioning option
SQL>shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
288
15.3.3 Starting and stopping the Oracle Enterprise Manager
Console
This chapter describes how to manage the Oracle Enterprise Manager Console (OEM)
and how to access the OEM website.
289
15.3.4 Resetting a user password in the Oracle database
There is sometimes a need to reset the password for a database user in the Oracle
database.
To reset the password of a database user execute the following commands as user
oracle:
# sqlplus / AS SYSDBA
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options
SQL>
SQL>
290
15.3.5 Compute database statistics
15.3.5.1 Prepare the database
Execute script
sqlplus sys/<password>@<oracle_sid> AS SYSDBA
@$ORACLE_HOME/rdbms/admin/dbmsstat.sql;
Note: The dbms_stats packages are normally created during the database
creation.
291
15.3.6 Work with Redo Log Groups
15.3.6.1 Sizing the Redo Log Groups
The size of the redo log files depends on the database load. The 750 MB of the Oracle
database chapter are only a rule of thumb. It may be, that greater redo log files are
needed.
If a redo log file is full, the database switches to the next redo log file in a round robin
manner. On every log switch the database generates a checkpoint. This is very IO
extensive. So too small log files are downgrading the database performance.
With Oracle 10g a sizing advisor was introduced. A precondition of this advisor is that
the database is on load.
The result of the following SQL statement is the advice for the size in MB of the redo
log files:
You have to execute the statement as user “SYS“ and the role “SYSDBA”.
Therefore connect to the database executing the following command as user oracle:
# sqlplus sys/<password>@<oracle_sid> AS SYSDBA
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options
OPTIMAL_LOGFILE_SIZE
--------------------
nnnn
292
15.3.6.2 Changing the redo log size
The size of a redo log file cannot be changed. You have to delete it and recreate it
with the right size.
Oracle uses the redo log files in a round robin order. So if you have three redo log
files, one is active and two are inactive. You are able to drop a logfile member with the
following command:
In this command you have to change the name and location of the redo log file. When
a redo log member is dropped from the database, the operating system file is not
deleted from disk. Rather, the control files of the associated database are updated to
drop the member from the database structure. After dropping a redo log file, make
sure that the drop completed successfully, and then use the appropriate operating
system command to delete the dropped redo log file.
To drop a member of an active group, you must first force a log switch.
To force a log switch, you must have the ALTER SYSTEM privilege:
293