Run the following command to set the DB2 command line (DB2CLP) variable:
$ db2cmd -i -w db2clpsetcp
Check that the DB2CLP variable has been set correctly:
$ echo %DB2CLP%
This should now show:
DB20FADE
Once this is done, the db2 connect command should work properly
Source :
https://www.ibm.com/support/pages/db21061e-environment-not-initialized-when-running-db2-commands-windows-command-line
Comments
Post a Comment