- How to Install the Firebird ODBC Driver on Linux
- Installing on Linux (DEB) — ODBC Driver for Firebird
- Prerequisites
- Installation
- GUI installation
- Command-line installation
- Test connection
- Howto install firebird odbc driver for unixodbc (from source )
- Linux, Internet технологии, программирование и администрирование 1C
- четверг, 14 февраля 2013 г.
- Настройка доступа к Firebird/interBase Server через ODBC. Ubuntu 12.04
- Firebird ODBC/JDBC Driver 2.0 Manual
- 1. ODBC/JDBC Driver for Firebird Client Applications
- 1.1. About the Firebird ODBC driver
- 1.1.1. Features Supported
- 2. Installing the Driver
- 2.1. Downloading the Driver
- 2.2. Getting the Right Firebird Client Library
- 2.3. Installing the Driver on Windows
- 2.4. Installing the Driver on Linux
- 2.4.1. Unpacking the Files
- 2.4.2. Building from Sources
- 2.4.3. Installing the Binary Package
- 3. Firebird ODBC Configuration
- 3.1. Configuring a DSN on Windows
- 3.1.1. The DSN Settings
How to Install the Firebird ODBC Driver on Linux
The unixODBC package must be installed Firebird must also be installed
The ODBC driver packages for Linux are gzipped tar files. After gunzip they should be processed by tar, or you can rename them to * .tar.gz and use Midnight Commander to unpack them (for example).
To build from sources (recommended), requires the development package for unixODBC:
- Download and unpack the Firebird driver sources
- Rename «makefile.linux» in .source/Builds/Gcc.lin to «makefile»
- Set the evironment variables FBINCDIR (Firebird include directory) and FBLIBDIR (Firebird lib directory) if necessary.
- Run make (this creates the library libOdbcFb.so in a subdirectory)
- It’s possible to copy the library to /usr/local/lib64 (or any preferred directory) or run: make install (this symlinks the library from the unixODBC directory)
To install from the binary package:
- Copy libOdbcFb.so to /usr/local/lib64 or any other desired destination directory.
Configuration, depends on the Linux distribution, but somewhere in /etc or /etc/unixODBC should be two files:
odbc.ini and odbcinst.ini
Add to odbcinst.ini:
You can test the connection using UnixODBC ISQL (not Firebird’s) using the following:
isql -v employee
If you have connection problems, make sure that the directory where you placed the Firebird ODBC shared library (/usr/local/lib64/libOdbcFb.so) is on the system loadable library path. if not you could set
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/odbc or more simply export LD_LIBRARY_PATH=/usr/lib/odbc
If you still have problems then the next thing is to try the following and see if you can see what the problem is.
Источник
Installing on Linux (DEB) — ODBC Driver for Firebird
Prerequisites
ODBC Driver for Firebird works under control of an ODBC driver manager. ODBC driver manager is not distributed along with our driver and must be installed separately.
ODBC Driver for Firebird is compatible with UnixODBC driver manager.
In case when using other ODBC driver managers, ODBC Driver for Firebird will be installed, but it will require manual modification of configuration files of these managers.
Installation
Let’s consider how to install the Devart ODBC driver on Linux from a DEB package, for example, on Ubuntu. There are two ways to install the driver either manually or via the command line.
GUI installation
- Download the DEB package of the required bitness from the Devart website.
- Navigate to the folder with the downloaded package («Downloads» by default) and double-click it.
- In the opened dialog, click the Install button.
Command-line installation
- Download the DEB package from the Devart website.
By default the required package will be downloaded into the
/Downloads folder (or the selected one);
/Downloads (if you downloaded the package into another folder, you need to specify the path to this folder as the cd command parameter):
To install the devartodbcfirebird_i386.deb on a 32-bit system, use the following command:
To install the devartodbcfirebird_amd64.deb on a 64-bit system, use the following command:
Driver is installed successfully.
To activate the driver, perform the steps described in the Product Activation article.
Test connection
After the driver is installed, a DSN with the name DEVART_FIREBIRD is created. You can use it to test connection with FIREBIRD server. For this, perform the following steps:
Источник
Howto install firebird odbc driver for unixodbc (from source )
Here is an small guide on installing firebird odbc driver from source (alternate you can install it from binary repository )
A good reference to unixodbc is located here
First step is to have installed unixodbc on fedora:
yum install unixODBC unixODBC-develop
and on ubuntu (debian):
sudo apt-get install unixodbc unixodbc-dev
then checkout the odbc driver :
cvs -d:pserver:anonymous@firebird.cvs.sourceforge.net:/cvsroot/firebird login
cvs -z3 -d:pserver:anonymous@firebird.cvs.sourceforge.net:/cvsroot/firebird co OdbcJdbc
cd OdbcJdbc/Builds/Gcc.lin
make -f makefile.linux
Next read the readme.linux
driver seems to be in directory OdbcJdbc/Builds/Gcc.lin/Release
cd OdbcJdbc/Builds/Gcc.lin/Release
sudo cp *.so /usr/lib
sudo ln -s /usr/lib/libIscDbc.so /usr/lib/IscDbc
create content in the folowing files
cat /etc/odbcinst.ini
[Firebird]
Description = Firebird ODBC Driver
Driver = /usr/lib/libOdbcJdbc.so
Setup = /usr/lib/libOdbcJdbcS.so
Threading = 1
FileUsage = 1
CPTimeout =
CPReuse =
cat /etc/odbc.ini
[help]
Description = Firebird
Driver = Firebird
Dbname = localhost:/var/lib/firebird/2.0/system/help.fdb
User = SYSDBA
Password = masterkey
Role =
CharacterSet =
ReadOnly = No
NoWait = No
ps: i assume that firebird and g++ are already installed on the system
Источник
Linux, Internet технологии, программирование и администрирование 1C
четверг, 14 февраля 2013 г.
Настройка доступа к Firebird/interBase Server через ODBC. Ubuntu 12.04
Установка необходимых пакетов:
Создаем необходимый симилинк:
#Для i386
На момент написания статьи последней версией драйвера была 2.0.1.152.
Последнюю версию на текущий момент см. тут
Качаем драйвер и копируем его куда следует:
#Для i386
#Для x86_64
Для 64-битной системы драйвер оказался недоработанным (косяки работы с датой и «съедались» некоторые буквы у char`в). Пришлось собирать из svn свой.
Собсна, переходим к конфигурированию.
и добавляем секцию для Firebird/InterBase:
Настраиваем непосредственно систему ODBC. Создаем DSN.
Сделать это можно 2-мя способами:
Используя мастер настройки:
Используя ODBC администратор:
2. Путем редактированию конфигов:
Добавляем в него соответствующую секцию:
где:
Description — описание драйвера.
Driver — имя раздела из файла /etc/odbcinst.ini.
Dbname — путь к базе данных на Firebird/InterBase сервере, к которой нужно получить доступ.
User и Password — пользователь, грантованный на работу с данной БД.
Role — роль, с которой осуществляется подключение к БД.
CharacterSet — кодировка БД.
Устанавливаем параметры драйвера в систему:
Устанавливаем настройки ODBC в систему:
. ВАЖНО.
Если в /etc/odbc.ini вносятся какие-либо изменения, процедуру установки ностроек ODBC в систему, необходимо повторить (sudo odbcinst -i -s -l -f /etc/odbc.ini)
Проверка установленных DSN:
Проверка подключения к БД:
видим что то типа:
Чтобы удалить параметры драйвера из системы:
Чтобы удалить регистрацию DSN из системы:
Во избежание конфликтов, лучше удалить локальный настройки ODBC:
Источник
Firebird ODBC/JDBC Driver 2.0 Manual
1. ODBC/JDBC Driver for Firebird Client Applications
This manual documents the official driver for connecting ODBC-aware client applications with a Firebird database, implementing the combined capabilities of dedicated wrappers for the Firebird C/C++ API functions with an ODBC-to-JDBC bridge to enable cross-platform connections in a Java VM environment.
1.1. About the Firebird ODBC driver
The Firebird ODBC driver supports client applications connecting to Firebird databases from Windows, FreeBSD, Solaris, and Linux. Separate kits are available for both Windows and the POSIX platforms, for use with 32-bit or 64-bit clients. On Windows, the respective dynamic OdbcFb.dll and the static OdbcFb.lib libraries are packaged in both .zip archives and executable installers. The POSIX packages come as either the binaries for x86 and amd64, respectively, both named libOdbcFb.so , or as a source code tarball. This help file is also included in the installation kits.
1.1.1. Features Supported
Compiling for both 32-bit and 64-bit Windows clients on the Microsoft SDK base
Thread-safe querying and other processing
Creating databases by means of functions SQLConfigDataSource , SQLDriverConnect , SQLExecDirect .
Multiple simultaneous transactions per connection, with varying transaction attributes if need be. For example, one read-only transaction, one or more simultaneous read/write transactions.
Transparent connection pooling via transaction settings
Firebird database events returned by triggers and stored procedures
Use of Microsoft ODBC cursors ( odbccr32.dll , odbccu32.dll )
Firebird Services API (backup & restore, statistics, repair) by way of the function SQLConfigDataSource
The schemas SCHEMA or OWNER for cases where a schema is required for cross-DBMS compatibility in SQL queries
Fully functioning SQL syntax support for Services transactions via Firebird’s gpre pre-compiler language (“EmbedSQL”)
Use of the COM interface for Microsoft Distributed Transaction Coordinator (DTC)
2. Installing the Driver
The kit that you install will depend on what you plan to use it for. Regardless of whether you intend to connect to a 64-bit or a 32-bit Firebird server, you must install the driver and the Firebird client ( fbclient.dll on Windows, libfbclient.so on Linux) that matches the “bitness” of your client application.
Installation is similar for both options. You can install both the 32-bit and the 64-bit driver on the same machine if the user is going to access Firebird from multiple applications of mixed bitness. Care will be needed to ensure that each application will connect using the correct DSN for the required driver.
. because we have been asked: if you want to connect your Windows application — Excel or LibreCalc, for example — to your database running on a Linux or other POSIX server, you want the Windows driver, not the POSIX one. See also the note below about the Firebird client library.
2.1. Downloading the Driver
The Downloads section at https://www.firebirdsql.org/en/odbc-driver/ clearly identifies the bitness of the various kits available, with the latest release at the top of the page. For example, the 32-bit installer kit for Windows, at the time this document was prepared, was named Firebird_ODBC_2.0.5.156_Win32.exe , indicating that it is the executable installer for the 32-bit version. The following table should help to indicate what you will need. The “N.n.n.xxx” infix used here indicates “Major1.Major2.Minor.Subrelease”. The “Subrelease” part changes the most frequently.
Kit Name | Purpose |
---|---|
Parameter | Entry |
---|---|