Advertisement

10.06.2008 at 05:27PM PDT, ID: 23792414
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

When I run the script from the command line, it works but not on the browser

Asked by sh_ in Apache Web Server, CGI Scripting, Oracle 10.x

Tags: , , , ,

When I execute the Perl/CGI script on the command line, it works but not through the browser. I am using Apache webserver installed as root in Linux.

OS :  => SUSE Linux 10.2
Perl :  => v5.8.8 built for i586-linux-thread-multi
Oracle :  => 10.2.0.1
DBI :  => 1.607
DBD::Oracle => 1.22
Apache ::  => Server version: Apache/2.2.9 (Unix)

Uname -a

Linux mac-linux 2.6.16.60-0.23-default #1 Thu May 15 06:38:31 UTC 2008 i686 i686 i386 GNU/Linux


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:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
#!/usr/bin/perl -w
 
use strict;
use lib qw(/usr/lib/perl5/site_perl/5.8.8);
BEGIN {
$ENV{ORACLE_HOME} = "/dbs/oracle/product/10.2.0.1";
$ENV{LD_LIBRARY_PATH} = "/dbs/oracle/product/10.2.0.1/lib:/usr/local/lib";
$ENV{TNS_ADMIN} = "/dbs/oracle/product/10.2.0.1/network/admin";
$ENV{ORA_NLS} = "/dbs/oracle/product/10.2.0.1/nls/data";
$ENV{NLS_LANG} = "AMERICAN_AMERICA.US7ASCII";
$ENV{ORA_NLS10} = "/dbs/oracle/product/10.2.0.1/nls/data";
$ENV{PATH} = "/dbs/oracle/product/10.2.0.1/bin:/usr/bin";
}
 
use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard);
use DBI; # we.ll talk about this in more detail later
use DBD::Oracle;
 
my $url = url;
print header,
start_html;
DBI->trace(1, '/tmp/11.log');
my $db = DBI->connect( 'dbi:Oracle:ORCL10G', 'scott', 'tiger' ) || die( $DBI::errstr . "\n" );
$db->{AutoCommit}    = 0;
$db->{RaiseError}    = 1;
$db->{ora_check_sql} = 0;
$db->{RowCacheSize}  = 16;
my $SEL = "select * from emp";
my $sth = $db->prepare($SEL);
$sth->execute();
 
while ( my @row = $sth->fetchrow_array() ) {
    foreach (@row) {
        $_ = "\t" if !defined($_);
        print "$_\t";
    }
    print "\n";
}
 
END {
    $db->disconnect if defined($db);
}
print end_html;
Attachments:
 
Working of the script and environment
 
[+][-]10.06.2008 at 05:40PM PDT, ID: 22655706

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.06.2008 at 05:44PM PDT, ID: 22655728

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.06.2008 at 05:48PM PDT, ID: 22655752

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.06.2008 at 06:11PM PDT, ID: 22655871

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.06.2008 at 06:34PM PDT, ID: 22655994

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.06.2008 at 07:01PM PDT, ID: 22656118

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.06.2008 at 08:27PM PDT, ID: 22656416

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.07.2008 at 02:16AM PDT, ID: 22657620

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 06:02AM PDT, ID: 22658899

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 08:54AM PDT, ID: 22660634

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 04:41PM PDT, ID: 22664906

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.09.2008 at 04:10PM PDT, ID: 22683271

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.09.2008 at 05:00PM PDT, ID: 22683477

View this solution now by starting your 30-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: Apache Web Server, CGI Scripting, Oracle 10.x
Tags: Apache, Server version: Apache/2.2.9 (Unix), APACHE Perl CGI DBD::Oracle, Firefox, Software error: ERROR OCIEnvNlsCreate. Check ORACLE_HOME (Linux) env var or PATH (Windows) and or NLS settings, permissions, etc.
Sign Up Now!
Solution Provided By: sh_
Participating Experts: 4
Solution Grade: A
 
 
[+][-]10.10.2008 at 12:13AM PDT, ID: 22684804

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 - Hierarchy / EE_QW_2_20070628