ODBC Driver for MongoDB 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 MongoDB is compatible with 2 ODBC driver managers:
In case when using other ODBC driver managers, ODBC Driver for MongoDB will be installed, but it will require manual modification of configuration files of these managers.
To install the driver, you should download the archive containing installation files, unpack and run installation with root privileges. See the detailed description of these steps below:
tar -xf devartodbcmongo-linux.tar
To add/update the mongodb.lic file to an already installed driver, you need to create/replace this file in the directory with the installed driver, and save the new activation key to it.
Driver is installed successfully.
After the driver is installed, two DSNs with the names DEVART_MONGODB_X64 and DEVART_MONGODB_X86 are created. You can use them to test connection with MONGODB server, we will use DEVART_MONGODB_X86 as an example. Now perform the following steps:
Server=<your MongoDB server address> Port=<your MongoDB Port> Database=<your MongoDB database name>
isql -v DEVART_MONGODB_X86
ODBC Driver for MongoDB requires libmongoc and libbson client libraries to be installed on the PC. The driver dynamically loads client libraries (by default, libmongoc-1.0.so.0 and libbson-1.0.so.0) available in the user system. If you do not have these libraries installed, you can use ones distributed with the driver.
After the driver is installed, four libraries will be copied to the driver installation folder:
The installer automatically detects the bitness of an operating system and creates the symlinks libmongoc-1.0.so.0 and libbson-1.0.so.0 for 32-bit or for 64-bit libraries correspondingly.