Skip to content

Commit 95a7784

Browse files
committed
v3.2.1
1 parent cb3d21c commit 95a7784

File tree

4 files changed

+49
-8
lines changed

4 files changed

+49
-8
lines changed

CHANGES.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2023-11-22, Version 3.2.1
2+
=========================
3+
4+
* Updated readme.md with Note regarding ibm_db installation. (#896) (bchoudhary6415)
5+
6+
* Enhance ibm_db driver to read Db2 credential from Env var for testing (#894) (bchoudhary6415)
7+
8+
* Updated INSTALL.md (#889) (Earammak)
9+
10+
* Fix typo in `SQL_ATTR_TXN_ISOLATION` (#884) (Nikita Sobolev)
11+
12+
113
2023-08-25, Version 3.2.0
214
=========================
315

README.md

+35-6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Install Python 3.7 <= 3.11. The minimum python version supported by driver is py
2626

2727
Please follow detailed installation instructions as documented here: [ibm_db Installation on z/OS](INSTALL.md#inszos)
2828

29+
- **SQL1598N Error** - It is expected in absence of valid db2connect license. Please click [here](#Licenserequirements) and read instructions.
30+
2931
### For MacOS M1/M2/ Apple Silicon chip system
3032
>
3133
> **Important: The driver for IBM DB2 is not compatible with Apple Silicon and will have to run in emulated mode.**
@@ -86,7 +88,7 @@ already present inside wheel package.
8688
To inforce auto downloading of clidriver or to make setting of environment variable `IBM_DB_HOME`
8789
effective, install ibm_db from source distribution using below command:
8890
```
89-
pip install ibm_db --no-binary :all:
91+
pip install ibm_db --no-binary :all: --no-cache-dir
9092
```
9193

9294
If you have to use your own URL for clidriver.tar.gz/.zip please set environment variable
@@ -114,7 +116,7 @@ os.add_dll_directory('path to clidriver installation until bin')
114116
import ibm_db
115117
116118
e.g:
117-
os.add_dll_directory('C:\Program Files\IBM\CLIDRIVER\\bin')
119+
os.add_dll_directory('C:\\Program Files\\IBM\\CLIDRIVER\\bin')
118120
import ibm_db
119121
```
120122
Refer https://bugs.python.org/issue36085 for more details.
@@ -292,13 +294,40 @@ More examples can be found under ['ibm_db_tests'](https://github.com/ibmdb/pytho
292294

293295
Jupyter Notebook examples can be found here -> [Other Examples](https://github.com/IBM/db2-python/tree/master/Jupyter_Notebooks)
294296

295-
### <a name="Licenserequirements"></a> License requirements for connecting to databases
297+
## <a name="Licenserequirements"></a>For z/OS and iSeries Connectivity and SQL1598N error
298+
299+
- Connection to `Db2 for z/OS` or `Db2 for i`(AS400) Server using `ibm_db` driver from distributed platforms (Linux, Unix, Windows and MacOS) is not free. It requires either client side or server side license.
300+
301+
- Connection to `Db2 for LUW` or `Informix` Server using `ibm_db` driver is free.
302+
303+
- `ibm_db` returns SQL1598N error in absence of a valid db2connect license. SQL1598N error is returned by the Db2 Server to client.
304+
To suppress this error, Db2 server must be activated with db2connectactivate utility OR a client side db2connect license file must exist.
305+
306+
- Db2connect license can be applied on database server or client side. A **db2connect license of version 11.5** is required for ibm_db.
307+
308+
- For activating server side license, you can purchase either `Db2 Connect Unlimited Edition for System z®` or `Db2 Connect Unlimited Edition for System i®` license from IBM.
309+
310+
- Ask your DBA to run db2connectactivate utility on Server to activate db2connect license.
311+
312+
- If database Server is enabled for db2connect, no need to apply client side db2connect license.
313+
314+
- If Db2 Server is not db2connectactivated to accept unlimited number of client connection, you must need to apply client side db2connect license.
315+
316+
- db2connectactivate utility and client side db2connect license both comes together from IBM in a single zip file.
317+
318+
- Client side db2connect license is a `db2con*.lic` file that must be copied under `clidriver\license` directory.
319+
320+
- If you have a `db2jcc_license_cisuz.jar` file, it will not work for ibm_db. `db2jcc_license_cisuz.jar` is a db2connect license file for Java Driver. For non-Java Driver, client side db2connect license comes as a file name `db2con*.lic`.
321+
322+
- If environment variable `IBM_DB_HOME` or `IBM_DB_INSTALLER_URL` is not set, `ibm_db` automatically downloads [open source driver specific clidriver](https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/) from https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli and save as `node_modules\ibm_db\installer\clidriver`. Ignores any other installation.
323+
324+
- If `IBM_DB_HOME` or `IBM_DB_INSTALLER_URL` is set, you need to have same version of db2connect license as installed db2 client. Check db2 client version using `db2level` command to know version of db2connect license required. The license file should get copied under `$IBM_DB_HOME\license` directory.
296325
297-
Python ibm_db driver can connect to Db2 on Linux Unix and Windows without any additional license/s, however, connecting to databases on Db2 for z/OS or Db2 for i(AS400) Servers require either client side or server side license/s. The client side license would need to be copied under `license` folder of your `clidriver` installation directory and for activating server side license, you would need to purchase Db2 Connect Unlimited for System z® and Db2 Connect Unlimited Edition for System i®.
326+
- If you do not have db2connect license, contact [IBM Customer Support](https://www.ibm.com/mysupport/s/?language=en_US) to buy db2connect license. Find the `db2con*.lic` file in the db2connect license shared by IBM and copy it under `.../node_modules/ibm_db/installer/clidriver/license` folder to be effective.
298327
299-
To know more about license and purchasing cost, please contact [IBM Customer Support](https://www.ibm.com/mysupport/s/?language=en_US).
328+
- To know more about license and purchasing cost, please contact [IBM Customer Support](https://www.ibm.com/mysupport/s/?language=en_US).
300329
301-
To know more about server based licensing viz db2connectactivate, follow below links:
330+
- To know more about server based licensing viz db2connectactivate, follow below links:
302331
* [Activating the license certificate file for Db2 Connect Unlimited Edition](https://www.ibm.com/docs/en/db2/11.5?topic=li-activating-license-certificate-file-db2-connect-unlimited-edition).
303332
* [Unlimited licensing using db2connectactivate utility](https://www.ibm.com/docs/en/db2/11.1?topic=edition-db2connectactivate-server-license-activation-utility).
304333

ibm_db.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
+--------------------------------------------------------------------------+
2323
*/
2424

25-
#define MODULE_RELEASE "3.2.0"
25+
#define MODULE_RELEASE "3.2.1"
2626

2727
#include <Python.h>
2828
#include <datetime.h>

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from setuptools.command.install import install
2727

2828
PACKAGE = 'ibm_db'
29-
VERSION = '3.2.0'
29+
VERSION = '3.2.1'
3030
LICENSE = 'Apache License 2.0'
3131
readme = os.path.join(os.path.dirname(__file__),'README.md')
3232

0 commit comments

Comments
 (0)