Operating System - HP-UX
1855738 Members
1791 Online
104103 Solutions
New Discussion

Use perl DBD::Informix error ?

 
SOLVED
Go to solution
Asics
Occasional Advisor

Use perl DBD::Informix error ?

Use perl DBD::Informix error ?
Please result my trobule,thanks ! ^_^
#! /opt/perl64/bin/perl5.8.3
use DBI;
use diagnostics;
my $data_source = "DBI:Informix:pdview";
my $username = "pduser";
my $password = "pduser";
my $dbh = DBI->connect($data_source, $username, $password) or die "Error! DBI::errstr";
print "Connetc informix ok......\n";
$dbh -> disconnect();
exit 0;
==================
Error message:
DBI connect('pdview','pduser',...) failed: SQL: -23101: Unable to load locale categories. at connect5 line 7
Uncaught exception from user code:
Error! DBI::errstr at connect5 line 7.
1 REPLY 1
Hein van den Heuvel
Honored Contributor
Solution

Re: Use perl DBD::Informix error ?


That is not going to be a perl error, but an informix configuration problem.

Hit Google with +informix +"Unable to load locale categories" and you'll get about 175 pointers. So it is not an uncommon Informix reported error.

One of those suggests: Run Informix/Bin/regcopy.exe

That doesn mean a thing to me, but maybe it give you something to go on?

Cheers,
Hein.