Sponsored Content
Operating Systems Linux How to change ODBC Driver Manager? Post 302999098 by Ethan Stark on Tuesday 13th of June 2017 07:35:41 AM
Old 06-13-2017
To install the ODBC driver, you can manually create ODBC .ini files or add to the existing .ini file for the ODBC driver manager you are using. Use the following procedure:
Download and unzip the ODBC driver manager .tar.gz file from the Pivotal GemFire XD product page. For example:
tar -zxvf Pivotal_GemFireXD_XX_bNNNNN_ODBC.tar.gz -C path_to_install_location
where path_to_install_location is an already existing directory.
Download and install the ODBC driver manager you wish to use. See ODBC Driver Supported Configurations for a list of supported platform architectures and driver managers.
Create or modify your odbcinst.ini file to point to the path of the ODBC driver shared library. Use the following values depending on your driver configuration:
unixODBC driver manager:
32-bit: path_to_install_location/odbc/32/libgemfirexdodbc.so
64-bit: path_to_install_location/odbc/64/libgemfirexdodbc.so
iODBC driver manager:
32-bit: path_to_install_location/odbc/32/libgemfirexdiodbc.so
64-bit: path_to_install_location/odbc/64/libgemfirexdiodbc.so
The following is a sample odbcinst.ini file for the unixODBC driver manager:
[ODBC]
Trace = yes
TraceFile = dmtrace.log

[ODBC Drivers]
SQLFODBC = Installed

[SQLFODBC]
Driver = /usr/lib/gphd/gfxd/odbc/64/libgemfirexdodbc.so
Description = Driver for connecting to GemFire XD database server
Create or modify your odbc.ini file to identify the GemFire XD data source name (DSN).
The following is a sample odbc.ini file for the unixODBC driver manager:
[ODBC Data Sources]
data_source_name = testdsn

[testdsn]
Driver = /usr/lib/gphd/gfxd/odbc/64/libgemfirexdodbc.so
DESCRIPTION = GemFire XD ODBC driver
SERVER = localhost
PORT = 1527
UID =
PASSWORD =
LogFile = gfxdodbc.log
Finally set the ODBCINI and ODBCSYSINI environment variables to the file location where odbc.ini and odbcinst.ini files for your driver manager are located. If you are using the iODBC driver manager, also set the ODBCINSTINI environment variable to the location of your odbcinst.ini file. For example:
export ODBCINI=/home/user/odbc.ini
export ODBCINSTINI=/home/user/odbcinst.ini
export ODBCSYSINI=/home/user/odbcinst.ini
If installing on Mac OSX, set the DYLD_LIBRARY_PATH environment variable to the location where you installed the driver files.
export DYLD_LIBRARY_PATH=path_to_install_location

Ethan Stark
Software Developer
Cloud Hosted Virtual Desktop

Last edited by Ethan Stark; 06-14-2017 at 05:26 AM..
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ODBC Driver for UNIX

I have no experiance in Unix and I am trying to help our DBAs set up a connection from a Unix Oracle box to a DB2 database on an AS400 server. Does anyone know where I might find a good generic ODBC driver for Unix that should be able to connect to AS400? Any links to sites that would help would... (0 Replies)
Discussion started by: doctorofstyle
0 Replies

2. Shell Programming and Scripting

DBD::ODBC::st fetchrow_hashref failed: [unixODBC][Oracle][ODBC]Numeric value out of r

Here is part of my program code: #Collect the output of test database and count the no #of rows too while(my @array = $tstDbStatementHandle->fetchrow_array) { push @tstDbOutputArray,; $tstDbOutputRows++; } ... (3 Replies)
Discussion started by: sameerstephen
3 Replies

3. Hardware

Difference between platform driver,codec driver and Machine driver

In general terms what are the differences platform driver,codec driver and Machine driver? (1 Reply)
Discussion started by: rupeshkp728
1 Replies

4. Linux

rpm packaging issue for unixodbc driver manager

Hi All, I am trying to make rpm package for unixODBC driver manager 2.3.0 using below spec file. During rpmbuild i am getting the error. Can you pls advice how we can overcome this issue %define name unixODBC %define ver 2.3.0 %define prefix /usr %define sysconfdir /etc %define libdir... (2 Replies)
Discussion started by: kamauv234
2 Replies

5. Red Hat

Linux ODBC driver issue

Hi Gurus, I have a odbc in Linux. when I run command ldd. I got following result: # ldd DWora26.so linux-vdso.so.1 => (0x00007fff26355000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc31e70a000) librt.so.1 => /lib64/librt.so.1 (0x00007fc31e501000) ... (1 Reply)
Discussion started by: ken6503
1 Replies

6. SCO

How to change raid controller driver ? (hardware change)

Hello I'm trying to virtualize an instance of Sco Unix 5.0.5 in VirtualBox (called VM-A) , but sco I have problems set to launch with the new raid controller . The physical machine has a raid controller adaptec (alad driver) but VirtualBox uses buslogic (blc driver) What ... (3 Replies)
Discussion started by: flako
3 Replies
odbc_config(1)						       UnixODBC manual pages						    odbc_config(1)

NAME
odbc_config - get compile options for compiling unixODBC client SYNOPSIS
odbc_config [--prefix] [--exec-prefix] [--include-prefix] [--lib-prefix] [--bin-prefix] [--version] [--libs] [--static-libs] [--libtool- libs] [--cflags] [--odbcversion] [--odbcini] [--odbcinstini] [--header] [--ulen] DESCRIPTION
odbc_config provides built-in options, specified at build time of the unixODBC suite, which are useful for building unixODBC clients and similar programs. OPTIONS
--prefix Prefix for architecture-independent file tree. --exec-prefix Prefix for architecture-dependent file tree. --include-prefix Directory with C header files for unixODBC. --lib-prefix Directory with object code (.so) libraries. --bin-prefix Location of user executables. --version unixODBC version. --libs Compiler flags for linking dynamic libraries. --static-libs Absolute file name of static unixODBC library. --libtool-libs Absolute file name of libtool unixODBC library. --cflags Compiler flags to find include files and critical compiler flags and defines used when compiling the libodbc library. --odbcversion Version of the ODBC specification used by the unixODBC. --odbcini Absolute file name of the system-wide DSN configuration file odbc.ini. --odbcinstini Absolute file name of the driver configuration file odbcinst.ini. --header Definitions of used C preprocessor constants. It is suitable to be piped into C header file. --ulen Compiler flag for defining SIZEOF_SQLULEN. SEE ALSO
odbcinst.ini(5), odbc.ini(5) AUTHORS
The authors of unixODBC are Peter Harvey <pharvey@codebydesign.com> and Nick Gorham <nick@easysoft.com>. For the full list of contributors see the AUTHORS file. COPYRIGHT
unixODBC is licensed under the GNU Lesser General Public License. For details about the license, see the COPYING file. version 2.3.1 Thu 13 Feb 2014 odbc_config(1)
All times are GMT -4. The time now is 09:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy