You must register your native driver with unixODBC. The following
set of steps is an example of registering an installed ODBC database driver
with unixODBC. For more information, see the installation guides provided by
the provider of the database driver you are installing.
-
Install the database driver package.
-
Complete the following sub-steps to create a template for your
database driver.
-
Using a text editor, open a new file.
-
Copy and paste the following code into the file.
[msodbcsql_17]
Description=Microsoft ODBC Driver 17 for SQL Server
Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.3.so.1.1
-
Save and close the text editor.
-
Run the following code to install the database driver using
odbcinst, where
new_driver_template.txt is the name of your new
file.
odbcinst -i -d -f new_driver_template.txt