The same script I have written to connect the sybase database, but giving the error" Script:
#!/usr/bin/perl use Time::HiRes qw(sleep); use DBI; # Connect to the db my $dbh = DBI->connect( "dbi:Sybase:server=Server name; port=5000; database=PP_DB; interfa +ces=/opt/sybase/interfaces", "sa", "password" ) or die "Usage ctp name, sa user password, 1st Sub_id, Subscriber Ran +ge";
Error:
DBI connect('server=ctp-1-zone157; port=5000; database=PP_DB; interfac +es=/opt/sybase/interfaces','sa',...) failed: OpenClient message: LAYE +R = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (1) Server ctp-1-zone157, database Message String: ct_connect(): directory service layer: internal direct +ory control layer error: There was an error encountered while binding + to the directory service. at ./connectDB.pl line 6 Usage ctp name, sa user password, 1st Sub_id, Subscriber Range at ./co +nnectDB.pl line 6.

In reply to Re^2: two connections to the same database with DBD::Sybase by Anonymous Monk
in thread two connections to the same database with DBD::Sybase by busunsl

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.