Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Class::DBI::Oracle environment variable issue

by mildside (Friar)
on Nov 22, 2005 at 23:01 UTC ( [id://510952]=note: print w/replies, xml ) Need Help??


in reply to Re: Class::DBI::Oracle environment variable issue
in thread Class::DBI::Oracle environment variable issue

Thanks herveus, this has worked a treat! I changed the 'and' to an 'or', and slightly changed the 'exec', but otherwise followed your example pretty closely. My new BEGIN block follows:
BEGIN { if (!defined($ENV{'ORACLE_HOME'}) || !defined($ENV{'LD_LIBRARY_PA +TH'})) { $ENV{'ORACLE_HOME'} = "/users/oracle/product/9.2.0"; $ENV{'LD_LIBRARY_PATH'} = $ENV{'ORACLE_HOME'} . "/lib"; exec($^X, $0, @ARGV); } }
Thanks again,
mildside

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://510952]
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: (6)
As of 2024-04-18 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found