setting up websphere process server 6.1 cluster using deployment environment feature and oracle10g...

23
1 Setting up WebSphere Process Server 6.1 Cluster using Deployment Environment feature and Oracle10g database-Lab Exercise Shahfazal Mohammed, Kiran Kumar Munnanoor Part 1 of 3 Contents ABOUT THIS DOCUMENT......................................................................................................................2  CONFIGURING ORACLE JVM................................................................................................................2  CONFIGURING XA FOR ORACLE..........................................................................................................2  DATABASE USERS/ PRIVILEGES CONSIDERATIONS ..........................................................................3  Common database User (WPSDB).................................................................................................. 3 Business Process Container User (BPCDB) .................................................................................... 3 Business Process Container Observer User (BPCOBS)................................................................... 4 Common Event Infrastructure User.................................................................................................. 4 ESB Message Logger User (ESBLOG)............................................................................................ 4 Messaging engines datastores ........................................................................................................ 4 INSTAL LING WEBSPHERE PROCESS SERVER 6.1 .............................................................................5  UPDATING YOUR WPS 6. 1.0.0 INSTA LLATION TO WPS 6.1.0 .1 ........................................................ 14  

Upload: seshukumar-mathampalli

Post on 03-Apr-2018

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 1/23

1

Setting up WebSphere Process Server 6.1 Cluster using DeploymentEnvironment feature and Oracle10g database-Lab Exercise

Shahfazal Mohammed, Kiran Kumar Munnanoor

Part 1 of 3

Contents

ABOUT THIS DOCUMENT......................................................................................................................2 

CONFIGURING ORACLE JVM................................................................................................................2 

CONFIGURING XA FOR ORACLE..........................................................................................................2 

DATABASE USERS/PRIVILEGES CONSIDERATIONS ......................... ......................... ...................... ..3 

Common database User (WPSDB)..................................................................................................3 

Business Process Container User (BPCDB) ....................................................................................3 Business Process Container Observer User (BPCOBS)...................................................................4 

Common Event Infrastructure User..................................................................................................4 

ESB Message Logger User (ESBLOG)............................................................................................4 

Messaging engines datastores ........................................................................................................4 

INSTALLING WEBSPHERE PROCESS SERVER 6.1 ...................... ......................... ......................... .....5 

UPDATING YOUR WPS 6.1.0.0 INSTALLATION TO WPS 6.1.0.1 ......................... ....................... ........14 

Page 2: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 2/23

2

About this Document

This document can be used to set up WebSphere Process Server 6.1.0.1 Clustered environment using theDeployment Environment feature of the WebSphere Process Server Deployment Manager AdministrativeConsole. The database used for this exercise is Oracle 10g.

The objective of this document is to separate the WebSphere Process Server installation and configuration partfrom the database interaction part (where scripts are run to create the required tables and table spaces). This willallow the WebSphere Process Server install user to finish Installation and Configuration and hand off the scriptsto the DBA who will set up the database tables for the WebSphere Process Server installation.

Also note that this document does not discuss Administrative and Application Security, nor does it discussDatabase or Performance tuning. The main objective of this document is to be a lab exercise in setting up aClustered topology using the WebSphere Process Server administrative console. Refer to the WebSphereProcess Server Information Center for additional information about Security and Database performanceconsiderations:http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r1mx/index.jsp?topic=/com.ibm.websphere.wps.610.doc/wel

come_top_wps.htm 

Configuring Oracle Java™ Virtual Machine (JVM)The Oracle Database needs to have the Oracle JVM (or JServer in 9i terms) enabled. To enable this, you canuse the Oracle Database Configuration Assistant or specific SQL scripts. See the Oracle documentation fordetails.

You can check whether the Oracle JVM/JServer component is installed by invoking the following query fromSQL*Plus, as SYS:

1. (Oracle 9i) describe dbms_java2. (Oracle 10g) select version, status from dba_registry where comp_id='JAVAVM';

In addition, the correct privilege to run Java needs to be granted to each of our users (you will receive XA errors ifyou do not do this). For each user, the Oracle DBA needs to run the following command:

grant javauserpriv to <user>;

This is done later in this article for each database user.

Configuring XA for Oracle

XA is a two-phase commit protocol defined by the X/Open DTP group. The database used by WebSphereProcess Server needs to be XA enabled. To do this, two tasks need to be carried out by your DBA:

The <ORACLE_HOME>/javavm/install/initxa.sql script needs to be run on the WPSDB database. This scriptconfigures the database for XA. More information on this requirement is available from Configuring and using XAdistributed transactions in WebSphere Studio, see the Resources section.

1. The following queries need to be executed:

grant select on pending_trans$ to public;grant select on dba_2pc_pending to public;grant select on dba_pending_transactions to public;grant select on V$XATRANS$ TO PUBLIC;

