I had this problem on a Solaris 7 system. We fixed the problem by executing the db2profile script in the user's login script. The db2profile script can probably be found in the installation directory's sqllib directory. This script sets up several environment variables required by the DB2 client software.
Be advised that you must also comment any statements that deal with the IFS environment variable as this will replace certain characters in your PATH with ':'.