six demon bag
Wind, fire, all that kind of thing!
2015-06-14
Querying DB2 Backups in TSM Fails with Return Code 106
On one of my servers a query for DB2 backups in TSM (db2adutl query full db DBNAME
) failed with the following error:
Error: Initialize environment failed with TSM return code 106
As per dsmrc.h
return code 106 indicates a permission problem:
#define DSM_RC_ACCESS_DENIED 106 /* denied due to improper permission */
which was weird, since the user in question is a member of the DB2ADMNS group that is supposed to have all required permissions.
Posted 23:39 [permalink]
2015-06-07
Using the DB2 Command Line Processer from PowerShell
Even for DB2 10.5 the official documentation says to use the db2cmd
command for a Command Line Processor enabled environment on Windows:
On Windows operating systems, db2cmd command opens the CLP-enabled DB2® window, and initializes the DB2 command line environment.
However, being able to use PowerShell instead of db2cmd
would be much nicer, since the former is far more versatile in practically every respect (control structures, output processing, file handling, etc.).
Posted 01:38 [permalink]