ODBC Driver for Mac
The Jethro ODBC driver for Mac, enables access to the data stored in Jethro instances, from Business Intelligence (BI) applications with ODBC support.
The following sections specify the steps required for the installation and configuration of Jethro ODBC driver:
- 1 Installation and configuration
- 1.1 Download
- 1.2 Prerequisites
- 1.3 Installation
- 1.4 Setting up the driver in the Driver Manager
- 1.4.1 Manually
- 1.4.2 ODBC Manager
- 1.5 Setting a new connection (DSN)
- 1.5.1 Manually
- 1.5.2 ODBC Manager
- 1.6 Setting a new connection (DSN-less)
- 1.7 Tableau Datasource Customization (TDC)
- 1.8 Testing the connection
- 1.9 Troubleshooting Connection Issues
- 1.10 Uninstalling
- 2 Configure Jethro ODBC connections with BI applications
Installation and configuration
Download
Jethro ODBC drivers can be downloaded from the drivers download page.
Prerequisites
MacOS version 10.12.6 (Sierra)
51 MB of available disk space
iODBC version 3.52.12 installed or ODBC Manager 1.0.12 installed
Installation
To install the ODBC driver:
In Finder, Control-click or right click the icon of the app.
Select Open from the top of contextual menu that appears.
Click Open in the dialog box. If prompted, enter an administrator name and password.
The installer installs the ODBC driver files in the following directories:
<INSTALLATION-PATH>/jethro/jethroodbc/lib/ (By default <INSTALLATION-PATH> is '/opt/')
/Library/ODBC/
Setting up the driver in the Driver Manager
In order to create a connection, the driver manager need to have Jethro defined as a driver.
This action can be done in two ways:
Manually
Open the configuration file '/Library/ODBC/odbcinst.ini' in a text editor. If the file doesn't exist, create it.
Add the following configs:
[ODBC Drivers] JethroODBCDriver=installed [JethroODBCDriver] APILevel=1 ConnectFunctions=YYY Description=64-bit JethroData DSII Driver=/opt/jethro/jethroodbc/lib/libJethroODBC64.dylib DriverODBCVer=03.80 SQLLevel=1
ODBC Manager
Open ODBC Manager, Navigate to 'Drivers' tab, and click on 'Add...':
Enter the following details:
Driver Name: JethroODBCDriver
Driver File: /opt/jethro/jethroodbc/lib/libJethroODBC64.dylib
Add the following Keywords and Values:
Click on 'OK' to save the driver.
Setting a new connection (DSN)
To setup a DSN based connection to a Jethro instance on Mac, create a user/system DSN with the instance connection details, depending on the type of DSN you create:
User DSNs: ~/Library/ODBC/odbc.ini
System DSNs: /Library/ODBC/odbc.ini
To create a DSN, either use ODBC Manager, or edit the appropriate odbc.ini file manually.
Manually
Create/Edit the ODBC.ini file, (located at /Library/ODBC/odbc.ini for system DSN) and add the following configs into the file:
To connect to a single Jethro server, specify:
To connect to multiple Jethro servers, by using the driver client-side load balancing feature, specify:
In both cases, also specify:
For example:
[ODBC Data Sources]
JethroDataDSII=JethroODBCDriver
[JethroDataDSII]
Description=64-bit JethroData DSII
Driver=/opt/jethro/jethroodbc/lib/libJethroODBC64.dylib
Locale=en-US
UID=jethro
PWD=jethro
SERVER=jethro01.mycorp.com
PORT=9111
DATABASE=demoODBC Manager
Setting a new connection (DSN-less)
Some BI applications allow setting up a DSN-less connection. The interface for setting up a DNS-less connection is BI tools specific, and it should generate a Jethro ODBC connection string. Jethro recommends using a DSN connection if possible, but some tools requires DSN-less connection string only.
To connect to your instance without a DSN, provide your application with a connection string. The elements format of the connection string are:
DRIVER={JethroODBCDriver};HOST={host};PORT={port};INSTANCE={instance_name};UID={user};PWD={password};
For example:
DRIVER=JethroODBCDriver;HOST=localhost;PORT=9111;INSTANCE=demo;UID=jethro;PWD=jethro;
Tableau Datasource Customization (TDC)
If Tableau is installed, Jethro will need a jethro specific connection settings for Tableau, to be copied into the required Tableau directory. To do so:
Copy the TDC file from: /<INSTALLATION-PATH>/jethro/jethroodbc/conf/jethro.tdc (By default <INSTALLATION-PATH> is '/opt/')
Locate it under your repository: Documents/My Tableau Repository/Datasources
Testing the connection
To test the connection, use any BI or query tool of your choice. Here are two examples using iODBC:
iODBC administrator offers a built in 'Test' button whithin the DSN tab.
Using a Terminal screen:
Type 'iodbctest'
Type '?' to see all the DSNs defined
Type DSN=<DSN-name> (don't use '<>')
If the connection succeded, you should see 'SQL>'
According to your schema, run any query and verify the results