We are facing connectivity issue while trying to access Sybase database from a Perl module. We are trying to access remote Sybase database from a Perl script on a linux server. We have installed Sybase OCS 16.0.0 and DBD-Sybase-1.15.20 on the Linux server Below is the code snippet we are using to connect to Sybase database
Code: $dbh_auto = DBI->connect('dbi:Sybase:server=XXXXXX;database=XXXXXX',$A +PP_SYB_USER,$APP_SYB_PASS); Error : DBI connect('server=XXXXXXX;database=XXXXX','xxxxx',...) failed: Serve +r message number=4002 severity=14 state=1 line=0 server=XXXXXX text=L +ogin failed. OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER = ( +44) Server lon_gbe_sql_dev2, database Message String: ct_connect(): protocol specific layer: external error: + The attempt to connect to the server failed.
We were able to access the database using iSQL and SQL developer with same credentials.

In reply to Sybase connectivity issue by ajesh_yarlagadda

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.