If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > error when connecting to db in perl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-02-03, 14:30
Ane4ka Ane4ka is offline
Registered User
 
Join Date: Dec 2002
Posts: 12
error when connecting to db in perl

Trying to conect to Sybase (version 12.0.0.6) through perl

This is perl line to connect to Sybase:

$dbproc = &SybaseLogon( $server, $database, $username, $password );

I get the following error:

DB-Library: Server name not found in interface file.

Are you familiar with this error? What could be causing it.

Thanks a lot!!!!
Reply With Quote
  #2 (permalink)  
Old 01-02-03, 23:44
MattR MattR is offline
Registered User
 
Join Date: Mar 2001
Location: Lexington, KY
Posts: 606
Obviously the server name you are specifying is not in your interfaces file!
__________________
Thanks,

Matt
Reply With Quote
  #3 (permalink)  
Old 01-03-03, 09:11
Ane4ka Ane4ka is offline
Registered User
 
Join Date: Dec 2002
Posts: 12
Quote:
Originally posted by MattR
Obviously the server name you are specifying is not in your interfaces file!
Reply With Quote
  #4 (permalink)  
Old 01-06-03, 11:34
Ane4ka Ane4ka is offline
Registered User
 
Join Date: Dec 2002
Posts: 12
Interface file

What is Interface File? And how do I isert server name into the interface file?

Thanks a lot
Reply With Quote
  #5 (permalink)  
Old 01-06-03, 11:45
MattR MattR is offline
Registered User
 
Join Date: Mar 2001
Location: Lexington, KY
Posts: 606
What environment are you on? In unix, installing the Sybase-CT libraries should place an 'interfaces' file in your install directory (typically /opt/sybase*). In Windows, you need to look for SQL.ini.
__________________
Thanks,

Matt
Reply With Quote
  #6 (permalink)  
Old 01-07-03, 04:33
richardcrossley richardcrossley is offline
Registered User
 
Join Date: Sep 2002
Location: Dublin, Ireland & Woking UK
Posts: 150
Quote:
Originally posted by MattR
What environment are you on? In unix, installing the Sybase-CT libraries should place an 'interfaces' file in your install directory (typically /opt/sybase*). In Windows, you need to look for SQL.ini.
Unix:
If you have installed the Sybase software in /opt/sybase, the interfaces file will be /opt/sybase/interfaces.

Windows:
If you have installed the Sybase software in c:\sybase, the interfaces file will be c:\sybase\ini\sql.ini

The interfaces file defines the server names, the connection library to be used by open client, the ip address of the host (or host name) and the port number the Sybase software is listening to.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On