Troubleshooting
Problem
SQL8002N error due to %SystemDrive% environment variable missing
Symptom
On a properly licensed DB2 Connect installation, It may be possible to connect to mainframe DB2 databases (such as DB2 for z/OS, DB2 for iSeries, or DB2 for VM/VSE) from the DB2 CLP and from an ODBC test connection. However, from a specific application, such as a web application running under Apache web server, the following error may occur:
SQL8002N An attempt to connect to a host failed due to a missing DB2 Connect product or invalid
license. SQLSTATE=42968.
[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Install\/Migrate\/Upgrade - Licensing","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.7;9.5;10.1;10.5","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
30 April 2025
UID
swg21625156