The Setup Routines For The Ibm Db2 Odbc Driver



  1. The Setup Routines For The Ibm Db2 Odbc Driver Download
  2. The Setup Routines For The Ibm Db2 Odbc Driver Could Not Be Loaded
  3. The Setup Routines For The Ibm Db2 Odbc Driver
  4. The Setup Routines For The Ibm Db2 Odbc Driver Could Not Be Found
  • Install the Db2 driver package.; Open ODBC Data Source Administrator and create either a User DSN or System DSN for the Db2 Warehouse driver package.; Click Advanced Settings.Enter following three CLI parameters with their values for the Db2.
  • Computer HKEYCURRENTUSER Software ODBC ODBC.INI Driver REGSZ C: PROGRA1 IBM SQLLIB BIN DB2CLIO.DLL For 64bit DSN, the correct DLL is db2cli64.dll. Don't know why despite using the '64bit ODBC Data Source Administrator' to create the DSN, the DLL in the registry is the wrong one.

Summary: in this tutorial, you will learn how to install DB2 developer edition on Windows platform, which is freely used for developers and database administrators to build mission-critical applications.

3 Create a new ODBC Data Source Name (DSN) using the ODBC Driver Manager. The ODBC Driver Manager is in the Windows Control panel - Administrative tools. Add a “User DSN” select “IBM DB2 DRIVER for ODBC – F:/work/clidriver” as driver. Next, set “Data source name” In “Database alias” row, click “Add”. Consult your IBM SQL Reference for the specific target and platform and version of DB2. The ODBC Driver for DB2 exposes only selected DB2 data types as native types in the ODBC catalog function GetTypeInfo. For example, the driver does not expose LONG CHARACTER or VARYING LONG CHARACTER types.

Download IBM DB2 Developer Edition

After downloading the install file, you need to unzip the file into a directory e.g., c:software as shown in the following picture:

Install DB2 on Windows

Step 1. To install DB2, double click the setup.exe file, the DB2 setup launchpad will be launched:

Step 2. Click the Release information to get the release notes, what’s new and what’s changed in this version.

Step 3. If you upgrade from a previous version, click the upgrade information for more information on upgrading DB2 system:

Step 4. Click Install a Product to start DB2 11.1 version

Step 5. Scroll the scrollbar down and click the Install New button

Step 6. To start installing DB2, read the license agreement carefully, accept the terms, and click the Next button.

Step 7. Choose Typical in the install type list and click the Next button:

Step 8. Select the third option to create a response file and click Next button

Step 9. Select the installation folder, leave it as is and click Next button

Step 10. Select the IBM SSH server installation folder and startup option. Since we will use the DB2 solely on the current server, select Do not autostart the IBM SSH server.

Step 11. Setup username and password for the DB2 administration server

Step 12. Configure DB2 instances, leave it as DB2 and click Next button

Step 13. Setup notifications, uncheck the checkbox and click Next button

Step 14. Enable operation system security for DB2 objects, uncheck the Enable operating system security checkbox and click the Next button:

Step 15. Review the information click Finish button

Step 16. The setup launchpad starts copying files and installing DB2 server:

Step 17. You need to wait for a while before the setup completes. Once it is completed, click the Finish button:

DB2 First Steps

The first steps wizard gets you quickly up and running with DB2 by allowing to check for product updates, create a sample database, etc.

If you want to create a database named SAMPLE from IBM, you can click the create sample database button as shown in the following picture:

Select the driver to store the SAMPLE database and click the OK button:

It takes a while to create the selected sample database:

Once completed, click the OK button.

Click the Close button to close the first steps window.

In this tutorial, you have learned how to download IBM DB2 server developer edition and install it on Windows.

I have had a number of requests from people wanting to connect to IBM's DB2 fromLinux via unixODBC. This short document details what I know about this at themoment. If anyone can contribute more imformation then please contact me at theaddress at the end of the document.

This document originally refered to the 6.1 version of DB2, but there are extra details for 7.1 and 9.1

First, install the DB2 Client access package from IBM it will install the IBM CLI driver, this works with unixODBC as a ODBC driver.

Using the install in the Client Access package, setup the client access to give you a instance name (ie db2inst1), then setup your odbcinst.ini entry like this.

