简体   繁体   中英

IBM DB2 ODBC DRIVER :: SQL1390C The environment variable DB2INSTANCE is not defined or is invalid

I've followed several guides online and I cannot install IBM DB2 ODBC DRIVER on Windows.

I have downloaded the driver from IBM and installed (which was quite a roller-coaster).

If I follow guide1 or guide2 the result is the same:

SQL1390C The environment variable DB2INSTANCE is not defined or is invalid

在此处输入图像描述

Note: this is my C:\Program Files\IBM folder and as you can see there is no bin folder

在此处输入图像描述

Not sure if db2oreg1.exe -setup is still mandatory, things might have changed.

Thanks to @MarkBarinstein I found where the problem was.

I've followed this guide How to install IBM db2 ODBC driver in Windows 7 - 64 bit? and I downloaded the wrong package: I downloaded the universal_fixpack instead of the client .

I realized that when I saw the two folders in the Download directory:

在此处输入图像描述

So I uninstalled the universal_fixpack and installed the client and the installation was successful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM