I'm trying to connect to a sybase DB, but i've been unable to.
This is my .odbc.ini file:
Code:
[ODBC Data Sources]
Smile=DB de Smile
[Smile]
Driver=/opt/sybase/SYBSsa9/lib/libdbodbc9_r.so
UID=x
PWD=y
CommLinks=tcpip
ServerName=fhep_cluster01
[ODBC]
InstallDir=/opt/sybase/SYBSsa9/drivers
When I try to connect with isql, I get this:
Code:
$ isql Smile -v
[08001][unixODBC][Sybase][ODBC Driver][Adaptive Server Anywhere]Unable to connect to database server: Database server not found
[ISQL]ERROR: Could not SQLConnect
I know I've always had to setup JDBC connections giving the IP address and the port of the service, and that normally doesn't fail. This is the first time I try with ODBC, but haven't been able to.
Is there a way I can tell it to use a ip address and a port?
What are the things that I can setup in the ODBC file? I didn't get much information in the ASA Documentation.
Is there a way to ask isql (or unixODBC) to be more verbose on the things that are happening? I noticed that there is no traffic going to the DB server form my host (with tcpdump).
Maybe I can setup a ODBC DSN that uses a JDBC connection, which I know won't fail. Is this possible?