DB2-z/OS: Running two or more DB2 members on one z/OS LPAR

[] [] [] [] [] [] [] [] []

Related:

  1. DB2-z/OS: Seamless JDBC Database Failover for SAP Java stackSymptom This SAP Note describes how to enable high availability...
  2. DB2-z/OS: DB2 Connect 9.1 JDBC Failover for SAP Java stackSymptom This SAP Note describes how to enable high availability...
  3. DB2-z/OS: Distribution of Java instances to DB2 membersSymptom If you have configured more than one SAP JAVA...
  4. DB2-z/OS: Avoiding automatic recommendations for REORGSymptom With DB2 for z/OS, you can automate the scheduling...
  5. DB2-z/OS: Inconsistent fields with DDIC type RAW/LRAW/VARCSymptom You are requested by a SAP tool or documentation...
  6. DB2-z/OS: Install MS Cluster solutionSymptom You want to install a high availability system for...
  7. DB2-z/OS: Recommended settings for HiperSockets (zLinux)Symptom This note describes the recommended settings for HiperSockets (HS)...
  8. DB6 and DB2/390: Java Database Connectivity (JDBC) traceSymptom A problem occurs in the SAP J2EE Engine. SAP...

Symptom

This SAP Note describes how you can set up a DB2 data sharing group so that two or more members are running on the identical z/OS LPAR.

Other terms

HA Failover z/OS System z DB2 data sharing LPAR

Reason and Prerequisites

Your SAP system is running with DB2 in data sharing mode and DB2 Connect as database client. For remote clients that do not run on z/OS, DB2 clients use the DB2 location name, host name and port number to connect to the DB2 server. The location name and port number are identical for all members of a DB2 data sharing group.

Solution

This section describes the two approaches that you can follow to enable two or more DB2 members to run on the same z/OS LPAR and at the same time to make sure that the connections created by SAP app server are directed to the intended member.
First approach:
===============
You have to define a DDF location alias and DDF port alias that is unique for each DB2 member. For SAP ABAP, you then use the different port aliases in the connect.ini configuration file. For SAP Java, you use the different port aliases in the JDBC connection attribute clientRerouteAlternatePortNumber.
The following is an example how you can use the DB2 utility DSNJU003 to specify the DDF settings.
These are sample settings:
//DSNTLOG EXEC PGM=DSNJU003
//*
//STEPLIB DD DISP=SHR,DSN=
//SYSUT1 DD DISP=OLD,DSN=
//SYSUT2 DD DISP=OLD,DSN=
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
DDF LOCATION=DDFDHA,ALIAS=DHAALIAS:8188,
LUNAME=SAPD0001,PORT=8162,RESPORT=8163
Second approach:
================
Use the TCP PORT statement in the z/OS TCPIP profile to assign a different IP address to the DDF address spaces of the DB2 members. It is crucial to assign this IP address to both the SQL port (DSNJU003 option PORT) and Resync port (DSNJU003 option RESPORT) of DDF.
Example: PORT ……
8188 TCP DHA1DIST BIND 192.168.216.201
8188 TCP DHA2DIST BIND 192.168.216.202
Specify the unique IP address in the JDBC connection property clientRerouteAlternateServername.
For details on the TCP PORT statement, see
http://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.halz001/portst.htm

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Comment