Note: If the last query fails, it means that the V$XATRANS$ view does not exist. You need to prepare the Oracledatabase for XA transactions recovery by executing the xaview.sql script located under<ORACLE_HOME>/RDBMS/ADMIN.

Page 3: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 3/23

3

sqlplus SYS/xxxxxx@WPSDB @xaview.sql

Additionally, for each user, you will need to grant access to dbms_system (this is done later for each user).

Database Users/Privileges ConsiderationsFor the purposes of this article, we configured everything in a single Oracle database. This is an initialconfiguration, and would probably be modified after reviewing the performance of the databases. Since we are

using the Deployment Environment feature from the administrative console, and will be delaying the execution ofdatabase scripts, we do not need any database access during the WebSphere Process Server installation. Youmay have your DBA create the required users/schemas according to the following table and privileges (with theexception of Common Event Infrastructure (CEI).

Table 1 lists the database schemas that are required for WebSphere Process Server, along with the names usedfor the user IDs (schemas) in the configuration presented in this article.

Table Database TablesSchema/Userid usedin this article

Usual name or defaultname

Purpose of this user

WPSDB WPRCSDB Main Process Server configuration – “CommonDB”

EVENT CEI Common Event Infrastructure configurationSCASYSME First 3 letters of instance

SID + SS00SCA “System” Bus messaging engine data storeconfiguration

SCAAPPME First 3 letters of instanceSID + SA00

SCA “Application” Bus messaging engine data storeconfiguration

CEIME First 3 letters of instanceSID + CM00

CEI messaging engine data store configuration

ESBLOG ESBLOG ESB Messaging Mediation data store configuration

BPCME First 3 letters of instanceSID + BM00

Business Process Container Bus data storeconfiguration

BPCDB First 3 letters of instanceSID + BE00

Business Process Container configuration

BPCOBS First 3 letters of instanceSID + BC00 Business Process Observer

Have your DBA create the above users according to the privileges below. Note that the ‘CREATE/GRANT’commands below assume it is the DBA that is running these commands.

Common database User (WPSDB)The Process Server configuration database user, WPCDB, has no special requirements other than it must exist.To create it, your DBA needs to run a command equivalent to the following:

create user WPSDB identified by passw0rd;grant connect, resource, unlimited tablespace to WPSDB;

grant execute on dbms_system to WPSDB;grant javauserpriv to WPSDB;

The above commands use the system’s default tablespace; your DBA may wish to specify a different tablespaceand this is fine.

Business Process Container User (BPCDB)To create the Business Process Container database user, the DBA needs to run a command similar to:

create user BPCDB identified by passw0rd;grant connect, resource, create tablespace, drop tablespace, create view, unlimited tablespace to BPCDB;grant execute on dbms_system to BPCDB;

grant javauserpriv to BPCDB;

Page 4: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 4/23

4

Business Process Container Observer User (BPCOBS)create user BPCOBS identified by passw0rd;grant connect, resource, create tablespace, drop tablespace, create view, unlimited tablespace to BPCOBS;grant execute on dbms_system to BPCOBS;grant javauserpriv to BPCOBS;

Common Event Infrastructure (CEI) UserConfiguring CEI generates a whole set of scripts that include actions to create tablespaces, roles and a CEI userbased on the database information provided during configuration. These scripts may be handed off to the DBA forexecution as some of the scripts need DBA-like privileges for creating the user and linking the roles andtablespaces to this user.

ESB Message Logger User (ESBLOG)The ESBLOG.MSGLOG table is used by the Message Logger ESB primitive to log messages.

create user ESBLOG identified by passw0rd;grant connect, resource, unlimited tablespace to ESBLOG;grant execute on dbms_system to ESBLOG;grant javauserpriv to ESBLOG;

Messaging engines DatastoresThe same table names (SIB000, SIB001, etc.) are used by each messaging engine; therefore, you need to use a

specific schema (user) for each messaging engine.

create user SCASYSME identified by passw0rd;grant connect, resource, unlimited tablespace to SCASYSME;grant execute on dbms_system to SCASYSME;grant javauserpriv to SCASYSME;

create user SCAAPPME identified by passw0rd;grant connect, resource, unlimited tablespace to SCAAPPME;grant execute on dbms_system to SCAAPPME;grant javauserpriv to SCAAPPME;

create user CEIME identified by passw0rd;

grant connect, resource, unlimited tablespace to CEIME;grant execute on dbms_system to CEIME;grant javauserpriv to CEIME;

create user BPCME identified by passw0rd;grant connect, resource, unlimited tablespace to BPCME;grant execute on dbms_system to BPCME;grant javauserpriv to BPCME;

Page 5: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 5/23

5

Installing WebSphere Process Server 6.1

 ____ 1. Once the database users are set up, we will install WebSphere Process Server 6.1.0.0, upgrade to

WebSphere Process Server 6.1.0.1 and create a Deployment manager (DMGR) and a Customnode, federate the Custom node to the DMGR and use the administrative console to set up theClustered topology. 

Important Note: At the time of writing this document, WebSphere Process Server 6.1.0.1 was released and itis highly suggested that users upgrade to the latest fix pack available and install the latest critical fixesavailable, as well. 

 ____ 2. Select the I accept the terms in the license agreement option button and click Next.

Page 6: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 6/23

6

 ____ 3. After the System Prerequisites check passes, hit Next.

Page 7: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 7/23

7

 ____ 4. Select Install a new copy of WebSphere Process Server and click Next.

Page 8: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 8/23

8

 ____ 5. Select Typical Installation and click Next.

Page 9: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 9/23

9

 ____ 6. Type a directory to install WebSphere Process Server 6.1. Make sure that the path name is shortand contains no spaces. For the rest of this lab, we will assume our installation location isC:\WPS61.

Page 10: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 10/23

10

 ____ 7. In the WebSphere Process Server Environments window, select None.

 ____ 8. Click Next. A warning window will pop up and inform you WebSphere Process Server requires atleast one profile to be function. Click Yes to continue the installation.

Note: What we want to do is install the WebSphere Process Server binaries first and then go about

creating the DMGR and other profiles later.

Page 11: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 11/23

11

 ____ 9. Review the summary information and click Next.

Page 12: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 12/23

12

 ____ 10. The Websphere Application Sever and WebSphere Process Server will begin installing. Pleasebe patient, this installation can take between 15-45 minutes.

Page 13: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 13/23

13

 ____ 11. When the installation finishes, review the installation results and click Finish.

Page 14: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 14/23

14

Updating your WebSphere Process Server 6.1.0.0 installation toWebSphere Process Server 6.1.0.1

At the time of writing this document WebSphere Process Server fix pack 6.1.0.1 has been released. For moreinformation, refer to: http://www.ibm.com/support/docview.wss?rs=2307&uid=swg24018733 For the purpose of

this document, we will update our WebSphere Process Server 6.1.0.0 installations to WebSphere Process Server6.1.0.1

 ____ 1. Download the latest WebSphere Process Server V6.1.0 Fix Pack 1 (6.1.0.1) from:http://www.ibm.com/support/docview.wss?rs=2307&uid=swg24018733 Unzip this to a temporarylocation. Make a note of this temporary location. You should see 3 .pak files after you unzip the FixPack.

 ____ 2. Download the latest Update Installer for WebSphere Application Server V6.0.2.21 (onward) andV6.1 from: http://www.ibm.com/support/docview.wss?rs=180&uid=swg24012718 Make sure youscroll down until you see the ‘Download Package’ table for the different platforms and downloadthe correct version. Unzip this to a temporary location and install the Update Installer program byrunning the ‘install.exe’ program. Install this to a folder location of your choice.

 ____ 3. Start the Update Installer program by running update.bat from under the folder you installed theUpdate Installer program to. Make sure the version in the title bar says 6.1.0.15

Page 15: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 15/23

15

 ____ 4. Click Next and select the WPS installation that you want to update (C:\WPS61 for this document)

Page 16: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 16/23

16

 ____ 5. Click Next and select the ‘Install Maintenance Packages’ option

Page 17: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 17/23

17

 ____ 6. Click Next and then select the top level folder location of where you unzipped the Fix Pack f iles intofrom Step 1 above (F:\dwnloads\6.1.0-WS-WPS-ESB-WinX32-FP0000001 in this case. This folderhas 3 .pak files)

Page 18: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 18/23

18

 ____ 7. Click Next and by default all the maintenance packages in the Fix Pack should have been selected

for installation. You will need to install all of these packages.

Page 19: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 19/23

19

 ____ 8. Click Next and after Prerequisite check, you should see an Installation Summary screen

Page 20: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 20/23

20

 ____ 9. Click next to start off the updates installation process.

Page 21: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 21/23

21

Page 22: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 22/23

22

 ____ 10. Once the Installation is complete, you should see the above screen if the update process wassuccessful. Click Finish to exit the Update Installer.

Page 23: Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab Exercise_part1 of 3

7/28/2019 Setting Up Websphere Process Server 6.1 Cluster Using Deployment Environment Feature and Oracle10g Db _Lab…

http://slidepdf.com/reader/full/setting-up-websphere-process-server-61-cluster-using-deployment-environment 23/23

23

 ____ 11. Go to the bin directory of the WPS product (C:\WPS61\bin) in this case and run versionInfo.bat tomake sure the version information shows up correctly.

 ____ 12. At this point you have the latest fix pack applied to your WebSphere Process Server installation.