DB2 Version 10.1 for Linux, UNIX, and Windows

setup_db2.sh script

The setup_db2.sh script activates and configures DB2® Advanced Copy Services (ACS), and manually installs Tivoli Storage FlashCopy Manager

Location

The script setup_db2.sh is located in the sqllib/acs directory.

Syntax

Here is the syntax for setup_db2.sh:
Read syntax diagramSkip visual syntax diagram
>>-setup_db2.sh--+------------------------------------------+--><
                 '- -a--action-- -d--DB2_Instance_Directory-'   

where action can be one of:
disable
This option stops Tivoli Storage FlashCopy Manager and removes all entries from /etc/inittab. To use this option, you must have root authority or be the instance owner.
install
This option installs Tivoli Storage FlashCopy Manager. To use this option, you must have root authority.
start
This option starts a previously installed and configured version of Tivoli Storage FlashCopy Manager. To use this option, you must have root authority or be the instance owner.
stop
This option stops the currently running version of Tivoli Storage FlashCopy Manager. To use this option, you must have root authority or be the instance owner.

Usage

The database manager automatically calls setup_db2.sh to activate DB2 ACS functionality during database manager instance creation and when you upgrade IBM® Data Server. On AIX systems, it also automatically installs the embedded version of Tivoli Storage FlashCopy Manager; on Linux systems, you must explicitly issue the setup script to install Tivoli Storage FlashCopy Manager.

You can call the setup_db2.sh script manually to do the following tasks:
Activate DB2 ACS

You can activate DB2 ACS by running the setup_db2.sh script with the parameters described previously, as a user with root authority.

Configuring DB2 ACS

You can configure DB2 ACS by running the setup_db2.sh script without any parameters. If you run the setup_db2.sh script without any parameters, then a wizard will lead you through DB2 ACS configuration.

Installing Tivoli Storage FlashCopy Manager
On Linux systems, you need to manually run the setup_db2.sh script to install Tivoli Storage FlashCopy Manager.

One important result of running the setup_db2.sh script is that the ownership and permissions of DB2 ACS executable files in the sqllib/acs directory are verified.