Version 6.3.1
 —  Adabas Version 6.3 Release Notes  —

Converting a Database from Adabas Version 4.1 (AXP) to Adabas Version 6.3 (Itanium)

The conversion package, which is delivered as a backup saveset, is used to convert the structure of a database from Version 4.1 (AXP) to Version 6.3 (Itanium).

Note:
The backup saveset is not provided in the installation kit, and must be downloaded from Empower.

When converting a database, the nucleus must not be active or have an AUTORESTART pending. Furthermore, there must be no pending utility entries in the utility control block (UCB).

Warning:
Only databases with block sizes that are multiples of 1K for all containers can be converted.

It is strongly recommended to dump the database using the backup utility before the conversion.

The format of the sequential files has changed since Adabas version 6.1. All sequential files are now in the "Stream LF" format, which is not compatible with the sequential files from Adabas version 4. In order to prevent incorrect file headers for newly-created files, Software AG strongly recommends that you remove old sequential files from the target directory before creating new ones.

Note:
Existing applications must be recompiled on Itanium. The application does not have to be modified, since the Adabas control block and the call interface have not been changed, it just has to be linked with the shared library libadalnkx.

The following topics are covered:


Installation

The conversion package is delivered as a backup saveset. In order to use the conversion utilities, you must first restore the saveset to SAG$ROOT.

Top of page

Contents of the Conversion Package

The conversion package contains the following files:

File Name Purpose
ADA_AXP_CONVERT.COM Procedure to set up the necessary environment and perform the conversion
ADACVT_V3.EXE Conversion utility to convert a Version 4 AXP database into an intermediate state on Itanium
ADADBM_V3.EXE Procedure to convert the Address Converter from 3-byte to 4-byte RABNs
ADAINV_V3.EXE Procedure to reinvert all of the files in the database
LIBADAUTL.EXE, LIBADACOM.EXE, LIBSAGIPC.EXE, LIBSAGRMSIO.EXE Libraries required by the conversion utility
ADAMSG.ENG Message file

Top of page

Prerequisites and Restrictions

The following prerequisites and restrictions apply to using the conversion package:

Top of page

Usage

Start of instruction setTo convert a database

  1. Change your working directory to the directory in which the saveset was restored.

  2. Call the conversion procedure by entering @ada_axp_convert <dbid>[noinvert], where <dbid> is the number of the database to be converted. "noinvert" is an optional parameter which forces the conversion procedure to skip the reinvert step and which creates a command procedure (invert_all_<dbid>), which can then subsequently perform the reinvert in batch and in parallel.

Using the "noinvert" parameter

Call the conversion procedure by entering @ada_axp_convert <dbid> noinvert.

In order to customize the creation of the command procedures, some logical names are set by ada_axp_convert - you can edit ada_axp_convert.com and invert_all_<dbid>.com to set your own values.

You should start the database before running invert_all_<dbid>.com in order to avoid a 'checkpoint block overflow' error. invert_all_<dbid>.com submits a reinvert job (run_inv-batch.com) for each file in the database into a batch queue - the default name is ADACVT$BATCH, and this queue can be deleted once all conversions have been carried out.

Top of page

Manual Migration

It is also possible to migrate a database manually. The migration process can be divided into two parts - steps to be performed on the Alpha side, and steps to be performed on the OpenVMS/Itanium side. These steps are described below.

Start of instruction setTo start the migration (on theAlpha side)

  1. Unload the data using ADAULD and decompress the data using ADADCU (with the DCUFDT parameter).

    Example

    adauld db=<dbid>,file=<fileid>
    define dcufdt <name.fdt>
    define dcudta ulddta
    adadcu dcufdt
    
  2. Transfer the file DCUFDT to the OpenVMS/Itanium machine (ASCII format).

  3. Transfer the file DCUOUT to the OpenVMS/Itanium machine (binary format) - this will be used as the <in filename> when running cvt_fmt.

Start of instruction setTo finish the migration (on the OpenVMS/Itanium side)

  1. Run ADAFDU with the file DCUFDT as input.

    Note:
    The parameters [NO]AUTOMATIC_ALLOCATION, ERASE, ISNSIZE and [NO]PLOG can no longer be used.

  2. Run cvt_fmt (with ADANUC online) by entering the following in the command line:

    cvt_fmt -n -l <in filename> <out filename> [dbid file]
  3. Compress the data with ADACMP using the <out filename> produced in the previous step as CMPIN.

    Example

    define CMPIN <filename>
    define CMPFDT <filename>
    adacmp db=<dbid> update=<fileid> add
    
  4. Load the data with ADAMUP, using the output of ADACMP from the previous step as the input.

    Example

    adamup db=<dbid> update=<fileid> add
    

The usage of cvt_fmt is as follows:

cvt_fmt [opt] <in filename> <out filename> [<dbid> <file>]

Note:
<dbid> and <file> are only required in conjunction with the options -f or -n.

The following options are available:

-n

Newline format to exclusive length format

-f

Fixed format to exclusive length format

-h

Record unloaded from high-oder machine (default)

-l

Record unloaded from low-order machine

-e<fmt>

2 byte exclusive length format to fix format, no length, no newline (fmt f), or fix format, no length but newline (fmt n)

-r<order>

RMS format to exclusive length format, record unloaded from high-order machine (order h), or record unloaded from low-order machine (order l)

-i

Records including USERISNs

-p

Print version

-s

Records have NC status field

-c

Check and trace

Top of page