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.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.