DB2 10.5 for Linux, UNIX, and Windows

db2cptsa - Install or update DB2 HA scripts command

Installs or updates the DB2® high availability (HA) scripts in /usr/sbin/rsct/sapolicies/db2 on UNIX and Linux operating systems. You need these DB2 HA scripts to use IBM® Tivoli® System Automation for Multiplatforms (SA MP) with the DB2 High Availability Feature.

Authorization

Root user authority

Required connection

None

Command syntax

Read syntax diagramSkip visual syntax diagram
>>-db2cptsa--+-----+--+-----+--+-----+--+-----+----------------><
             '- -c-'  '- -f-'  '- -r-'  +- -h-+   
                                        '- -?-'   

Command parameters

-c
Verifies that the DB2 HA scripts exist in /usr/sbin/rsct/sapolicies/db2, and that they are at the proper level.
-f
Forces a reinstall of the DB2 HA scripts in /usr/sbin/rcst/sapolicies/db2. Without this argument, if the version of the DB2 HA scripts that are already installed is the same as or higher than the version of the scripts being installed, then the installed scripts are not overwritten.

When there are multiple versions of DB2 installed on the same server and one of them is using IBM Tivoli System Automation for Multiplatforms Base Component (SA MP Base Component) with the DB2 HA feature, then during db2 install, the HA scripts are overwritten by the new db2 installation in /usr/sbin/rcst/sapolicies/db2.

These DB2 HA scripts are needed to use the IBM Tivoli System Automation for Multiplatforms Base Component (SA MP Base Component) with the DB2 HA feature.

To put back the previous version for HA scripts, use this option.

-r
Removes the directory /usr/sbin/rsct/sapolicies/db2. This directory is where the DB2 HA scripts for SA MP are located. These scripts and this directory will only be removed if SA MP is not installed.
-h | -?
Displays help information.

Usage notes

By default, this utility installs the DB2 HA scripts in /usr/sbin/rsct/sapolicies/db2 if they aren't already installed there, or if the version of the scripts already installed is older than the version of the scripts being installed. This utility installs or updates the DB2 HA scripts if and only if SA MP is already installed.

This command can be found on the DB2 install media in the db2/plat/tsamp directory, where plat is:
  • aix for DB2 for AIX 5L™
  • linux for DB2 for Linux on 32-bit AMD and Intel systems (x86)
  • linuxamd64 for DB2 for Linux on AMD64 and Intel EM64T systems (x64)
  • linuxppc for DB2 for Linux on POWER® (System i® and IBM Power Systems™) systems
  • linux390 for DB2 for Linux on System z9® and zSeries
The command is also available at DB2DIR/install/tsamp directory where DB2DIR is the installation path of the DB2 database product for UNIX and Linux operating systems.