Manually upgrading the database on Db2 for z/OS from 11.6.0.1 to 11.6.0.2
Follow the steps to upgrade the version 11.6.0.1 InfoSphere® MDM database to the version 11.6.0.2 InfoSphere MDM database on DB2® for z/OS®.
Before you begin
If applicable, upgrade your MDM database from version 11.6.0.0 to version 11.6.0.1 before beginning this procedure.
Procedure
-
To connect to Db2 for OS/390® and z/OS server from a Db2
Linux®, UNIX, or Windows server, Db2
Connect must be installed on the server you are connecting from. Enterprise editions contain
Db2 Connect. To connect to the database, enter the
following information:
- Host name or IP address
- Db2 port (default = 446)
- Database name
- Subsystem location name
- User ID and password
-
On the client server, catalog the database by running the following commands in this
order:
-
db2 catalog tcpip node YOUR_NODE_NAME remote Z/OS_HOSTNAME/IP_ADDRESS server Z/OS_PORT
-
db2 catalog db YOUR_DB_NAME at node YOUR_NODE_NAME authentication dcs
-
db2 catalog dcs db YOUR_DB_NAME as Z/OS_LOCATION_NAME
-
-
If you are using this user ID to connect to the Db2
subsystem for the first time, rebind the packages for the database by following either of these
steps:
-
Rebind all the packages by running the command:
db2rbind YOUR_DB_NAME all /u USER_NAME /p PASSWORD /r any
-
Rebind individual packages by running the command:
db2 bind package_name
-
Rebind all the packages by running the command:
-
Change the placeholder tags in the all of the scripts:
- Replace
<DBA_ACCOUNT>
with the user ID of the database administrator. - Replace
<USER_ACCOUNT>
with the user ID of the table owner. - Replace
<db_prefix>
with the three character database prefix. - Replace
<STOGROUP_NAME>
with the storage group name. - Replace
<SCHEMA>
with the schema name, in uppercase characters.
- Replace
-
From the upgrade folder, run the following scripts using the command format
db2 -tvf script_name -1 log_file_name
Important: You must run the scripts in the order that they are listed.db2 -tvf alter_tables_zos.sql -1 log_file_name db2 -tvf populate_grouping_display_name_zos.sql -1 log_file_name
- alter_tables_zos.sql modifies existing table definitions.
- populate_grouping_display_name_zos.sql populates values for the DISPLAY_NAME column in the GROUPING table.
-
Verify whether your implementation of InfoSphere MDM uses simple
triggers or compound triggers, then run the following scripts to upgrade the triggers, using the
following command format:
db2 -v -td@ -f script_name -1 log_file_name
- If your system uses simple triggers:
- Run CreateTriggers_simple.sql to create simple triggers for updates.
- Run CreateTriggers_delete_simple.sql to create simple triggers for deletions.
- If your system uses compound triggers:
- Run CreateTriggers_compound.sql to create compound triggers for inserts and updates.
- Run CreateTriggers_delete_compound.sql to create compound triggers for deletions.
- If your system uses simple triggers:
- Navigate to the MDM_INSTALL_HOME/database/Upgrade/11.6.0.2/Level-I/DB2/ZOS/ddl directory.
-
In the folder name,
CODE_LANG
is the language that is currently installed.Note: If any of the directories are empty, no data was generated and you do not need to run the scripts.- MDM_INSTALL_HOME/database/Upgrade/11.6.0.2/Level-I/DB2/ZOS/ddl/data_req_CODE_LANG/data
- MDM_INSTALL_HOME/database/Upgrade/11.6.0.2/Level-I/DB2/ZOS/ddl/data_CODE_LANG/data-industry
- MDM_INSTALL_HOME/database/Upgrade/11.6.0.2/Level-I/DB2/ZOS/ddl/data_opt_CODE_LANG/data
If you are loading English data only, set the CODE_LANG to en. Otherwise, set the CODE_LANG to the language code of the language you are loading.
-
To load the common data from the command line, run the scripts in the MDM_INSTALL_HOME/database/Upgrade/11.6.0.2/Level-I/DB2/ZOS/ddl/data_req_en/data
directory. Use the command:
db2 -tvf script_name-l log_file_name
:- The insert.sql script inserts new data.
- The update.sql script updates existing table data.
- The delete.sql script deletes obsolete table data.
-
To load the English industry data from the command line, run the scripts in the MDM_INSTALL_HOME/database/Upgrade/11.6.0.2/Level-I/DB2/ZOS/ddl/data_en/data-industry
directory. Use the command:
db2 -tvf script_name -l log_file_name
:- The insert.sql script inserts new data.
- The update.sql script updates existing table data.
- The delete.sql script deletes obsolete table data.
-
If you are loading industry data for a language other than English, from the command line, run
the scripts in the MDM_INSTALL_HOME/database/Upgrade/11.6.0.2/Level-I/DB2/ZOS/ddl/data_CODE_LANG/data-industry
directory.
Use the command:
db2 -tvf script_name -l log_file_name
- The insert.sql script inserts new data.
- The update.sql script updates existing table data.
- The delete.sql script deletes obsolete table data.
-
If you are loading code table data for a language other than English, from the command line,
run the scripts in the MDM_INSTALL_HOME/database/Upgrade/11.6.0.2/Level-I/DB2/ZOS/ddl/data_opt_CODE_LANG/data
directory. Use the command:
db2 -tvf script_name -l log_file_name
:- The insert.sql script inserts new data.
- The update.sql script updates existing table data.
- The delete.sql script deletes obsolete table data.
- Repeat the previous step for each non-English language that is installed.