Quantcast
Channel: Teradata Downloads - Connectivity
Viewing all articles
Browse latest Browse all 445

DBD::ODBC Connects from command line, not thru crontab

$
0
0

I'm hoping someone can help with this DBI error.  I have installed the perl DBD::ODBC driver into a custom directory and everything works fine when the scripts get kicked off via the command line.  At the top of each perl script I add the 'use lib pathto dbd::odbc'.  However when running in crontab the connect is having an issue.  It was first complaining about 
System information file not found. Please check the ODBCINI environment variable
So I fixed that by adding the envrionmental variable to the script.  I've also added 'LD_LIBRARY_PATH' and 'PERL5LIB' entries to each script as well, however I keep getting this error:

DBI Error => 1

DBI Errstr => 523 80 (SQL-82)

DBI State => S1000

 

Since it works fine from command line runs I'm assuming it has to have something to do with an environmental variable.  But in adding these I'm not sure what else it could be?  Please let me know if you wanted me to post anything for diags.  Thanks.
 

Forums: 

Viewing all articles
Browse latest Browse all 445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>