I have downloaded the DB2 ODBC client for Windows on x86, and found out that it's a .zip containing a tree of files. I found no instruction wheresoever on:
what to do with these files
how to subsequently register the ODBC driver.
Would anyone know?
This seems to be a common problem, as evidenced at How to install DB2 ODBC or OLEDB Driver where someone got the ZIP files but had no instructions on how to install them.
http://www.ryslander.com/how-to-install-and-configure-db2-odbc-driver/ has instructions with screenshots on how to install the driver, including registering it.
Related
I am trying to connect Snowflake to Tableau Online, my question might seem stupid but I really don't know how to solve this.
The instructions are provided here but I struggle with the very first step,
Driver required
This connector requires a driver to talk to the
database. You might already have the required driver installed on your
computer. If the driver is not installed on your computer, Tableau
displays a message in the connection dialog box with a link to the
Driver Download page where you can find driver links and installation
instructions.
This led me to a page asking me this
Tableau Desktop & Tableau Server: 9.3 - 2019.4 Follow these steps to
get the Windows ODBC driver for Snowflake:
Sign in to your Snowflake instance. Select Help > Download > ODBC
Driver. Select the ODBC driver for your operating system to download
the latest version. For installation and configuration details, follow
the Snowflake Documentation link on the ODBC Driver page.
I found the link to download the driver, but I am not using Tableau Desktop so I don't see how installing this on my laptop will help, how am I supposed to install this with Tableau Online?
I have tried to skip this step and add a Snowflake data source, but I have the following error message
Can’t connect to Snowflake
Detailed Error Message
The username or password is not valid. Check the database name and credentials and
try again.
Thank you!
Tableau has already installed the necessary ODBC driver. You need Tableau Desktop software on your computer to create (locally) the TDS or TWB. It is here that you need to install the ODBC software so you can connect your Tableau Desktop software to Snowflake. Once you have created the connection and created the TDS, then you can use your Tableau Online account to publish this to Online.
If you are using the web authoring features of Tableau Online to create a new workbook or data source, then you don't need to download or install the drivers for Snowflake, as they are already installed in Tableau Online.
First I downloaded the VMware and Redhat 6.5 on my 64bit Windows machine, created virtual machine, set the network and host as needed.
Downloaded the db2 LUW 11.1 AMD64 for Linux, winscp the product to the redhat, unzip and tar -vxf the product.
But when I am checking the ./db2_prereqchk its fails, conveying that certan packages are not there to install the product.
Where can I download a trial version for Windows? Is anyone aware of an emulator online or cloud offer where DB2 can be practiced?
You can download trial versions of DB2 LUW at the IBM website. For testing DB2 online I would recommend to check out dashDB on IBM Bluemix. There are also Docker images available for DB2 Express-C, the free edition of DB2. So overall plenty of options.
I'm using EF 6 (Code first) with the IBM.Data.DB2.EntityFramwork nuget package to access a db2 database server. Working locally it all works as expected, but when deployed to a test server I get an exception: "System.MissingMethodException: Method not found: 'Void IBM.Data.DB2.InternalStruct6.SetDefault()"
I'm no DB2 wizard but I think the issue is related to a incompatible version of the db2 client drivers installed on the test server (9.7?). Entity framework 6 support needs version > 10.5. (I must have installed the 10.5 version locally at some point).
It would be nice to be able to run the application on any pc without additional dependencies, so my question is: Are there any way of skipping the db2 clients/drivers installation, and rather reference certain db2 dll's (or other nuget packages), to access db2 db servers?
Ok, I think asking the question resulted in a moment of enlightenment.
I guess the answer is NO, as the db2 clients/drivers actually installs the db2 odbc data source driver for db2. (Located in Administrative Tools -> Data Sources (ODBC)).
I am having Oracle 10g installed on my laptop and have downloaded ojdbc14.jar driver for the same. The problem is, my operating system is Windows 7, and I'm not having option to create a Data Source for Oracle since I m not having oracles driver installed. I m having option to create a Data Source for SQL server 6, but I want to get connected to Oracle. Please Help.
By 'Data Sources', I'm guessing that you mean Data Sources (ODBC), under Control Panel > Administrative Tools. Is this correct?
I've set up ODBC Data Sources that connect to Oracle databases before, but to do that I've needed the Oracle client to be installed. However, if you're having the full database installed on your laptop (as your question suggests), you won't need the client - that's only used to connect to databases running on other machines. I believe the full database contains everything in the client, so you should be able to set up an ODBC Data Source pointing to the database on your laptop once the database has been installed.
The ojdbc14.jar just contains the JDBC classes to talk to an Oracle database, and only programs written in Java (and other languages that run on the JVM such as Scala, Groovy or Clojure) can use it. This jar on its own not enough to be able to set up an ODBC data source.
Oracle currently has 1 version that is certified for windows 7. That version is 11.2. They have indicated that they plan to certify 10.2.0.5 if this happens there will likely be a patch that will be needed.
This is probably why the Data Source does not work, either ODBC or OLEDB.
Another possibility is that you have installed the 32bit version of Oracle and your OS is 64bit then you would need to use the 32bit Data Source administrative tools.
I have figured out the solution for my problem. All that I needed to do is put ojdbc14.jar file in my class path and then I was able to use it. Though by doing so, I needed to make some change in the code. I was no more able to use Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") instead I needed to use Class.forName("oracle.jdbc.OracleDriver") also instead of using my data source as "jdbc:odbc:somename" I needed to use jdbc:oracle:thin:#localhost:1521:xe.
Where can I find the redistributable version of the IBM DB2 Type 4 driver?
I suppose this is the driver I would use to connect from a Java app (on windows) to DB2 on the mainframe?
You will not be able to connect to the mainframe with any redistributable JDBC driver. The driver pack consists of the actual type 4 driver (db2jcc.jar) and any number of license files of the form:
db2jcc_license_cisuz.jar
where the cisuz bit is variable, indicating the platforms that you're allowed to run on (iSeries, pSeries, System z, LUW and so on).
You're only likely to get cu with any freely distributable pack. You need the z to access DB2 on the mainframe and that's jealously guarded so you'll need to purchase a specific edition of DB2 Connect to get it. I think both PE and EE, the personal and enterprise editions, have this licence file.
Without that license file, the type 4 driver won't even try to talk to the server, you'll get an exception.
IBM's Fix pack site has the "IBM Data Server Driver for JDBC and SQLJ" which is nothing but the JDBC type 4 driver. Though the page I pointed to above happens to be the windows page, it's the same type 4 driver for all platforms, as should be expected.
I don't think any user/password is required.
There is no need to download the JDBC driver separately it is already shipped with your DB2 product.
You can easily find it at this location : C:\Program Files\IBM\SQLLIB\java\db2jcc.jar
db2jcc.jar is the driver name
You can get the drivers from the IBM site. You will need to have IBM ID and password to login (which you can obtain here). Zip file is about 7 MBs, in contains DB2 9.5 JDBC (type 2/4) and SQLJ drivers. Type 4 drivers are in db2jcc4.jar.
However, you won't be able to connect to mainframes with this driver if mainframe is running DB2 for z/OS. To do so, you need at least to purchase DB2 Connect product, which will cost you about $500 minimum.
If you're running on an AS/400 (or iSeries, or whatever the heck IBM is calling it these days), you'll probably want to get it from JTOpen.
Their toolbox replaces the old Java Toolbox and includes the JDBC drivers.
If I need any IBM JARs for DB2 or MQ, I usually just add it to the instructions that DB2 or MQ needs to be installed as a prerequisite along with a URL to download it.
The same goes for Java and many other not easily redistributable products as well.
This eliminates the need to worry about licensing issues as it would be on the onus of the user rather than the vendor to obtain the proper licenses.