Replicating the DBC (for a different DBC group) by using a ZDBCssid designation
This procedure can help you determine when to assign a ZDBCssid designation for the non-default DBC group. For example, you could have your test environment use the ZDBCssid designation and your production environment registered as the defaultdbc. You must allocate ZDBCssid when invoking the product CLISTs in order to access the correct LGC product-specific registry datastore for any non-default DBC subsystem.
- Review the section of the installation system reference manual that describes product deployment. In this scenario, you will start by running the $300 series of jobs.Run the $$JCLCPY job to create a new JCL data set for this deployment scenario.
- Review product-specific configuration guides for any set up required for these products to use the DBC and its agents.
- Modify the infrastructure symbolic variables as follows:
- In Symbolic variables contained in $$INCINF member, locate the rows that contain the entry 'Different DBC started task,' 'Different DBC Group,' or 'Different DOMPLEX NAME' in the fourth column.
- Use the symbolic variables in the second table column of those rows.
- Begin running the installation jobs with the $300 series of jobs, as follows:
- (For System and SQL Performance) Review the $310VDOM job. If your original install specified to reuse the DOM VSAM data sets, but you need to create new ones, then contact BMC Customer Support for a sample job.
- (For LGC) If your original install specified to reuse LGC, then you will not have a $310VLGC job. If you are setting up a new LGC registry, you can customize the ALLOC step in the sample job LGC$REGD in the HLQ.LLQSAMP data set.
- Review Controlling-sharing-of-the-RTCS-system-registry and Determining-the-default-DBC-group.
Assume that you have the following environment, and that you want to set up TEST to specify ZDBCssid and let PROD use the default DBC group:
Environment
DBC SSID
DBC GROUP
defaultdbc
XCF Group
REGDSN
TEST
TST1
TESTPLEX
No
TSTPLEX1
BMCPERF.TEST.LGCRGRY
PROD
PRD1
PRODPLEX
Yes
PRDPLEX1
BMCPERF.PROD.LGCRGRY
Consider the following details when running the $400 series of jobs, then start the DBC task as instructed in $450STRT:
- (For NGL) If your original install specified to reuse NGL, then you will not have a $410VNGL job. If you do not have a $410VNGL job and you need to create a new one for this environment, contact BMC Customer Support for a sample.
For TEST, edit DBC$STC (the customized DBC started task in your JCL data set) to add the following DD statement to the PROC, wheressid is your DBC subsystem ID:
//ZDBCssid DD DUMMYFor example, in the TST1 installation on TEST, you would use ZDBCTST1, where TST1 is the DBC SSID. On other LPARS in this group, specify their DBC ID for ssid.
- For a $450STRT job, start the DBC started task.
If your original install specified to reuse LGC, then you will not have a $463LGCD job. You can customize the sample job LGC$REGD in the HLQ.LLQSAMP data set and run the steps that are similar to the ones from $463LGCD mentioned below.
For PROD, run the LGCDFLT step from $463LGCD first to establish it as the defaultdbc.
<register>
<defaultdbc>PRODPLEX</defaultdbc>
</register>If a default DBC has already been registered, an error message will notify you. To replace the existing defaultdbc value with a new one, add the replace attribute to the XML:
<register replace="yes">
<defaultdbc>PRODPLEX</defaultdbc>
</register>For PROD, the LGCRGRP step from $463LGCD is shown in the following example:
<register>
<dbc dbcgroup="PRODPLEX">
<rtcsreg xcfgroup="PRDPLEX1">
<regdsn>BMCPERF.PROD.LGCRGRY</regdsn>
</rtcsreg>
</dbc>
</register>For TEST, the LGCDFLT step from $463LGCD is shown in the following example:
<register>
<defaultdbc>TESTPLEX</defaultdbc>
</register>You are not required to run this step, because PROD will be registered as the default DBC. Running this step will have no effect if a defaultdbc value already exists. The value will not be replaced unless the replace='yes' attribute is in the XML.
For TEST, the LGCRGRP step from $463LGCD is shown in the following example:
<register>
<dbc dbcgroup="TESTPLEX">
<rtcsreg xcfgroup="TSTPLEX1">
<regdsn>BMCPERF.TEST.LGCRGRY</regdsn>
</rtcsreg>
</dbc>
</register>
- Run the $465INIT job.
Edit the $470LGCR and $490RGIM jobs (if generated) and add the following DD statement after PGM=LGCUTIL wheressid is your DBC subsystem ID:
//LGCUTIL EXEC PGM=LGCUTIL,REGION=0M
//ZDBCssid DD DUMMY- Continue running the $400 series jobs in sequential order.
- Run the $500 series jobs (if generated).
- Replicate the installation to other DB2 subsystems using the $700 series of jobs.See Replicating-the-installation-to-other-DB2-subsystems.
- Determine which method you prefer for accessing the product option sets (as explained in Working-with-option-sets):
- (System and SQL Performance products) If you prefer to use the DOMCLIST or SPDCLIST job in the UBMCCLIB data set, complete these steps:
Edit the DOMCLIST or SPDCLIST to change the top of the PROC statement to automatically connect to your DBC subsystem.
Having separate CLISTs for the test and production environments forces TEST to connect with TEST and PROD to connect with PROD. Use the following statement, where domplex is your DOMPLEX option set name:
PROC 0 P('PRD=,DP=domplex') SSID()For example, you could use the following statement for TEST:
PROC 0 P('PRD=,DP=TESTOPT') SSID().(required for any DBC group that was not registered as the default DBC) Add the following allocation to your product CLISTs (DOMCLIST, SPDCLIST, or DOMC) to connect to your LGC component:
ALLOC F(ZDBCssid) DUMMY REUSEAlso, add a FREE statement at the bottom, where ssid is your DBC SSID:
FREE F(ZDBCssid)For example, TEST would use the following statements:
ALLOC F(ZDBCTST1) DUMMY REUSE
FREE F(ZDBCTST1)If you want to use the same CLIST for multiple LPARS, add code similar to the following example, and then use similar IF statements at the end of the CLIST to free the allocation:
IF &SYSNAME=DB2A THEN +
DO
ALLOC F(ZDBCTSTA)DUMMY REU
END
IF &SYSNAME=DB2B THEN +
DO
ALLOC F(ZDBCTSTB)DUMMY REU
ENDIn this example, TSTA is the DBC ssid on LPAR DB2A and TSTB is the DBCssid on LPAR DB2B.
- Execute the DOMCLIST or SPDCLIST (or hyperlink from MainView).
- Navigate to Administration and then DOMPLEX Option Sets to edit and customize your DOMPLEX option set.
If you prefer to use the LGCISPF CLIST in the product UBMCCLIB or UBMCSAMP data set, specify the DBC ssid to use, as shown in the following example:
EX 'BMC.BMCCLIB(LGCISPF)' 'DBC(ssid)'In this example,ssid is the DBC subsystem identifier. The DBC that you specify must be active in the LPAR.
- (System and SQL Performance products) If you prefer to use the DOMCLIST or SPDCLIST job in the UBMCCLIB data set, complete these steps:
- Verify that the products are working correctly:
- Check the DBC log and DBCPRINT for messages to ensure that the product agents are running successfully.
- Invoke the product CLIST (if applicable) or run a batch job to verify that the products are working correctly.