The DontDLClose is required to avoid a problem in the driver when dynamically loaded (I suspect its registering a exit function which isn't being called).

The Setup Routines For The Ibm Db2 Odbc Driver Download

Then setup your odbc.ini like this.

Then when it comes to connecting, you MUST have the environment variable DB2INSTANCE set to a vaild db2 instance, so for instance to connect with isqlThat should be all there is to it.

Version 7.1

Since originally creating this document, IBM have released a new version of DB2 7.1. I have tried the 7.1 build and with a couple of changes, the same method seems to work fine. The only difference being the name of the package, where the documentused to refer to the DB2 Client access package, the CLI driver is now to be found in the DB2 Personal Developer's Edition V7.1.

If using the 7.1 build the path to the library is now

I have also found that you need to add '/usr/IBMdb2/V7.1/lib' to /etc/ld.so.conf.

It has been reported that this installation doesn't work in some situations. the attempt to open the driver fails, and cannot find a symbol sqltevents in libdpdcf.a. I hav'nt had this problem, so I wonder if there is a difference between platform, or builds of the DB2 instance. If anyone has any more info on this let me know.

Another useful hint. Somewho has been using PHP+DB2 on AIX via unixODBC to a BIG IBM server (4 processors, bags of core etc), and finding it was slow. It turns out there is a bug in IBM's TCP/IP stack. after looking at this and setting thisTo quote '.. the difference was UNBELIEVABLE !!!'. Thanks Eric.

Version 9.1

And yet more..

The current installation should look like this

IBM supply a script that sets DB2INSTANCE and LIBPATH. Here's what IBM suggests you put in your .bashrc if the DB2 instance you want to talk to is in /home/db2inst1:

Version 9.1

As is described in this document IBM now have a different lib for 32 and 64 bit operation. So for 32 bit useor 64 bitIts also worth remembering that unixODBC allows you to have both 32 and 64 bit drivers installed in the same setup, and the driver manager will pick the right one from a shared set of ini filed

Version 10.1 Fix Pack 1 (IBM Data Server Driver for ODBC and CLI, 64-bit)

(Thanks Björn)

Getting the driver

Download page: http://www-01.ibm.com/support/docview.wss?rs=4020&uid=swg27016878

Preferrably choose the latest version from the 'IBM Data Server Client Packages, Fix Packs by version', e.g. 'Version 10.1 Fix Pack 1'.

Then choose 'IBM Data Server Driver for ODBC and CLI (64-bit)', 'View all'.

Then choose your platform under 'Platform', e.g. 'AIX 64-bit, pSeries' and check the appropriate checkbox, e.g. 'fix pack: DSClients-aix64-odbc_cli-10.1.0.1-FP001,
IBM Data Server Driver for ODBC and CLI (AIX 64 bit) V10.1 Fix Pack 1'. Download mk4 full version for pc. Click 'Continue' and login with your IBM ID (or sign up for a new one).

Descargar discografia de christafari. Christafari Alive 1.Word Sound & Power 2.Soulfire 3.For my father´s sake 4.Valley of Desicion 5.Christafari 6.Can´t stop 7.Warriors Descargar Por Cortesia de:relshn-Live at Flevo,Holland 2007 1.Freedom Step 2.Blood and fire 3.Follow the leader 4.Sound? 5.Hiding place 6.Word Sound & power 7.Valley of Decision Descargar-Por Cortesia de.

Download the file, e.g. 'v10.1fp1_aix64_odbc_cli.tar.gz'.

Untar to a suitable location, e.g. /usr/local/src/DB2. This will create a 'db2_cli_odbc_driver' subdirectory, with another subdirectory 'clidriver' in it.

Create debug/diagnostic directories, as those are missing:

64-bit unixODBC on IBM AIX

..with gcc, set:

..although -q64 -DBUILD_REAL_64_BIT_MODE do not appear to influence anything (any longer).

Then configure with (e.g.):

Ibm

Ask libtool not to hardcode library paths into libraries before installing:

Further enforce this by modifying ltmain.sh and libltdl/config/ltmain.sh using unixODBC-2.3.1-libtool.patch (attached with this e-mail).

Then compile and install using GNU make:

Make sure to extract the archive members of the libraries and to create .so links to them:

General unixODBC settings on IBM AIX

Your /etc/environment (or similar evironment variable-setting profile) should probably set the ODBCINI environment variable to point out odbc.ini:

(You will need to logout and login again for the changes to take effect, of course.)

Configuring the driver

For AIX, odbcinst.ini should contain:[db2_odbc_driver]Description = IBM DB2 ODBC driver (64-bit)Driver = /usr/local/src/DB2/db2_cli_odbc_driver/odbc_cli/clidriver/lib/db2o.oFileUsage = 1DontDLClose = 1

The db2o.o driver is the one to use for IBM AIX. (There is no need to extract anything from libdb2.a or similar, as in some previous versions.)

Then create a /usr/local/src/DB2/db2_cli_odbc_driver/odbc_cli/clidriver/cfg/db2cli.ini file containing one stanza for each data source. The result could look something like this:

(This connects to a DB2 server on my.database.server.com TCP port 451234 using the supplied credentials.)

The stanzas should of course have identical names to those of the data sources in odbc.ini.

Configuring the data source

odbc.ini should contain a data source specifying a DMEnvAttr attribute:

This points out the installation path of the driver.

Debugging

If things don't work and you want some further clues:

Add:

..to each DB2 data source in odbc.ini.

Add the following to odbcinst.ini:

Add the following to /usr/local/src/DB2/db2_cli_odbc_driver/odbc_cli/clidriver/cfg/db2cli.ini:

The Setup Routines For The Ibm Db2 Odbc Driver Could Not Be Loaded

Perform an isql connection attempt and trace it via the truss command:

Then have a look at /usr/local/src/DB2/db2_cli_odbc_driver/odbc_cli/clidriver/db2dump/db2diag.log, /usr/local/src/DB2/db2_cli_odbc_driver/odbc_cli/clidriver/db2dump/db2trace.log, /usr/local/src/DB2/db2_cli_odbc_driver/odbc_cli/clidriver/db2dump/a.trc (from truss, e.g. look out for ENOENTs somewhere at the end) and /tmp/sql.log (from unixODBC).

The Setup Routines For The Ibm Db2 Odbc Driver

Hopefully this will give you some clues as to why things don't work, if they don't work.

If this is of any help to someone, good, any problems let me know. Thanks to Harold Lee for helping me keep this doc somewhere near up to date.

The Setup Routines For The Ibm Db2 Odbc Driver Could Not Be Found

Nick Gorham