EnglishFrenchSpanish

OnWorks favicon

odbcinst - Online in the Cloud

Run odbcinst in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command odbcinst that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


odbcinst - command line tool for batch ODBC configuration

SYNOPSIS


odbcinst action object options

action is one of

-i install a driver or data source

-u uninstall a driver or data source

-q query a list of drivers or data sources present on the system

-j print config info

-c call SQLCreateDataSource

-m call SQLManageDataSources

--version
shows the version number of the program

object is one of

-d an ODBC driver in /etc/odbcinst.ini

-s an ODBC Data Source Name (DSN) in an odbc.ini file.

options are zero or more of

-f template file
Used with -i, this option specifies a template file containing the driver or
DSN to be installed.

-r Read the template from standard input.

-n Driver/Data Source Name
Used with -u to specify a driver or DSN to remove.

-v Contrary to standard practice, this turns off verbose output; there is no
output, even for errors.

-l The specified Data Source object is a System DSN, in /etc/odbc.ini.

-h The specified Data Source object is a User DSN, in the current user's
$HOME/.odbc.ini. This is the default with -s.

DESCRIPTION


odbcinst updates the configuration files that control ODBC access to database servers on
the current host. It also maintains in /etc/odbcinst.ini a count of the number of
references to a particular driver, which can be used to determine whether it should be
removed from the file (only when the reference count drops to 0).

Installing
Drivers and DSNs are installed using the -i option.

If the object to be installed is a driver (-d), the specified driver is added to
/etc/odbcinst.ini or its reference count is incremented if it is already there.

If the object is a data source (-s), the data source is added either to /etc/odbc.ini (if
-l is used) or to $HOME/.odbc.ini (the default, which can also be specified with -h).

Uninstalling
Uninstalling a driver is done with the command odbcinst -u -d -n driver name.
Uninstalling a DSN is done with the command odbcinst -u -s -n data source name.
Uninstalling causes the reference count on the object to be decremented. If nothing else
has requested this driver or DSN (i.e., the reference count drops to zero), it is removed
from the config file.

The options -l and -h are used with -s to specify which odbc.ini file to configure.

Queries
The command odbcinst -q -d returns a list of all drivers present in /etc/odbcinst.ini.
The command odbcinst -q -s returns a list of all system and user DSNs available.

EXIT STATUS


0 Success

non-zero
Failure

TEMPLATE FILES


A typical driver template looks like this:
[MySQL]
Description = MySQL driver
Driver = /usr/lib/odbc/libmyodbc.so
Setup = /usr/lib/odbc/libodbcmyS.so

A DSN template looks like this:
[Sample DSN]
Description = Test MySQL connection
Driver = MySQL
Trace = Yes
TraceFile = /tmp/odbc.log
Database = junk
Server = localhost
Port = 3306
Socket =

The Description and Driver fields should be present in all DSN configurations. Other
options are driver-specific; consult your ODBC driver's documentation for a list of
allowed options, or see ODBCConfig(1) for a graphical tool that can be used to
interactively set up a DSN or driver the first time.

Use odbcinst online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 2
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 3
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 4
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 5
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • 6
    CMU Sphinx
    CMU Sphinx
    CMUSphinx is a speaker-independent large
    vocabulary continuous speech recognizer
    released under BSD style license. It is
    also a collection of open source tools ...
    Download CMU Sphinx
  • More »

Linux commands

crm
crm
Use crm online using onworks.net
services. ...
Run crm
  • 4
    crmgr
    crmgr
    crmgr - administration utility for QDBM
    Curia ...
    Run crmgr
  • 5
    gappletviewer
    gappletviewer
    gappletviewer - Load and runs an applet
    ...
    Run gappletviewer
  • 6
    gaps
    gaps
    mummer - package for sequence alignment
    of multiple genomes ...
    Run gaps
  • s-processed="true">
    g15stats
    g15stats - A CPU/Memory/Swap usage
    meter for G15Daemon DESCRIPTION: The
    packages provides the following usage
    meter for LCD on some Logitech
    keyboards, usind g...
    Run g15stats
  • More »
  • Ad