Driver"s SQLAllocHandle on SQL_HANDLE_DBC failed
am 24.03.2010 19:13:55 von raja agireddy--0016e6d64861b478b304828fe47d
Content-Type: text/plain; charset=ISO-8859-1
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
--0016e6d64861b478b304828fe47d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi,
on solaris 10 server to connect to postgressql database and I am having fo=
llowing issues
[IM005][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_=
DBC failed
[DEVL] oradevl@dbdev> vi trace.log
1639][__handles.c][450]
QL_SUCCESS]
ironment =3D 2b048
e.c][364]
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Handle Type =3D 2
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Input Handle =3D 2b048
23264][1269453011.641801][SQLAllocHandle.c][482]
=A0 =A0 =A0 =A0 =A0Exit:[SQL_SUCCESS]
670
=A0 =A0 =A0 =A0 =A0 =A0 =A0Connection =3D 2b670
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Server Name =3D [DG4ODBC][length =3D 7 (=
SQL_NTS)]
=3D [NULL]
7]Error: SQL_INVALID_HANDLE
onnect.c][1583]Error: IM005
NDLE
=A0 =A0 =A0 =A0 =A0 =A0 =A0Entry:
=A0 =A0 =A0 =A0 =A0 =A0 =A0Connection =3D 2b670
0
bff2d8
Text =3D ffbff2f0
=A0Buffer Length =3D 500
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Text Len Ptr =3D ffbff2de=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Exit:[SQL_SUCCESS]
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0SQLState =3D IM005
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Native =3D ffbff2d8 -> 0
nixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC faile=
d]
=A0 =A0 =A0 =A0 =A0 =A0 =A0Entry:
fbff2e0
=3D ffbff2d8
ssage Text =3D ffbff2f0
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Buffer Length =3D 500 v>
fbff2de
264][1269453011.667089][SQLError.c][510]
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Environment =3D 2b048
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0SQLState =3D ffbff2e0
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Native =3D ffbff2d8
f0
0
=3D ffbff2de
[ODBC][23264][1269453011.667178][SQLFreeHandle.c][279]
=A0 =A0 =A0 =A0 =A0 =A0Entry:
=A0 =A0 =A0 =A0Handle Type =3D 2
=A0 =A0 =A0 =A0 =A0Input Handle =3D 2b670
1.667207][SQLFreeHandle.c][194]Error: SQL_INVALID_HANDLE
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Exit:[SQL_SUCCESS]
269453011.667271][SQLFreeHandle.c][212]
=A0 =A0 =A0Entry:
=A0Handle Type =3D 1
48
===========3D
Description =3D Services Database
ame =3D username
idColumn =3D No
=================3D
div>
>
Driver
div>
--0016e6d64861b478b304828fe47d--