Manually upgrading the database on DB2 for z/OS from 11.4 to 11.5
Follow the steps to upgrade the version 11.4 InfoSphere® MDM database to the version 11.5 InfoSphere MDM database on DB2® for z/OS®.
Before you begin
If applicable, upgrade your MDM database from version 11.3 to version 11.4 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 script to create
indexes for the existing tables:
db2 -tvf create_ix_zos.sql -1 log_file_name
- Navigate to the MDM_INSTALL_HOME/database/Upgrade/11.5.0/Level-I/DB2/ZOS/ddl directory.
- In the folder name,
CODE_LANG
is the language that is currently installed. If you are loading English data only, setCODE_LANG
to en. Otherwise, setCODE_LANG
to the language code of the language you are loading.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.5.0/Level-I/DB2/ZOS/ddl/data_req_CODE_LANG/data
- MDM_INSTALL_HOME/database/Upgrade/11.5.0/Level-I/DB2/ZOS/ddl/data_CODE_LANG/data-industry
- MDM_INSTALL_HOME/database/Upgrade/11.5.0/Level-I/DB2/ZOS/ddl/data_opt_CODE_LANG/data
- To load the common data from the command line, run the
scripts in the MDM_INSTALL_HOME/database/Upgrade/11.5.0/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.5.0/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.5.0/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.5.0/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.
- From the command line, run the command:
db2 -tvf ImpReqDataCfgMgr_zos.sql -l log_file_name
. - From the command line, run the command:
db2 -tvf QryUpdCfgMgrData_zos.sql -l log_file_name
.