Brethren;
I am trying to get DBI & DBD-Teradata working at a new site. I have worked with this stuff before and it has worked great for me. Now however I'm stumped. I took the canonical DBI connect example and modified it for Teradata & my site:
#!/usr/bin/perl # # DBCInfo Query Based on Cannonical Perl DBI connection to Mysql. ###################################################################### +######## use DBI; $host = "Host Address"; # = "localhost", the server your are on. $db = "My User Name"; # your username (= login name = account n +ame ) $user = $db; # your Database name is the same as your accoun +t name. $pwd = "Password"; # Your account password # connect to the database. print(__PACKAGE__ . ':' . __LINE__ . ":Connecting...\n"); $dbh = DBI->connect( "DBI:Teradata:$host", $user, $pwd) or die "Connecting : $DBI::errstr\n "; print(__PACKAGE__ . ':' . __LINE__ . ":Connected.\n"); $sql = "SELECT * FROM DBC.DBCInfo"; # executing the SQL statement. $sth = $dbh->prepare($sql) or die "preparing: ",$dbh->errstr; $sth->execute or die "executing: ", $dbh->errstr; print "content-type: text/html\n\n"; # one of the functions to retrieve data from the table results # check perldoc DBI for more methods. while ($row = $sth->fetchrow_hashref) { foreach(sort(keys(%$row))) { print("$_:\[$row->{$_}\]\n"); } }
Of course the appropriate Host, user & password are filled in on the real script. When run it just tries to connect and dies. It doesn't come back from the connect back to the main program. No error messages or warnings either. I have traced it as far as I'm able and it seems to be getting a session number in Teradata.pm but the $dbh seems to be empty.
I'm using DBI v1.48, DBD-Teradata v1.20, Crypt-Blowfish v2.09 and Teradata V2R5.01
Any Ideas?

In reply to Unable to Connect using DBI & DBD-Teradata by NateTut

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.