You are here:
/ Dashboard / Main / VOSStart / VOSODBCSetup

Virtuoso Clients

ODBC Setup

If you have iODBC installed, you can configure Virtuoso data sources by adding the following entry into the relevant odbc.ini file. Depending on your OS and how iODBC was built, the driver-manager will search the following places for this file:

  • the ODBCINI environment variable (points directly to the file)
  • $HOME/.odbc.ini
  • /etc/odbc.ini or /etc/odbc/odbc.ini

Sample DSN:

[LocalVirt]
; absolute path to the shared object
Driver=/usr/local/lib/virtodbc_32.so
; host and port of the Virtuoso server
Address=localhost:1111

If the application that will load the ODBC driver is multithreaded, use the virtodbc32_r.so driver instead.

Linking Client Applications

The isql and other utilities are linked directly with the Virtuoso client code. See the Makefiles for the libraries used. These are identical in function with the ODBC driver but accept a host:port in the place of a data-source name to be resolved from the odbc ini file.

Generally applications should pass via ODBC. Directly linking with the ODBC driver shared object is also possible.

See Virtuoso ODBC Documentation for more.

JDBC

If you specified --with-jdbc3= to the configure in the installation root directory, running make will produce the files libsrc/JDBCDriverType4/virtjdbc3.jar and virtjdbc3ssl.jar. These can be placed on the Java class path. See

Virtuoso JDBC Documentation for URL formats etc.

Virtuoso and the Virtuoso Website are Copyright (C) OpenLink Software 2006-
SourceForge.net Logo