PC: Intel x86
OS : Red Hat Linux 6.2 (Zoot)
Db: Sybase 11.03

Problematic script :

line 18>$DBA = "sdjsh"; 
line 19>$DBA_Pass = "dkfj"; 
line 20>$DSN = "dbi:Sybase:SYBASE"; 
line 21>$dbh= DBI->connect($DSN,$DBA,$DBA_Pass) || die ("Can't connect to 
line 22>database.: $DBI::errstr. Try again later.");

Problem:
While i run my script it is producing error as follows;

DBI->connect failed: OpenClient message: LAYER = (5) ORIGIN = (3) SEVERITY = (5)
 NUMBER = (4)
Message String: ct_connect(): network packet layer: internal net library error: 
Net-Lib protocol driver call to connect two endpoints failed
Operating System Error: Socket connect failed - errno 111
 at /home/httpd/cgi-bin/test.pl line 22

I change the hosts file as described in your FAQ but it didn't work, i also read your 
messages posted at sybase.public.sqlserver.linux, but still can't got the solution.

regards
--ahmed

Reply via email to