| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: setting ORACLE_SID within PERL
Sybrand Bakker wrote:
> hastenthunder" <hastenthunder_at_hotmail.com> wrote:
>>I need to be able to set Linux's environment variable for Oracle within a
>>PERL script.
>>The Linux command to set environment variable is "export".
>>So I tried to set it using the system() command:
>>
>> system('export ORACLE_SID = TEST');
>>
>>But that did not seem to work [...]
$ENV{ORACLE_SID} = "TEST"; Probably within a BEGIN block (so it happens really early in the Perl processing).
> Please bear in mind questions are answered by volunteers, and RTFM-ing
> yourself usually will provide a quicker answer.
And, if you're using DBD::Oracle (and DBI), you should ask on the dbi-users_at_perl.org mailing list -- but only after RTFM-ing.
http://www.catb.org/~esr/faqs/smart-questions.html
-- Jonathan Leffler #include <disclaimer.h> Email: jleffler_at_earthlink.net, jleffler_at_us.ibm.com Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/Received on Sun Sep 12 2004 - 00:00:07 CDT
![]() |
![]() |