Migrating from IBM Z Software Asset Management 8.2 to IBM Z Software Asset Management 9.1 ( Db2 database)
Before you begin
Make a backup of your 8.2 Repository database by running job HSISUT01 from your 8.2 JCLLIB, or equivalent in-house backup job.
Make a backup or rename your JCLLIB and PARMLIB data sets.
Migration planning and consideration:- If your existing 8.2 Repository database (including LKB/LKU) and GKB use different schema names, then you need to modify the migration jobs to suit your site requirements.
- If you have multiple
8.2
repositories sharing the same
8.2
GKB database, you need to phase the migration process.
- A 9.1 repository must use a 9.1 GKB.
- An
8.2
repository must use an
8.2
GKB.Note:IBM Z Software Asset Management 9.1 code fails when accessing an 8.2 GKB database, due to newly defined 9.1 objects.For example, if you have 8.2 repositories REP1, REP2, REP3, and REP4 sharing the same 8.2 GKB, then migrate as follows:
- To migrate the first repository, REP1, in 9.1 customization
job HSISCUST, create a new 9.1 GKB database. For example, GKB91:
- Customize parameters DBGKB and GKBZSCHM with different names from those used in 8.2 GKB database. Repository parameter settings and values remain the same.
- Migrate REP1 and GKB database (GKB91) to 9.1 at the same time. Operational jobs for repository REP1 must now reference the 9.1 load library hsi.SHSIMOD1.
- The remaining REPs continue to run at 8.2 , with operational jobs still referencing the 8.2 load library hsi.SHSIMOD1. These REPs continue to use the 8.2 GKB database (GKB82)
- Gradually migrate the remaining three repositories without creating another 9.1 GKB (GKB91).
- Once all REPs are migrated and are using the 9.1 GKB database (GKB91), the 8.2 GKB (GKB82) database can be dropped.
- To migrate the first repository, REP1, in 9.1 customization
job HSISCUST, create a new 9.1 GKB database. For example, GKB91:
- If each repository has its own GKB, then migrate the Repository database, GKB database, and hsi.SHSIMOD1, to 9.1, all at the same time.
- Housekeeping:
Perform housekeeping on the 8.2 Repository database before you start your migration process. This reduces the time required to migrate all the data.
- HSISLDEL - If you have any obsolete LPARs in the repository, you should delete the obsolete LPARs by running job HSISLDEL.
- HSISPDEL - TMODULE is one of the largest tables, and it contains modules of which a huge percentage are in-house programs. To delete obsolete modules, (especially in-house programs), refer to job HSISPDEL. You need to define a date range for deletion and a sample SQL statement is provided in the job to list date ranges. HSISPDEL deletes modules based on any load libraries that have been marked as deleted.
- HSISUDEL- TUSEMTD is the largest table. Performing housekeeping on
this table should be part of best practices. To determine the status of
this table, run the following SQL statement:
SELECT FPERIOD, COUNT(*) FROM &RESPZSCHM.TUSEMTD GROUP BY FPERIOD ;Following, in the Usage Deletion job HSISUDEL, select the date range for deletion. Follow the instructions in the job. If you have not used deletion before, delete Usage records in increments. Do this for all LPARs. Then run the SQL statement again to check the number of outstanding records in TUSEMTD.
A good guideline on the number of records to be retained is to run HSISUDEL monthly for all LPARs with a fixed set of parameter settings:
KEEPDETAIL=3(or 6) KEEPAGGR=12This will retain detailed Usage records for the current month and the previous 3 (or 6) months, and summarized records for the current month and the previous 12 months.
- Continue to run your 8.2 Usage Monitor job/started task (HSISUMON/HSIJMON ) , but stop the Analyzer, and do not run any 8.2 operational jobs during the migration.
About this task
Perform these migration tasks for every Db2 Repository in your IBM Z Software Asset Management environment.
Procedure
-
In 9.1, make a copy of the HSISCUST member in the
hsi.SHSISAMP data
set and modify the following parameters:
- Submit the HSISCUST job. DO NOT share members of JCLLIB/PARMLIB between 8.2 and 9.1. Some member names may be the same, but the contents differ.
- Edit and update jobs in the JCLLIB library and parameters in the PARMLIB library if there are special site requirements.
-
Run the following migration jobs:
-
Backup 9.1
- HSISUT01 – run the 9.1 job to backup all Repository, LKB and LKU UTS.
- HSISUT04 – submit this job to run RUNSTATS for the 9.1 repository.
-
HSISDB02 –
Submit this job to drop and create a new GKB database and its dependent
objects.
- If you are creating a new 9.1 GKB database with different GKBDB/GKBZSCHM names, just submit the job. This creates a new 9.1 GKB database and its dependent objects. Use this approach if you have multiple 8.2 repositories sharing the same 8.2 GKB database. See Migration planning and consideration, step 3.
- If you are creating the 9.1 GKB database where the GKBDB/GKBZSCHM have
identical names to
8.2
, then
uncomment step
//*DROPGKB. This will drop the 8.2 GKB database and create a new 9.1 GKB database with the same GKBDB/GKBZSCHM names as 8.2 . - IBM Z Software Asset Management 9.1 GKB has new database objects defined in the GKB database.
- Upon successful completion of the job, proceed to the next job.
- A condition code of 0 is expected.
-
Run the HSISDB04 job
to create the Notifications database and database objects.
- Upon successful completion of the job, proceed to the next job.
- A condition code of 0 is expected.
-
HSISGKBL –
Submit this job to populate the newly created 9.1 GKB database.
A GKB level is shipped with this migration. To download the latest GKB level, see Updating the Global Knowledge Base.
A condition code of 0 is expected.
- HSISGRTB – Optional. Submit this job to grant privileges to users that require SELECT access to newly created 9.1 tables.
-
Recovery
- If failures occur during the migration, and a recovery is required, run the 8.2 job HSISUT02, to recover using the backup copy created just before the start of migration.
What to do next
After migration, use the following approach to manage the implementation to the latest version:
-
You must apply the latest GKB update. This will ensure that all product identifications are up to date when you run the Inquisitor Import job, HSISIQIM. For each repository, run HSISIQIM for all LPARs before you run any Usage Import (HSISUIMP) jobs . You can continue to use existing 8.2 Inquisitor fully-scanned files as inputs for the 9.1 HSISIQIM Inquisitor Import job.Note:Job HSISIQIM will fail if the GKB level used is older than 12 months.
- For each repository, run the HSISIQIM job for every LPAR with setting of FULLREMATCH=Y. For performance reasons, exclude the Aggregator job step, except for the last HSISIQIM job. Please read the comments in the "Performance consideration" section of job HSISIQIM before you proceed.
- For the last HSISIQIM
job, update the Aggregator jobstep with COUNTUSAGEFULL=Y. For
example:
//AGGR EXEC HSIJSQLE,PROG=HSICTLAG,TPARAM=HSISAGP1 //USERPARM DD * COUNTUSAGEFULL=YRun the last HSISIQIM job with COUNTUSAGEFULL=Y for the Aggregator jobstep.
- After running the last HSISIQIM job, in the Aggregator jobstep, set COUNTUSAGEFULL=N (the default setting).
- Repeat steps 1 to 4 for the next repository.
- Before you run any Usage Import job, HSISUIMP, you must run
the Inquisitor Import job, HSISIQIM, for
all LPARS (as described in step 1). Failure to complete running the
Inquisitor Import job (HSISIQIM) for all
LPARs before you start running Usage Import (HSISUIMP) could result
in errors during the Aggregator jobstep due to the product identifications not
being up-to-date.
- For each repository, run the HSISUIMP job for every LPAR. For performance reasons, exclude the Aggregator jobstep, except for the last HSISUIMP job. Please read the comments in the "Performance consideration" section of job HSISUIMP before you proceed.
- For the last HSISUIMP job,
update the Aggregator jobstep with COUNTUSAGEFULL=Y. For example:
Run the last HSISUIMP job with COUNTUSAGEFULL=Y for the Aggregator jobstep.//AGGR EXEC HSIJSQLE,PROG=HSICTLAG,TPARAM=HSISAGP1 //USERPARM DD * COUNTUSAGEFULL=Y - After running the last HSISUIMP job in the Aggregator jobstep, set COUNTUSAGEFULL=N (the default setting).
- Repeat steps 6a through 6c for the next repository.
- Configure APF authorization for the 9.1 hsi.SHSIMOD1 load library.
- You can run 9.1 operational jobs and discontinue
8.2
tasks once the 9.1 Inquisitor scans and Usage Monitors are ready for use.
- Review the settings in the Inquisitor scan jobs, before
submissions:
HSISINQU – PACK=1 (default)
HSISINQZ – PACK=1 (default)
- Before starting HSISUMON,
review parameters:
PARMLIB member HSISMNPM – different parameters and default values.
- HSISZCAT –
different parameters and default values:
Parameters 'JNM=Y,UID=Y,JAC=Y' are now the default.
- HSISIQIM – parameter COUNTUSAGE = N is now the default.
- HSISUIMP – parameter COUNTUSAGE = N is now the default.
- Review the settings in the Inquisitor scan jobs, before
submissions: