in reply to Re^6: CGI-SQL Query Issue
in thread CGI-SQL Query Issue

See CGI on how to accept parameters in a CGI script. You should remove the manual CGI parsing from your script and use CGI for the query parsing.

There is no $? command in Perl. If you mean that you inspected the $? variable in Perl, then that means that the shell that runs the sqlplus command did complete without error. Most likely the user your webserver runs your program as does not have access to sqlplus or maybe the Oracle libraries are not available when the webserver runs sqlplus. You will have to debug this yourself, most likely by inspecting %ENV when you run your program from the command line and when you run it from the webserver.

Replies are listed 'Best First'.
Re^8: CGI-SQL Query Issue
by Anonymous Monk on Mar 17, 2016 at 15:28 UTC
    My program runs well with proper results, when I run it from command line. But from web server , it does not output anything. What could be the issue?

      In my reply above, I said:

      You will have to debug this yourself, most likely by inspecting %ENV when you run your program from the command line and when you run it from the webserver.

      What part of this sentence is problematic for you to follow? Where did you encounter problems?

        I don't know how to proceed, this is my problem. How to debug this?