pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sriparna.mondal@ericsson.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14303: Issue in configuration of ODBC to connect PostGres
Date: Tue, 30 Aug 2016 09:49:06 +0000
Message-ID: <20160830094906.15676.88789@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14303
Logged by:          sriparna mondal
Email address:      sriparna.mondal@ericsson.com
PostgreSQL version: 9.3.10
Operating system:   CentOS release 6.7 (Final)
Description:        

We are trying to configure ODBC to connect Postgre DB. 

[root@dselilx4374 ~]# cat /etc/odbcinst.ini
[PostgreSQL]
Description             = ODBC for PostgreSQL
Driver          = /usr/local/lib/psqlodbcw.so
Setup           = /usr/lib64/libodbcpsqlS.so
FileUsage               = 1

[root@dselilx4374 ~]# cat /etc/odbc.ini
------ /etc/odbc.ini file begin -----
;
;  odbc.ini
;
[ODBC Data Sources]
test = PostgreSQL Test

[test]
Driver=PostgreSQL
Description=Sample PostgreSQL DSN
DSN=test
Servername=localhost
Username=postgres
Password=postgre
Database=test
ReadOnly=1
Servertype=postgres
Port=5432
FetchBufferSize=99
ServerOptions=
ConnectOptions=
Options=
ReadOnly=no
Trace=1
TraceFile=/tmp/odbc.trace
Debug=1
DebugFile=/tmp/odbc.debug
CommLog=1

[Default]
Driver = /usr/local/lib/psqlodbcw.so

[ODBC]
InstallDir = /usr/local/lib/psqlodbcw.so

------ /etc/odbc.ini file end -----

[root@dselilx4374 ~]# odbcinst -j
unixODBC 2.2.14
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /etc/odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8

But we are getting below error.

[root@dselilx4374 ~]# odbcinst -q -s
odbcinst: SQLGetPrivateProfileString failed with Unable to find component
name.

Can you pls help? Able to connect to DB using 'psql'.

Thanks,
Sriparna


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


Message-ID: <20160830094906.15676.88789@wrigleys.postgresql.org>
Permalink:  ../20160830094906.15676.88789@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160830094906.15676.88789@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: sriparna.mondal@ericsson.com
  Subject: Re: BUG #14303: Issue in configuration of ODBC to connect PostGres
  In-Reply-To: <20160830094906.15676.88789@wrigleys.postgresql.org>
  References: <20160830094906.15676.88789@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox