Many of the BACKUP DB or RESTORE DB processing problems are as a result of incorrectly set DSMI_CONFIG or DSMI_DIR,DSMI_LOG environment variables.
The DSMI_* variables are set in the instance's userprofile file. For example: /home/tsminst1/sqllib/userprofile
The DSMI_* variables are set in the file that the DB2 instance registry variable, DB2_VENDOR_INI, points to. For example, this file might be c:\tsminst1\tsmdbmgr.env. You can verify the file name and location by issuing the db2set -i tsminst1 DB2_VENDOR_INI command, where tsminst1 is the DB2 instance.
The DSMI_* variables are initially set up automatically by the Tivoli Storage Manager instance configuration wizard. They can be set up manually, though, as described in the IBM Tivoli Storage Manager Installation Guide.
export DSMI_CONFIG=/tsminst1/tsmdbmgr.opt
export DSMI_DIR=/opt/tivoli/tsm/server/bin/dbbkapi
export DSMI_LOG=/tsminst1
The /home/tsminst1/tsminst1/tsmdbmgr.opt file
has the following text:SERVERNAME TSMDBMGR_TSMINST1
The /opt/tivoli/tsm/server/bin/dbbkapi/dsm.sys file
has the following text:SERVERNAME TSMDBMGR_TSMINST1
commmethod tcpip
tcpserveraddr localhost
errorlogname /tsminst1/tsmdbmgr.log
Verify that the SERVERNAME
entry in the tsmdbmgr.opt file matches the SERVERNAME
entry in the dsm.sys file. Do not add the PASSWORDACCESS generate option to the dsm.sys configuration file. This option can cause the database backup to fail.