Advertisement

11.28.2007 at 10:44AM PST, ID: 22988438
[x]
Attachment Details

Perl DBI ERROR OCIEnvNlsCreate (check ORACLE_HOME and NLS settings etc.)

Asked by jasonsbytes in Perl Programming Language, Oracle 8.x

Tags: error, ocienvnlscreate, oracle_home, check, dbi

I'm moving some stuff to a new server and I'm getting this error:

DBI connect('okcdev00','xxxx',...) failed: ERROR OCIEnvNlsCreate (check ORACLE_HOME and NLS settings etc.) at /u/unilocal/apache2/cgi-bin/test.cgi line 22

Test script attached...

What other information do I need to provide to help solve this problem?

Thank you!Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
#!/usr/bin/perl
 
use strict;
use DBI;
 
print "Content-type: text/html\n\n";
print "Connecting ... <p>";
 
# Oracle Path
$ENV{ORACLE_HOME} = "/u/spool/oracle/product/8.1.7";
$ENV{NLS_LANG} = "AMERICAN_AMERICA.UTF8";
 
my $db = "okcdev00";
my $user = "xxxx";
my $passwd = "xxxx";
my $dbh;
 
eval
{
        print "ORACLE_HOME: '$ENV{ORACLE_HOME}' <br />";
        print "NLS: '$ENV{NLS_LANG}' <hr>";
   $dbh = DBI->connect("dbi:Oracle:$db", $user, $passwd, {RaiseError => 1, AutoCommit => 1});
};
 
if ($@)
{
        print $@;
}
else
{
        print 'No Error...';
        print ' dbh returned' if ($dbh);
}
[+][-]11.28.2007 at 11:16AM PST, ID: 20367819

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 11:45AM PST, ID: 20368063

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 12:35PM PST, ID: 20368533

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 01:14PM PST, ID: 20368839

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 01:25PM PST, ID: 20368930

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 01:47PM PST, ID: 20369127

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 02:03PM PST, ID: 20369265

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 02:35PM PST, ID: 20369546

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 03:39PM PST, ID: 20370135

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 03:52PM PST, ID: 20370198

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 04:35PM PST, ID: 20370397

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, Oracle 8.x
Tags: error, ocienvnlscreate, oracle_home, check, dbi
Sign Up Now!
Solution Provided By: Adam314
Participating Experts: 1
Solution Grade: B
 
 
[+][-]12.11.2007 at 07:21AM PST, ID: 20449860

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628