Migrating from HCL Z Asset Optimizer 2.2 to HCL Z Asset Optimizer 9.1 (SQLite database)
Before you begin
Make a backup of your 2.2 Repository database by running job HZASUT01 from your 2.2 JCLLIB.
Make a backup or rename your JCLLIB and PARMLIB data sets. HCL Z Asset Optimizer 9.1 uses the same dataset names for JCLLIB and PARMLIB.
Migration planning and consideration:
- If your existing 2.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.
- Each SQLite repository with its own GKB and also its own hza.SHZAMOD1 load library should all be migrated to 9.1 at the same time. An 9.1 hza.SHZAMOD1 load library cannot be used by an 2.2 repository.
Housekeeping:
Perform housekeeping on the 2.2 Repository database before you start your migration process. This reduces the time required to migrate all the data.- HZASLDEL - If you have any obsolete LPARs in the repository, you should delete the obsolete LPARs by running job HZASLDEL.
- HZASPDEL - TMODULE is one of the largest tables containing modules of which a huge percentage are in-house programs. To delete obsolete modules (especially in-house programs), refer to job HZASPDEL. You need to define a date range for deletion, and a sample SQL statement is provided in the job to list date ranges. HZASPDEL deletes modules based on any load libraries that have been marked as deleted.
- HZASUDEL - 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 HZASUDEL, select the date range for deletion. Follow the instructions in the job. If you have not used deletion before, you should 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 HZASUDEL 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 Usage Monitor job/started task (HZASUMON/ HZAJMON), but stop the Analyzer, and do not run any 2.2 operational jobs during the migration.
About this task
Perform these migration tasks for every SQLite Repository in your HCL Z Asset Optimizerenvironment.
Procedure
-
In 9.1, make a copy of the HZASCUST member in the
hza.SHZASAMP data
set and modify the following parameters:
- Set the value of the DBTYPE parameter to SQLITE.
- Set HZAINST to the same value as the one defined for the existing 2.2 system. As stated in the section, “Before you begin”, it is imperative that you either backup or rename copies of 2.2 JCLLIB/PARMLIB datasets.
- Set the value of the SYS parameter to the same system that is defined for your existing 2.2 Repository database.
- Set the value of the REPZSCHM parameter to the same value that is defined for your 2.2 Repository database.
- Set the value of the new GKBZSCHM parameter to the same value that is defined for your 2.2 GKB database
- Add the value of the NOTFSCHMparameter.
- Set the value of the SQLTZFS parameter to the same value that is defined for your 2.2 zFS linear VSAM data set
- Set the value of the SQLTPATH parameter to same value that is defined for your 2.2 path of the z/OS UNIX for Systems Services directory
-
Submit the HZASCUST
job. The JCLLIB/PARMLIB datasets created use the same names as those created in
2.2. The same dataset names for JCLLIB/PARMLIB must be used in 9.1 because of the
relationships between the high level qualifier HZAINST parameter and
the SQLTZFS/SQLTPATH parameters.
- SQLTZFS = '&HZAINST..&SYS..ZFS'
- SQLTPATH = '/u/tadz/&SQLTZFS'
- 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:
-
HZASDB02–
Submit this job to drop and create a new GKB database and its dependent objects.
Before submitting this job, uncomment step //*DROPGKB. This will drop the
2.2 GKB database and create a new 9.1 GKB database. HCL Z Asset
Optimizer
9.1 GKB has new database objects defined in the GKB database.
A condition code of 0 is expected.
-
HZASDB04 - Run
this 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.
-
HZASGKBL – Run
this job to populate the GKB database. Always use the latest GKB version which
can be found in the latest GKB PTF
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.
-
Backup 9.1
- HZASUT01 – run the 9.1 job to backup the SQLite database.
-
Recovery
- If failures occur during the migration, and a recovery is required, run the 2.2 job HZASUT02, to recover using the backup copy created just before the start of migration.