pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Driver's SQLAllocHandle on SQL_HANDLE_DBC failed
2+ messages / 2 participants
[nested] [flat]

* Driver's SQLAllocHandle on SQL_HANDLE_DBC failed
@ 2005-03-29 22:17  Amir Zicherman <amir.zicherman@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Amir Zicherman @ 2005-03-29 22:17 UTC (permalink / raw)
  To: pgsql-odbc; pgsql-general@postgresql.org

hi guys.  

i'm using microsoft odbc and i close and open a lot of connections
through my code at a regular basis.  for some reason, sometimes, not
always, i get the following error when i try to open a new connection
to the DB:  "ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_DBC failed".

on the db side, the postgresql error log shows nothing abouy this. 
any ideas why this is happening?

my postgresql version is: 7.4.6

Thank You, amir



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

* Driver's SQLAllocHandle on SQL_HANDLE_DBC failed
@ 2010-03-24 18:13  raja agireddy <tagireddy@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: raja agireddy @ 2010-03-24 18:13 UTC (permalink / raw)
  To: pgsql-odbc

Hi,

I have compiled unixodbc and postgressql odbc driver on solaris 10 server to
connect to postgressql database and I am having following issues

./isql -vvv DG4ODBC
[IM005][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC
failed
[ISQL]ERROR: Could not SQLConnect


Here is the trace file:

[DEVL] oradevl@dbdev> vi trace.log
[ODBC][23264][1269453011.641639][__handles.c][450]
                Exit:[SQL_SUCCESS]
                        Environment = 2b048
[ODBC][23264][1269453011.641760][SQLAllocHandle.c][364]
                Entry:
                        Handle Type = 2
                        Input Handle = 2b048
[ODBC][23264][1269453011.641801][SQLAllocHandle.c][482]
                Exit:[SQL_SUCCESS]
                        Output Handle = 2b670
[ODBC][23264][1269453011.641911][SQLConnect.c][3614]
                Entry:
                        Connection = 2b670
                        Server Name = [DG4ODBC][length = 7 (SQL_NTS)]
                        User Name = [NULL]
                        Authentication = [NULL]
[ODBC][23264][1269453011.666745][SQLAllocHandle.c][337]Error:
SQL_INVALID_HANDLE
[ODBC][23264][1269453011.666776][SQLConnect.c][1583]Error: IM005
[ODBC][23264][1269453011.666818][SQLError.c][482]Error: SQL_INVALID_HANDLE
[ODBC][23264][1269453011.666852][SQLError.c][430]
                Entry:
                        Connection = 2b670
                        SQLState = ffbff2e0
                        Native = ffbff2d8
                        Message Text = ffbff2f0
                        Buffer Length = 500
                        Text Len Ptr = ffbff2de
[ODBC][23264][1269453011.666894][SQLError.c][467]
                Exit:[SQL_SUCCESS]
                        SQLState = IM005
                        Native = ffbff2d8 -> 0
                        Message Text = [[unixODBC][Driver Manager]Driver's
SQLAllocHandle on SQL_HANDLE_DBC failed]
[ODBC][23264][1269453011.667036][SQLError.c][430]
                Entry:
                        Connection = 2b670
                        SQLState = ffbff2e0
                        Native = ffbff2d8
                        Message Text = ffbff2f0
                        Buffer Length = 500
                        Text Len Ptr = ffbff2de
[ODBC][23264][1269453011.667063][SQLError.c][467]
                Exit:[SQL_NO_DATA]
[ODBC][23264][1269453011.667089][SQLError.c][510]
                Entry:
                        Environment = 2b048
                        SQLState = ffbff2e0
                        Native = ffbff2d8
                        Message Text = ffbff2f0
                        Buffer Length = 500
                        Text Len Ptr = ffbff2de
[ODBC][23264][1269453011.667117][SQLError.c][547]
                Exit:[SQL_NO_DATA]
[ODBC][23264][1269453011.667178][SQLFreeHandle.c][279]
                Entry:
                        Handle Type = 2
                        Input Handle = 2b670
[ODBC][23264][1269453011.667207][SQLFreeHandle.c][194]Error:
SQL_INVALID_HANDLE
[ODBC][23264][1269453011.667239][SQLFreeHandle.c][330]
                Exit:[SQL_SUCCESS]
[ODBC][23264][1269453011.667271][SQLFreeHandle.c][212]
                Entry:
                        Handle Type = 1
                        Input Handle = 2b048


=====================
Here is my odbc.ini file:
===============

[DG4ODBC]
Description = Services Database
Driver = PostgreSQL
Database = vidb05
Servername = 192.168.17.13
UserName = username
Password = password
Port = 5432
ReadOnly = No
RowVersioning = No
ShowSystemTables = No
ShowOidColumn = No
FakeOidIndex = No
ConnSettings =

==============
Here is my odbcinst.ini
=================
[ODBC]
Trace = yes
TraceFile = /tmp/trace.log

[PostgreSQL]
Description = PostgreSQL Official ODBC Driver
Driver = /usr/tmp/raja/psqlodbc/lib/psqlodbca.so
Debug = 1
CommLog = 1

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


end of thread, other threads:[~2010-03-24 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-29 22:17 Driver's SQLAllocHandle on SQL_HANDLE_DBC failed Amir Zicherman <amir.zicherman@gmail.com>
2010-03-24 18:13 Driver's SQLAllocHandle on SQL_HANDLE_DBC failed raja agireddy <tagireddy@gmail.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