Configuring a Db2 requester to use member-specific access
You can update the CDB of a Db2 for z/OS® requester to use member-specific access.
Before you begin
You should disable sysplex support when configuring a Db2 requester for member-specific access. If you do not disable sysplex support, Db2 Connect uses DRDA workload balancing by default to allocate requests among the members of the group. The database directory should use the member IP address.
Procedure
To enable member-specific access to a remote data sharing group:
Example
The following example provides sample SQL statements for enabling member-specific access that uses DVIPA network addressing. It also shows the results of those statements in the form of table excerpts. This example assumes that a remote data sharing group exists with a Db2 location name of DB2A and three members with DVIPAs V1, V2, and V3. Location aliases that are to be defined are DB2B (with members V1 and V2), DB2C (with members V2 and V3), and DB2D (with member V1).
- These statements define location aliases that identify different
sets of members:
INSERT INTO SYSIBM.LOCATIONS (LOCATION, PORT) VALUES ('DB2B', '446');INSERT INTO SYSIBM.LOCATIONS (LOCATION, PORT) VALUES ('DB2C', '446');INSERT INTO SYSIBM.LOCATIONS (LOCATION, PORT) VALUES ('DB2D', '446'); - These statements map each location alias to the security definitions
for conversations with each set of members:
UPDATE SYSIBM.LOCATIONS SET LINKNAME='ALIASB' WHERE LOCATION='DB2B';INSERT INTO SYSIBM.IPNAMES (LINKNAME) VALUES ('ALIASB')UPDATE SYSIBM.LOCATIONS SET LINKNAME='ALIASC' WHERE LOCATION='DB2C';INSERT INTO SYSIBM.IPNAMES (LINKNAME) VALUES ('ALIASC')UPDATE SYSIBM.LOCATIONS SET LINKNAME='ALIASD' WHERE LOCATION='DB2D';INSERT INTO SYSIBM.IPNAMES (LINKNAME) VALUES ('ALIASD') - These statements map each location alias to the DVIPAs of the
data sharing members in that set:
INSERT INTO SYSIBM.IPLIST (LINKNAME, IPADDR) VALUES ('ALIASB', 'V1')INSERT INTO SYSIBM.IPLIST (LINKNAME, IPADDR) VALUES ('ALIASB', 'V2')INSERT INTO SYSIBM.IPLIST (LINKNAME, IPADDR) VALUES ('ALIASC', 'V2')INSERT INTO SYSIBM.IPLIST (LINKNAME, IPADDR) VALUES ('ALIASC', 'V3')INSERT INTO SYSIBM.IPLIST (LINKNAME, IPADDR) VALUES ('ALIASD', 'V1')
The following table shows an example excerpt of the SYSIBM.LOCATIONS table after the update.
| LOCATION | LINKNAME | PORT |
|---|---|---|
| DB2B | ALIASB | 446 |
| DB2C | ALIASC | 446 |
| DB2D | ALIASD | 446 |
Location aliases are not associated with the DVIPA of a remote data sharing group in a Db2 requester's SYSIBM.IPNAMES table. The following table shows an example excerpt of the SYSIBM.IPNAMES table after the update.
| LINKNAME | IPADDR |
|---|---|
| ALIASB | |
| ALIASC | |
| ALIASD |
The following table shows an example excerpt of the SYSIBM.IPLIST table after the update.
| LINKNAME | IPADDR |
|---|---|
| ALIASB | V1 |
| ALIASB | V2 |
| ALIASC | V2 |
| ALIASC | V3 |
| ALIASD | V1 |
CONNECT TO DB2C;