Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: setting environment variable issue

by runrig (Abbot)
on Aug 09, 2011 at 18:08 UTC ( [id://919513]=note: print w/replies, xml ) Need Help??


in reply to setting environment variable issue

Write a shell wrapper to execute your perl, and set ORACLE_HOME before you execute the perl.

Replies are listed 'Best First'.
Re^2: setting environment variable issue
by afoken (Chancellor) on Aug 09, 2011 at 19:32 UTC

    Oracle libraries are loaded when perl is already running1, while loading DBD::Oracle. So you can modify %ENV inside Perl, as long as you do so before loading DBD::Oracle. Typically, you would use a BEGIN block in the main script, before the use DBI / use DBD::Oracle lines.

    Alexander

    1) Exception to the rule: ancient oraperls, that link perl and Oracle code into a single executable

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://919513]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2025-12-12 18:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (92 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.