Ricardo has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use DBI; use DBD::Oracle; $ENV{'LD_LIBRARY_PATH'} = '/home/httpd/perl/instantclient_11_1/'; #$ENV{'NLS_LANG'} = 'AMERICAN_AMERICA.UTF8'; #$ENV{'NLS_LANG'} = 'AMERICAN_AMERICA.AL32UTF8'; #$$ENV{'NLS_NCHAR'} = 'AL32UTF8'; #$ENV{'NLS_NCHAR'} = 'UTF8'; #$ENV{NLS_LANG}="AMERICAN_AMERICA.WE8MACROMAN8S"; #$ENV{'NLS_LANG'} = 'WE8ISO8859P1'; #$ENV{'NLS_LANG'} = 'WE8MSWIN1252'; #$ENV{'NLS_LANG'} = 'US7ASCII'; #$ENV{'NLS_LANG'} = 'UTF8'; #$ENV{'NLS_LANG'} = 'AL32UTF32'; $ENV{NLS_LANG} = 'american_america.we8iso8859p1'; my $host= my $sid= my $port= my $user = my $passwd = my $dbh = DBI>connect("dbi:Oracle:host=$host;port=$port;sid=$sid", +$user, $passwd) or die "Unable to connect: $DBI::errstr"; my $statement = 'SELECT * FROM table'; $sth = $dbh->prepare($statement); $sth->execute; my $result = $sth->dump_results;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::ORACLE - empty strings in result while there supposed to be values
by derby (Abbot) on Oct 10, 2007 at 12:28 UTC | |
|
Re: DBD::ORACLE - empty strings in result while there supposed to be values
by dwhite20899 (Friar) on Oct 10, 2007 at 12:31 UTC | |
|
Re: DBD::ORACLE - empty strings in result while there supposed to be values
by rdfield (Priest) on Oct 10, 2007 at 14:34 UTC |