pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
IM004-unixODBC
5+ messages / 3 participants
[nested] [flat]

* IM004-unixODBC
@ 2006-03-21 19:57  juanudo@galeon.com
  0 siblings, 1 reply; 5+ messages in thread

From: juanudo@galeon.com @ 2006-03-21 19:57 UTC (permalink / raw)
  To: pgsql-odbc

I'm work on:
           S.O.: Linux Suse 9.2
PostgreSQL: 8
   unixODBC: 2.2.10-3

#rpm -aq | greo unixODBC
unixODBC-devel-2.2.10-3
qt3-unixODBC-3.3.4-11
unixODBC-gui-qt-2.2.10-3
unixODBC-2.2.10-3
php4-unixODBC-4.3.10-14

When a try to connect to PostgreSQL with ODBC:
isql PostgreSQL user password -v

The ODBC say me:
[IM004][unixODBC][Driver Manager]Driver's 
SQLAllocHandle on SQL_HANDLE_HENV failed

my config are:

suse:/usr/lib/unixODBC # odbcinst -j
unixODBC 2.2.10
DRIVERS............: /etc/unixODBC/odbcinst.ini
SYSTEM DATA SOURCES: /etc/unixODBC/odbc.ini
USER DATA SOURCES..: /root/.odbc.ini

suse:/etc/unixODBC # cat odbc.ini
[ODBC Data Sources]
PostgreSQL              = PostgreSQL ODBC 2.50 
Driver DSN

[PostgreSQL]
Description             = PostgreSQL
Driver                    = PostgreSQL
Trace                     = Yes
TraceFile                = /tmp/sql.log
Database                = GESTION
Servername              = 167.175.51.178
Username                = postgres
Password                = d,sm_dymr
Port            = 5432
Protocol                = 6.4
ReadOnly                = No
RowVersioning           = No
ShowSystemTables                = No
ShowOidColumn           = No
FakeOidIndex            = No
ConnSettings            =
FileUsage               = 1




Any body know what happed?

Atentamente, Juan Mosqueda.
Constructor de Exitos.
Te alcanzan tus ingresos? te invito a 
desarrollar tu propio negocio. 058-0414-0932538
Linux Counter #145635
-----------------------------------------------------------------------------------
Di adiós a los virus y a los pop-ups
http://barra.hispavista.com/hispavista/cargar.html

-----------------------------------------------------------------------------------
¿Conoces eBay, el mayor centro de compra y venta en internet?
Móviles, portátiles, pda´s, cd´s, cámaras digitales, videocamaras...
¡Compra ahora a los mejores precios! http://ebay.hispavista.com/
-----------------------------------------------------------------------------------
¿Compras por internet?
http://compras.hispavista.es/

-----------------------------------------------------------------------------------
- Correo seguro con tecnología Panda Software




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: IM004-unixODBC
@ 2006-03-22 12:06  Ludek Finstrle <luf@pzkagis.cz>
  parent: juanudo@galeon.com
  0 siblings, 1 reply; 5+ messages in thread

From: Ludek Finstrle @ 2006-03-22 12:06 UTC (permalink / raw)
  To: juanudo@galeon.com; +Cc: pgsql-odbc

Hello

Tue, Mar 21, 2006 at 08:57:35PM +0100, juanudo@galeon.com napsal(a):
> I'm work on:
>           S.O.: Linux Suse 9.2
> PostgreSQL: 8
>   unixODBC: 2.2.10-3

I see no psqlodbc version.

> When a try to connect to PostgreSQL with ODBC:
> isql PostgreSQL user password -v
> 
> suse:/etc/unixODBC # cat odbc.ini
> [ODBC Data Sources]
> PostgreSQL              = PostgreSQL ODBC 2.50 
> Driver DSN
> 
> [PostgreSQL]
> Description             = PostgreSQL
> Driver                    = PostgreSQL
> Trace                     = Yes
> TraceFile                = /tmp/sql.log
> Database                = GESTION
> Servername              = 167.175.51.178
> Username                = postgres
> Password                = XXXXXXXXXXXXX
  ^^^^^^^^
Don't include password next time.

> Port            = 5432
> Protocol                = 6.4
> ReadOnly                = No
> RowVersioning           = No
> ShowSystemTables                = No
> ShowOidColumn           = No
> FakeOidIndex            = No
> ConnSettings            =
> FileUsage               = 1

