Thread: IM004-unixODBC

IM004-unixODBC

From
Date:
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


Re: IM004-unixODBC

From
Ludek Finstrle
Date:
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

Re: IM004-unixODBC

From
Date:
>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


Re: IM004-unixODBC

From
"Hiroshi Saito"
Date:
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


Re: IM004-unixODBC

From
Date:
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