Hi Monks, Please help me with this.

perl version used is 5.8.4

#!/usr/bin/perl -w use strict; use warnings; use DBI; use DBD::Teradata; print "DBI::VERSION: $DBI::VERSION\n"; use DBD::Teradata; print "DBD::Teradata::VERSION: $DBD::Teradata::VERSION\n"; #use strict; # General syntax-enforcing module. use POSIX; # to get the localtime() routine print "Connecting to DB\n"; my $dbh = DBI->connect('dbi:Teradata:xxxxx:1025', 'xxxx', 'xxxxxxxx') or die "ERROR: Unable to connect to database...\n" . DBI->errs +tr; print "Teradata DB Connected\n"; $dbh->disconnect; print "Disconnected Teradata DB\n"; print "Script Ends here\n";
Error msg:

DBI::VERSION: 1.616 DBD::Teradata::VERSION: 12.001 Connecting to DB DBI connect('PCOP1:1025','qftmap02',...) failed: System error: can't recv msg header Illegal seek; closing connection. at connect16.pl line 23 ERROR: Unable to connect to database... System error: can't recv msg header Illegal seek; closing connection. at connect16.pl line 23.

But when I run the same script in another server which has perl 5.8.0.

The output is comming out fine

DBI::VERSION: 1.50 DBD::Teradata::VERSION: 1.20 Connecting to DB Teradata DB Connected Disconnected Teradata DB Script Ends here

what is the error(System error: can't recv msg header Illegal seek; closing connection. at connect16.pl line 23) all about?? Please help ....


In reply to System error: can't recv msg header Illegal seek; closing connection. at connect16.pl line 23 by andrew878

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.