You could try add Debug = 1 and then you can see more in /tmp/*mylog*.
If there is no /tmp/*mylog* you have bad definition of psqlodbc driver.

Regards,

Luf



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: IM004-unixODBC
@ 2006-03-22 12:39  juanudo@galeon.com
  parent: Ludek Finstrle <luf@pzkagis.cz>
  0 siblings, 1 reply; 5+ messages in thread

From: juanudo@galeon.com @ 2006-03-22 12:39 UTC (permalink / raw)
  To: pgsql-odbc; +Cc: luf@pzkagis.cz

>I see no psqlodbc version.

I'm using psqlODBC-07.03.0200-85 and 
unixODBC-2.2.10-3.

>... you have bad definition of psqlodbc driver.

What i can do for know when the definition is 
bad?


Atentamente, Juan Mosqueda.
Constructor de Exitos.
Te alcanzan tus ingresos? te invito a 
desarrollar tu propio negocio. 058-0414-0932538
Linux Counter #145635
-----------------------------------------------------------------------------------
Di adiós a los virus y a los pop-ups
http://barra.hispavista.com/hispavista/cargar.html

-----------------------------------------------------------------------------------
¿Conoces eBay, el mayor centro de compra y venta en internet?
Móviles, portátiles, pda´s, cd´s, cámaras digitales, videocamaras...
¡Compra ahora a los mejores precios! http://ebay.hispavista.com/
-----------------------------------------------------------------------------------
¿Compras por internet?
http://compras.hispavista.es/

-----------------------------------------------------------------------------------
- Correo seguro con tecnología Panda Software




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: IM004-unixODBC
@ 2006-03-22 12:56  Hiroshi Saito <saito@inetrt.skcapi.co.jp>
  parent: juanudo@galeon.com
  0 siblings, 1 reply; 5+ messages in thread

From: Hiroshi Saito @ 2006-03-22 12:56 UTC (permalink / raw)
  To: juanudo@galeon.com; pgsql-odbc; +Cc: luf@pzkagis.cz

Oh, I am sorry very late reaction....

----- Original Message ----- 
From: juanudo


> [PostgreSQL]
> Description             = PostgreSQL
> Driver                    = PostgreSQL

Probably,does the following help you? 
Driver = /usr/lib/psqlodbc.so

However, please specify a suitable place.

Regards,
Hiroshi Saito




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: IM004-unixODBC
@ 2006-03-22 13:10  juanudo@galeon.com
  parent: Hiroshi Saito <saito@inetrt.skcapi.co.jp>
  0 siblings, 0 replies; 5+ messages in thread

From: juanudo@galeon.com @ 2006-03-22 13:10 UTC (permalink / raw)
  To: pgsql-odbc; +Cc: saito@inetrt.skcapi.co.jp

Thank you some much Hiroshi, that is the 
problem. I´m change

> Driver                    = PostgreSQL
for
>Driver = /usr/lib/psqlodbc.so

in my odbc.ini and connecting work. 

When the unixODBC stiil does not work but 
psqlodbc.so solve me problem.


Atentamente, Juan Mosqueda.
Constructor de Exitos.
Te alcanzan tus ingresos? te invito a 
desarrollar tu propio negocio. 058-0414-0932538
Linux Counter #145635
-----------------------------------------------------------------------------------
Di adiós a los virus y a los pop-ups
http://barra.hispavista.com/hispavista/cargar.html

-----------------------------------------------------------------------------------
¿Conoces eBay, el mayor centro de compra y venta en internet?
Móviles, portátiles, pda´s, cd´s, cámaras digitales, videocamaras...
¡Compra ahora a los mejores precios! http://ebay.hispavista.com/
-----------------------------------------------------------------------------------
¿Compras por internet?
http://compras.hispavista.es/

-----------------------------------------------------------------------------------
- Correo seguro con tecnología Panda Software




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2006-03-22 13:10 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-03-21 19:57 IM004-unixODBC juanudo@galeon.com
2006-03-22 12:06 ` Ludek Finstrle <luf@pzkagis.cz>
2006-03-22 12:39   ` juanudo@galeon.com
2006-03-22 12:56     ` Hiroshi Saito <saito@inetrt.skcapi.co.jp>
2006-03-22 13:10       ` juanudo@galeon.com

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