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.
Install the Oracle ODBC Driver. Download the Oracle 12.2 Instant Client Basic and ODBC packages from Instant Client Downloads for macOS (Intel x86). To reduce the installation size, the Basic Light package be used instead of Basic, if its character sets and languages are sufficient. Extract both ZIP files.
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.
Free Oracle Odbc Driver For Mac Os X El Capitan
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 theadmin
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 theApplications
folder.Figure 5.6
ODBC Administrator
DialogFrom 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 theData Source Name
and an optionalDescription
for the DSN.Figure 5.7
ODBC Administrator Data Source Name
DialogClick to add a new keyword/value pair to the panel. Configure at least four pairs to specify the
server
,username
,password
anddatabase
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
Microsoft Odbc Driver For Oracle 11g
Free Oracle Odbc Driver For Mac Os X 10 13 Download
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”.