Ingres Community Forums Login Register Ingres.com  

Ingres Community Forum


Go Back   Ingres Community Forums > Ingres Forums > Database Drivers and APIs
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2009-01-06   #1 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 2
Default Unable to connect to Ingress Server using odbc

Hi,
I am trying to connect to a remote ingress server using unixODBC. I have configured the vnode using netutil utility. But while trying to connect using uNIX odbc I get an error "[08004][unixODBC][Ingres][Ingres ODBC Driver][Ingres]Database does not exist: 'bodb01'."

But I have been able to connect to ingress server using the same details in the windows client.

My $ODBCINI has the following details

[evalkit_Ingres2006]
ReadOnly = no
Driver=/opt/Ingres/IngresII/ingres/lib/libiiodbcdriver.1.so
Description=Ingres
Database=bodb01
Vnode=test
Username=evalkit
Password=evalkit
DriverODBCVer=3.50
DriverReadOnly=N
DriverType=Ingres
Vendor=Ingres Corporation
DontDlClose=1


netutil shows the same details as in windows.

Could any one tell me what could be the issue?

Any help is greatly appreciated.
anuprai is offline   Reply With Quote
Old 2009-01-06   #2 (permalink)
Ingres Community
 
Join Date: Mar 2007
Location: Medfield, Massachusetts, USA
Posts: 208
Default

Hi Anuprai,

Was your DSN definition in $ODBCINI created by hand-edit or by the iiodbcadmin utility?

If you replaced the database name with "iidbdb" as an experiment, are you able to connect in that case?

Dave
thoda04 is offline   Reply With Quote
Old 2009-01-06   #3 (permalink)
Ingres Corp
 
loera01's Avatar
 
Join Date: Mar 2007
Location: Redwood City, California
Posts: 261
Default

Hello Anuprai,

I suspect you hand-edited your $ODBCINI file, possibly by extrapolating what the entries would look like based on a connection string, because if you had used the Ingres ODBC Administrator (iiodbcadmin), the DSN entry would look like this:

[evalkit_Ingres2006]
Driver=Ingres
Description=Ingres
Vendor=Ingres Corporation
DriverType=Ingres
Server=test
Database=bobd01
ServerType=Ingres
PromptUIDPWD=
WithOption=
RoleName=
RolePWD=
DisableCatUnderscore=N
AllowProcedureUpdate=N
UseSysTables=N
BlankDate=N
Date1582=N
CatConnect=N
Numeric_overflow=Y
SupportIIDECIMAL=N
CatSchemaNULL=N
ReadOnly=N
SelectLoops=Y

You may be able to connect if you substitute the keyword "server" for "vnode".

If you are using a version of Ingres later than 2.6, You may use the iiodbdcadmin utility as Dave recommended. Early versions of Ingres name the utility as iiodbdcadmn (no "i" in 'admin').

Before using iiodbcadmin, be sure to configure the ODBC for Ingres by running iisuodbc.

Note that if your $ODBCINI file contains connection information about other drivers, iiodbcadmin will ignore the information for those drivers, but you can add, modify or delete Ingres driver entries as required.

You will find more information about using the Ingres ODBC driver in an Ingres environment in the Connectivity Guide at http://esd.ingres.com/product/docs/Ingres_2006/docs.

Regards,
Ralph Loen
loera01 is offline   Reply With Quote
Old 2009-01-08   #4 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 2
Default

Hi Ralph,
Thanks a Lot for the timely help. I am able to connect to the ingress server now using ODBC after changing vnode to Server. One more modification that was required was to mention the so file responsible for connection that is
Driver=ingres changed back to
Driver=/opt/Ingres/IngresII/ingres/lib/libiiodbcdriver.1.so.
Once again Thanks A lot for the help

Thanks
-Anup-
anuprai is offline   Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2009 Ingres Corporation. All Rights Reserved