Entering content frame

Procedure documentation In-Place Migration with SDBINST and Follow-Up Actions Locate the document in its SAP Library structure

Use

You use the SDBINST program to upgrade database instances from Version 7.3 to 7.5. You first need to install the new version of the database software. You then need to migrate the database instance(s).

The source version of the database software is Version 7.3.00 Build 025 or higher, the target version is 7.5.00 or higher (see also Selecting an Upgrade Strategy).

Use this procedure for database systems that are not part of an SAP system, particularly if multiple database instances refer to the same installation path.

This upgrade strategy is valid for OLTP database instances only. It is valid for all supported operating system platforms.

Prerequisites

·        The database instance that you want to upgrade cannot be part of an SAP system.

·        You need to have a backup medium for a complete data backup.

Procedure

Recommendation

To guarantee the security of your data if any errors occur in the migration, we recommend that you perform a complete data backup of the instance in step 6, in the operational state COLD. This causes downtime because the database instance has to be stopped. However, in the event of an error, the resulting data backup can be used to recover the database instance in both Version 7.3 and the target version.

Alternatively, you can perform a complete data backup in the operational state WARM before you start the migration. However, in the event of an error, you can only use this backup to recover the source version of the database instance. Therefore, it is not equivalent to a data backup in the operational state COLD during the migration process.

...

       1.      Install the target version of the software using SDBINST (zip file or tgz package) in the <dependent_path><target_version> installation path in parallel to the installation path of Version 7.3.

or

Install the software of the target version using the Red Hat Package Manager (rpm package).

Note

If you have installed Version 7.3 of the database software on your computer using the Red Hat Package Manager, you must use this program to perform subsequent installations. You cannot use the SDBINST program for subsequent installations.

       2.      Perform the following migration steps for each of the database instances of your source version.

 

Procedure

Command

...

 

Call Database Manager CLI as the DBM operator and connect to the database instance that you want to migrate.

dbmcli –d <database_name> -u <dbm_user>,<password>

 

Stop the database instance correctly.

Caution

Use the db_offline command; do not use db_stop. This is the only way of making sure you can restart the database instance if an error occurs.

db_offline

 

Transfer the database instance to the operational state COLD.

db_cold

 

Execute the command that prepares the migration.

util_execute migrate

 

Open a utility session.

util_connect

 

Perform a complete data backup in the operational state COLD.

backup_start <medium>

 

Exit the utility session.

util_release

 

Transfer the database instance to the operational state OFFLINE.

db_offline

 

UNIX:

Assign the database instance to the new software version <target_version>.

Microsoft Windows:

Delete the database instance registration.

UNIX:

db_reg –R <dependent_path><target_version>

 

Microsoft Windows:

db_drop WITHOUTFILES

 

Exit Database Manager CLI.

For Microsoft Windows only:

Register the installation path of the new database software with Database Manager and create a database instance of this new software version.

exit | release | quit | bye

 

dbmcli –R <dependent_path><target_version> db_create –d <database_name> -u <dbm_user>,<password>

 

Log on to Database Manager CLI again.

dbmcli –d <database_name> -u <dbm_user>,<password>

 

Start the migration of the database parameters.

param_checkall

 

If you are upgrading to database Version 7.5.00 or higher on a UNIX operating system, perform the following steps. Otherwise, proceed as described under point 14.

a.  Log off Database Manager CLI.

b.  Call the chvolperm program. This program changes the owner, group, and access rights to the volumes of the database instance according to the authorization concept for UNIX (see Database Systems Concepts, UNIX: Special Operating System Users and Groups).

c.  Log on to Database Manager CLI again.

 

 

 

 

 

exit | release | quit | bye

 

<dependent_path>/bin/chvolperm –d <database_name>

 

 

dbmcli –d <database_name> -u <dbm_user>, <password>

 

Transfer the database instance to the operational state ADMIN.

db_admin

 

Execute the migration command.

Caution

The execution of this command may take some time, depending on the size of the database instance. Do not cancel it under any circumstances.

util_execute migrate database

 

Transfer the database instance to the operational state OFFLINE.

db_offline

 

Restart the database instance. The database catalog is migrated from 7.3 to the target version.

db_online

 

Reload the system tables.

A message is displayed indicating that the procedure has been successful.

load_systab

Result

You have migrated your database instance from software version 7.3 to the required target version.

It is in the operational state ONLINE.

 

Leaving content frame