Customizing the Jazz Team Server and Engineering Lifecycle Management properties files for Db2 on z/OS
You can edit and configure the teamserver.properties files so that the server on z/OS can connect to DB2®. The Jazz® Team Server (JTS) and most of the other IBM® Engineering Lifecycle Management (ELM) applications each have teamserver.properties files that contain server properties. The Lifecycle Query Engine (LQE) and Link Index Provider (LDX) have dbconnection.properties files that can be preconfigured. The Jazz Reporting Service (JRS) does not use Db2 on z/OS.
About this task
- Jazz Team Server (JTS) - @confPath@/jts
- Change and Configuration Management (CCM) - @confPath@/ccm
- Quality Management (QM) - @confPath@/qm
- Requirements Management (RM) - @confPath@/rm
- Data Collection Component (DCC) - @confPath@/dcc
- Global Configuration (GC) - @confPath@/gc
- IBM Engineering Lifecycle Optimization - Engineering Insights (ENI) - @confPath@/relm
On z/OS, the @confPath@ is the path value that was used when customizing the server using the BLZCP* sample jobs, such as /etc/jazz702. On systems other than z/OS, @confPath@ is the installation path for the configuration directory, such as /opt/IBM/JazzTeamServer/server/conf on Linux®.
By default, the teamserver.properties files in those directories are configured to use a Derby repository and data warehouse for reporting. Edit each teamserver.properties file to use Db2 for z/OS according to the instructions in this topic.
-DIS
DDF
command for your Db2 for z/OS
subsystem to display some of the values you need to supply. For example, you can retrieve the
location, ipaddr, and port
(tcpport) from the following display:
DSNL080I -DBC1 DSNLTDDF DISPLAY DDF REPORT FOLLOWS:
DSNL081I STATUS=STARTD
DSNL082I LOCATION LUNAME GENERICLU
DSNL083I DBC1 NET1.DBC1LU -NONE
DSNL084I TCPPORT=5050 SECPORT=5052 RESPORT=5051 IPNAME=-NONE
DSNL085I IPADDR=9.30.243.101
DSNL086I SQL DOMAIN=TVT6012.svl.ibm.com
DSNL105I CURRENT DDF OPTIONS ARE:
DSNL106I PKGREL = COMMIT
DSNL106I SESSIDLE = 001440
DSNL099I DSNLTDDF DISPLAY DDF REPORT COMPLETE
- ipAddress,
- ipPort
- location
- user
- password
- dbname
- schemaprefix
- There can be up to ten repositories: one repository for JTS, one repository for each installed component that has a database (CCM, QM, RM, LQE, DCC, GC, LDX, ENI), and one repository for the data warehouse.
- Each of these repositories must have a unique database name and schema prefix (if they are in a single Db2 z/OS subsystem).
- Each properties file will point to the same data warehouse configuration.
To configure the server or application to use Db2 for z/OS, edit each of the teamserver.properties files in the configuration directories for the Jazz Team Server or other installed ELM application. For example, @confPath@/jts/teamserver.properties and @confPath@/ccm/teamserver.properties files and locate the following lines. This example is for CCM:
# JDBC Repository DB location, specifying this property disables
# system-based selection of default location
# NOTE THAT EVERY APPLICATION INSTANCE AND JAZZ TEAM SERVER
# REQUIRES ITS OWN UNIQUE DATABASE
com.ibm.team.repository.db.vendor = DERBY
com.ibm.team.repository.db.jdbc.location=conf/ccm/derby/repositoryDB
# JDBC Data Warehouse DB location, specifying this property disables
# system-based selection of default location
com.ibm.team.datawarehouse.db.vendor=derby_net
com.ibm.team.datawarehouse.db.jdbc.location=//localhost:1527/conf/jts/derby/warehouseDB
Add
a # in column one to comment out the following properties for both the
com.ibm.team.repository and com.ibm.team.datawarehouse
properties like this:
# JDBC Repository DB location, specifying this property disables
# system-based selection of default location
# NOTE THAT EVERY APPLICATION INSTANCE AND JAZZ TEAM SERVER REQUIRES ITS
# OWN UNIQUE DATABASE
#com.ibm.team.repository.db.vendor = DERBY
#com.ibm.team.repository.db.jdbc.location=conf/ccm/derby/repositoryDB
# JDBC Data Warehouse DB location, specifying this property disables
# system-based selection of default location
#com.ibm.team.datawarehouse.db.vendor=derby_net
#com.ibm.team.datawarehouse.db.jdbc.location=//localhost:1527/conf/jts/derby/warehouseDB
Uncomment
the lines shown in the examples and edit to match the database configuration you created in previous
steps, and also to match your Db2 configuration. Edit the location, user, password, and dbname properties according to your configuration.
- Ensure this line is uncommented:
com.ibm.team.repository.db.vendor = db2z
- In the following line:
replace:com.ibm.team.repository.db.jdbc.location=//ipAddress:ipPort/ location:user=jazzDBuser;password={password};
- ipAddress with your ipaddr.
- ipPort with your tcpport.
- location with the value listed in the DDF report under LOCATION.
- jazzDBuser with the user ID you created, which has appropriate access to the
Db2 database. Note: Do not modify password={password}.
- In the following line:
replace jazzDBpswd with the password for your Db2 z/OS user.com.ibm.team.repository.db.jdbc.password=jazzDBpswd
- In the following line:
replace JAZZDB with the name of the database you created for this component.com.ibm.team.repository.db.db2.dsn.dbname=JAZZDB
- In the following line:
you must remove the#com.ibm.team.repository.db.schemaPrefix=xx
#
and replace xx with a unique prefix for each database in the same Db2 z/OS subsystem.Note: To create several Jazz databases in the same Db2 subsystem, you must differentiate the table owners for the Jazz tables. To do so, the Jazz Team Server uses thecom.ibm.team.repository.db.schemaPrefix
directive to add a prefix to the Jazz Db2 objects so that they are unique within a Db2 subsystem. The prefix set incom.ibm.team.repository.db.schemaPrefix
is added to the owner prefix along with an underscore. For example, theCREATOR
will be modified toJTS702_REPOSITORY
, in a given database whencom.ibm.team.repository.db.schemaPrefix=JTS702
. Ensure a unique reference usingCREATOR
andTABLE
name.
Update the teamserver.properties files for references to the data warehouse on Db2 z/OS.
- Comment out the following properties related to Derby data warehouse configuration (the third
property might not be
listed):
# com.ibm.team.datawarehouse.db.vendor=DERBY # com.ibm.team.datawarehouse.db.jdbc.location=conf/jts/derby/warehouseDB # com.ibm.team.datawarehouse.db.net.port=1527
- Uncomment the following properties and make similar updates as for the repository.
You must add the following property, if it does not exist, to specify a prefix of your choice for the data warehouse tables:#com.ibm.team.datawarehouse.db.vendor = db2z #com.ibm.team.datawarehouse.db.jdbc.location=//ipAddress:ipPort/location:user=jazzDBuser;password={password}; #com.ibm.team.datawarehouse.db.jdbc.password=jazzDBpswd # The database user for whom proper permissions will be granted #com.ibm.team.datawarehouse.report.user = RPTUSER #com.ibm.team.datawarehouse.db.db2.dsn.dbname=DW702 #com.ibm.team.datawarehouse.db.schemaPrefix=DW702X
com.ibm.team.datawarehouse.db.schemaPrefix=DW702X
- In com.ibm.team.datawarehouse.report.user = RPTUSER, enter the report user
for whom the proper permission will be granted. The default is
RPTUSER
.Note: If you use the setup wizard, proper permission will be granted to the report user. If you want to manually grant permissions, this user must be able to do SELECT on the database to view a report.Specifically, when you run the repository tools –createWarehouse or initialize the data warehouse using the setup wizard,RPTUSER
is being granted permission to select from the tables, using statements such as:GRANT SELECT ON DW702.VW_RQST_HISTORY TO $REP_USER;
- com.ibm.team.fulltext.indexLocation=@workPath@/workitemindex
- com.ibm.team.repository.tmpdir=@workPath@/contentservice
- com.ibm.team.scm.tmpdir=@workPath@/contentservice
- com.ibm.team.scm.vcs.tmpdir=@workPath@/versionedcontentservice
# DB2z Configuration. Please configure the following properties
db.vendor=DB2Z
db.location=//@hostname@:@port@/@location@:user=@username@;password={password};
db.password=@password@
db.name=@dbname@
db.schema.prefix=@schema@
Substitute
the variables that have the @ symbols on each side of the variable, such as
db.name=LQE702. The database tables are created when the server is started for the LQE and LDX
applications, not by repository tools commands.Alternatives in defining LOBsin the IBM Redbooks® publication LOBS with DB2 for z/OS: Stronger and Faster.