Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-23651: DB2 plugin setup script fails with error: "That target instance must be entered before the command!"

Authentication Service ,  

14 April,20 at 01:00 PM


When running the Centrify DB2 plugin setup script,, it fails with the following error:
"The target instance must be entered before the command!"


The Centrify DB2 plugin setup script runs as root, but as the script runs it calls a function that uses "su" to run commands as the db2 instance owner.
If the login shell of the db2 instance owner is ksh instead of bash or sh, then the DB2 environment will be missing and DB2INSTANCE will be empty. As a result, the script will fail.
[root@rhel65 ~]# grep db2inst1 /etc/passwd


The instance owners shell can be temporarily changed to bash or sh, so that the db2 plugin setup script will complete successfully.

For example, on a RHEL based system, the usermod command can be used to change the shell from /bin/ksh to /bin/bash
[root@rhel65 ~]# usermod -s /bin/bash db2inst1
[root@rhel65 ~]# grep db2inst1 /etc/passwd

After the install of plugins completes, the login shell can be changed back to ksh.


This will be fixed in the Centrify Infrastructure Services 2020 release.