I have a Perl script that would amongst other things Invoke Oracle 8i's SQL Plus with a perl generated SQL script for execution.
The problem is that now the SQL script needs to be invoked against different Oracle database (denoted by the oracle_sid environment variable).
Is it possible to set this variable in Perl? The way I do it in UNIX would be something like
I just wonder if it would be 'better' to have an ordinary shell script that sets the environment and kicks of the perl script or whether it could be as easily done in Perl or not?
Also, when I pipe output from, say, invoking SQL script, is there a way to do something like
in UNIX?
The problem is that now the SQL script needs to be invoked against different Oracle database (denoted by the oracle_sid environment variable).
Is it possible to set this variable in Perl? The way I do it in UNIX would be something like
Code:
ORACLE_SID=DB1
export ORACLE_SID
I just wonder if it would be 'better' to have an ordinary shell script that sets the environment and kicks of the perl script or whether it could be as easily done in Perl or not?
Also, when I pipe output from, say, invoking SQL script, is there a way to do something like
Code:
set -x