Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find list of ODBC drivers installed on Linux

Tags:

linux

odbc

Good day all.

On Windows, the list of installed ODBC drivers located here: HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers

On macOS, the list of installed ODBC drivers located here: /Library/ODBC/odbcinst.ini and /Users/{userName}/ODBC/odbcinst.ini

The questions is: where could I find list of ODBC drivers installed in Linux?

like image 951
user306080 Avatar asked Dec 01 '18 23:12

user306080


People also ask

How do you check if ODBC Drivers are installed Linux?

To verify whether unixODBC is installed in the system, you can run the commands which odbcinst and which isql, which should return the path to the corresponding tools, or just run isql, which should print the syntax and available options for the isql utility.

How do I find the Snowflake ODBC driver version in Linux?

To verify your driver version, connect to Snowflake through a client application that uses the driver and check the version. If the application supports executing SQL queries, you can call the CURRENT_CLIENT function.

How do I check if ODBC is installed in Linux?

Open the ODBC Data Source Administrator window by clicking on the Data Sources tab, followed by the ODBC Extension. You can verify the installation of a driver by clicking the Drivers tab and entering the SQL Server entry in the list of ODBC drivers. Where Are Odbc Drivers Installed Linux?

How do I Find my SQL Server ODBC version?

From the Start menu, go to ODBC Data Sources. Click the Drivers tab and then find the Simba SQL Server ODBC Driver in the list of ODBC drivers that are installed on your system. The version number is displayed in the Version column. How do I check my ODBC connection?

What is a list of installed ODBC drivers?

Might not have been as straightforward as we would have liked but you know what they say: a list of installed ODBC drivers is a list of installed ODBC drivers. (We’re not sure why they say that, but at least in this case it makes some sense.)

How do I know if unixODBC is installed in Linux?

If you are unsure whether UnixODBC is installed in your system, you can simply run isql and odBCinst. These two commands should return the path to the tools’ corresponding paths, and you will also find how the syntax and options for isql are set. how do i know if odbc driver is installed? where are odbc drivers installed linux?


4 Answers

The nicest tool to deal with all configuration-type stuff of UnixODBC is odbcinst.

From man page of odbcinst.

odbcinst - An unixODBC tool for manipulating configuration files

It's a cool library that will ease your life a little while working in UnixODBC. One of its options:

   -j     Prints current configuration of unixODBC, listing (among others) the paths to the configuration files.

This is what you need.

E.g:

 # odbcinst -j

unixODBC 2.3.6
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8

Install it:

apt-get install odbcinst
like image 189
Mateen Avatar answered Oct 04 '22 06:10

Mateen


Thanks for the answers but I found out that list of installed ODBC drivers on Linux can be found on

/etc/odbcinst.ini and /home/{userName}/.odbcinst.ini which is very similar to macOS

like image 20
user306080 Avatar answered Oct 04 '22 05:10

user306080


below command works for me in Unix. It shows all the odbcinst.ini files

odbcinst -j 
like image 42
Rohit Nimmala Avatar answered Oct 04 '22 05:10

Rohit Nimmala


cat /proc/modules | grep odbc

or

lsmod | grep odbc
like image 22
rmutalik Avatar answered Oct 04 '22 06:10

rmutalik