The ODBC Driver for Mac OS X allows you to connect to the Teradata database from Mac OS Xapplications. To get started, see the README files. You can get community support for this download in the Connectivity forum. What is available on OS X? Starting with Mac OS X version 10.6 (Snow Leopard), ODBC Administrator is no longer shipped with the operating system and must be downloaded and installed separately: ODBC Administrator Tool for Mac OS X v1.0, or alternatively we can use ODBC Manager. Mac OS X comes with iODBC, installed in /usr/bin.
To install the ODBC Driver:
[ODBC Drivers]
4D ODBC Driver 64-bit = Installed
4D ODBC Driver 32-bit = Installed
[4D ODBC Driver 64-bit]
Driver = /Library/ODBC/4D ODBC x64.bundle/Contents/MacOS/4D ODBC x64
Setup = /Library/ODBC/4D ODBC x64.bundle/Contents/MacOS/4D ODBC x64
APILevel = 2
ConnectFunctions = YYN
DriverODBCVer = 3.52
FileUsage = 0
SQLLevel = 3
[4D ODBC Driver 32-bit]
Driver = /Library/ODBC/4D ODBC x32.bundle/Contents/MacOS/4D ODBC x32
Setup = /Library/ODBC/4D ODBC x32.bundle/Contents/MacOS/4D ODBC x32
APILevel = 2
ConnectFunctions = YYN
DriverODBCVer = 3.52
FileUsage = 0
SQLLevel = 3
Note: You must create this odbcinst.ini text file if it does not already exist.
You can now launch the ODBC Manager located in the 'Applications/Utilities/' folder in order to create a Data Source Name (DSN) or you can use the one provided with the iODBC framework.
Note: Since Mac OS X 10.6 Snow Leopard, the ODBC Administration Tool is no longer provided as standard. However, it can be downloaded from here:
http://support.apple.com/kb/dl895
By clicking on the 'Drivers” tab, you can check that the 4D ODBC Driver is correctly installed:
This window provides you with the complete path name for each driver installed.
You can do the same with the iODBC Administrator:
Here you can also see the version number but only for 32-bit versions.
Note: Beginning with version 14R2, version numbers include the subversion and modification date in the form: <Version><Subversion><Year><Month+Day>
For example: '14.2.2014.0217', this indicates the 14R2 version modified on February 17, 2014.
To add a DSN using the 4D ODBC Driver:
Note: You may encounter the following anomalies when creating a DSN via the Mac OS X ODBC Administrator:
The fields of these dialog boxes need to be filled in with the following information:
'localhost' | The 4D application is located on the local machine. |
'PC-1' | The 4D application is located on the PC-1 machine, published on port 19812 (default port). |
'148.1.2.3' | The 4D application has the IP address 148.1.2.3. |
Clicking on the Advanced >> button gives you access to additional options as shown here:
Timeouts (Seconds)
Favorite image formats
Pictures stored in 4D databases are retrieved by ODBC as Blobs. This setting lets you select the formats you prefer. By default, if you do not choose any favorites, 4D selects the best format available with respect to screen display.
When you choose one or more formats, 4D only provides one of those formats (in order of preference). If there are no pictures available in any of your favorite formats, 4D converts the pictures to the first format in the list.
For example, if you have selected GIF and JPEG as your favorite image formats:
4D first checks whether there are any .gif or .jpeg formats available. If neither are available, then it converts the formats to .gif since it is first in the list.
Encoding: sets the text encoding.
Cache Settings: used to modify how the network handles the cache. Generally, these settings should be left untouched.
Compatibility: settings to enable the ODBC Driver to work properly with OpenQuery and MSAccess. They should only be checked if you encounter problems with these particular applications.
The 64-bit driver is faceless but there are two ways to create a 64-bit DSN:
Using the 32-bit driver
You can use the 32-bit ODBC driver to create a 32-bit DSN and then modify this DSN directly from the /Library/ODBC folder. Just open the /Library/ODBC/odbc.ini text file in a text editor and make the following edits:
Using the ODBC Administrator or the iODBC Administrator
Keyword | Value |
Driver | /Library/ODBC/4D ODBC x64.bundle/Contents/MacOS/4D ODBC x64 |
Server | <IP address of 4D Server> |
UID | <User's name> |
PWD | <User's password (can be left blank)> |
To configure a DSN on macOS, you can either use the command-line utility (myodbc-installer), edit the odbc.ini
file within the Library/ODBC
directory of the user, or use the ODBC Administrator GUI.
The ODBC Administrator is included in OS X v10.5 and earlier; users of later versions of OS X and macOS need to download and install it manually.
To create a DSN using the myodbc-installer utility, you only need to specify the DSN type and the DSN connection string. For example:
To use ODBC Administrator:
For correct operation of ODBC Administrator, ensure that the /Library/ODBC/odbc.ini
file used to set up ODBC connectivity and DSNs are writable by the admin
group. If this file is not writable by this group, then the ODBC Administrator may fail, or may appear to work but not generate the correct entry.
There are known issues with the macOS ODBC Administrator and Connector/ODBC that may prevent you from creating a DSN using this method. In that case, use the command line or edit the odbc.ini
file directly. Existing DSNs or those that you created using the myodbc-installer tool can still be checked and edited using ODBC Administrator.
Open the ODBC Administrator from the Utilities
folder in the Applications
folder.
Figure 5.6 ODBC Administrator
Dialog
From the ODBC Administrator
dialog, choose either the User DSN or System DSN tab and click .
Select the Connector/ODBC driver and click .
You will be presented with the Data Source Name
(DSN) dialog. Enter the Data Source Name
and an optional Description
for the DSN.
Figure 5.7 ODBC Administrator Data Source Name
Dialog
Click to add a new keyword/value pair to the panel. Configure at least four pairs to specify the server
, username
, password
and database
connection parameters. See Section 5.2, “Connector/ODBC Connection Parameters”.
Click to add the DSN to the list of configured data source names.
A completed DSN configuration may look like this:
Figure 5.8 ODBC Administrator Sample DSN
Dialog
You can configure other ODBC options in your DSN by adding further keyword/value pairs and setting the corresponding values. See Section 5.2, “Connector/ODBC Connection Parameters”.
The ODBC Driver for Mac OS X allows you to connect to the Teradata database from Mac OS Xapplications. To get started, see the README files. You can get community support for this download in the Connectivity forum. What is available on OS X? Starting with Mac OS X version 10.6 (Snow Leopard), ODBC Administrator is no longer shipped with the operating system and must be downloaded and installed separately: ODBC Administrator Tool for Mac OS X v1.0, or alternatively we can use ODBC Manager. Mac OS X comes with iODBC, installed in /usr/bin.
To install the ODBC Driver:
[ODBC Drivers]
4D ODBC Driver 64-bit = Installed
4D ODBC Driver 32-bit = Installed
[4D ODBC Driver 64-bit]
Driver = /Library/ODBC/4D ODBC x64.bundle/Contents/MacOS/4D ODBC x64
Setup = /Library/ODBC/4D ODBC x64.bundle/Contents/MacOS/4D ODBC x64
APILevel = 2
ConnectFunctions = YYN
DriverODBCVer = 3.52
FileUsage = 0
SQLLevel = 3
[4D ODBC Driver 32-bit]
Driver = /Library/ODBC/4D ODBC x32.bundle/Contents/MacOS/4D ODBC x32
Setup = /Library/ODBC/4D ODBC x32.bundle/Contents/MacOS/4D ODBC x32
APILevel = 2
ConnectFunctions = YYN
DriverODBCVer = 3.52
FileUsage = 0
SQLLevel = 3
Note: You must create this odbcinst.ini text file if it does not already exist.
You can now launch the ODBC Manager located in the 'Applications/Utilities/' folder in order to create a Data Source Name (DSN) or you can use the one provided with the iODBC framework.
Note: Since Mac OS X 10.6 Snow Leopard, the ODBC Administration Tool is no longer provided as standard. However, it can be downloaded from here:
http://support.apple.com/kb/dl895
By clicking on the 'Drivers” tab, you can check that the 4D ODBC Driver is correctly installed:
This window provides you with the complete path name for each driver installed.
You can do the same with the iODBC Administrator:
Here you can also see the version number but only for 32-bit versions.
Note: Beginning with version 14R2, version numbers include the subversion and modification date in the form: <Version><Subversion><Year><Month+Day>
For example: '14.2.2014.0217', this indicates the 14R2 version modified on February 17, 2014.
To add a DSN using the 4D ODBC Driver:
Note: You may encounter the following anomalies when creating a DSN via the Mac OS X ODBC Administrator:
The fields of these dialog boxes need to be filled in with the following information:
'localhost' | The 4D application is located on the local machine. |
'PC-1' | The 4D application is located on the PC-1 machine, published on port 19812 (default port). |
'148.1.2.3' | The 4D application has the IP address 148.1.2.3. |
Clicking on the Advanced >> button gives you access to additional options as shown here:
Timeouts (Seconds)
Favorite image formats
Pictures stored in 4D databases are retrieved by ODBC as Blobs. This setting lets you select the formats you prefer. By default, if you do not choose any favorites, 4D selects the best format available with respect to screen display.
When you choose one or more formats, 4D only provides one of those formats (in order of preference). If there are no pictures available in any of your favorite formats, 4D converts the pictures to the first format in the list.
For example, if you have selected GIF and JPEG as your favorite image formats:
4D first checks whether there are any .gif or .jpeg formats available. If neither are available, then it converts the formats to .gif since it is first in the list.
Encoding: sets the text encoding.
Cache Settings: used to modify how the network handles the cache. Generally, these settings should be left untouched.
Compatibility: settings to enable the ODBC Driver to work properly with OpenQuery and MSAccess. They should only be checked if you encounter problems with these particular applications.
The 64-bit driver is faceless but there are two ways to create a 64-bit DSN:
Using the 32-bit driver
You can use the 32-bit ODBC driver to create a 32-bit DSN and then modify this DSN directly from the /Library/ODBC folder. Just open the /Library/ODBC/odbc.ini text file in a text editor and make the following edits:
Using the ODBC Administrator or the iODBC Administrator
Keyword | Value |
Driver | /Library/ODBC/4D ODBC x64.bundle/Contents/MacOS/4D ODBC x64 |
Server | <IP address of 4D Server> |
UID | <User's name> |
PWD | <User's password (can be left blank)> |
To configure a DSN on macOS, you can either use the command-line utility (myodbc-installer), edit the odbc.ini
file within the Library/ODBC
directory of the user, or use the ODBC Administrator GUI.
The ODBC Administrator is included in OS X v10.5 and earlier; users of later versions of OS X and macOS need to download and install it manually.
To create a DSN using the myodbc-installer utility, you only need to specify the DSN type and the DSN connection string. For example:
To use ODBC Administrator:
For correct operation of ODBC Administrator, ensure that the /Library/ODBC/odbc.ini
file used to set up ODBC connectivity and DSNs are writable by the admin
group. If this file is not writable by this group, then the ODBC Administrator may fail, or may appear to work but not generate the correct entry.
There are known issues with the macOS ODBC Administrator and Connector/ODBC that may prevent you from creating a DSN using this method. In that case, use the command line or edit the odbc.ini
file directly. Existing DSNs or those that you created using the myodbc-installer tool can still be checked and edited using ODBC Administrator.
Open the ODBC Administrator from the Utilities
folder in the Applications
folder.
Figure 5.6 ODBC Administrator
Dialog
From the ODBC Administrator
dialog, choose either the User DSN or System DSN tab and click .
Select the Connector/ODBC driver and click .
You will be presented with the Data Source Name
(DSN) dialog. Enter the Data Source Name
and an optional Description
for the DSN.
Figure 5.7 ODBC Administrator Data Source Name
Dialog
Click to add a new keyword/value pair to the panel. Configure at least four pairs to specify the server
, username
, password
and database
connection parameters. See Section 5.2, “Connector/ODBC Connection Parameters”.
Click to add the DSN to the list of configured data source names.
A completed DSN configuration may look like this:
Figure 5.8 ODBC Administrator Sample DSN
Dialog
You can configure other ODBC options in your DSN by adding further keyword/value pairs and setting the corresponding values. See Section 5.2, “Connector/ODBC Connection Parameters”.