in reply to Re: DBI, DBD::Oracle and LD_LIBRARY_PATH
in thread DBI, DBD::Oracle and LD_LIBRARY_PATH
After much work (and tye and lhoward's assistance), here's what I've got to work:
*phew*
lhoward says this is a problem with the way Solaris handles locating dynamically loaded libraries. ld.so.1(1) caches the LD_LIBRARY_PATH, so any changes we make don't matter. env(1) forces this to update.BEGIN { unless ($ENV{BEGIN_BLOCK}) { $ENV{ORACLE_HOME} = '/common/oracle/product/v8.1.6'; $ENV{LD_LIBRARY_PATH} = "$ENV{ORACLE_HOME}/lib"; $ENV{TNS_ADMIN} = '/common/oracle/env'; $ENV{BEGIN_BLOCK} = 1; exec 'env',$0,@ARGV; } } use DBI; $dbh = DBI->connect('','scmuser/scmuser@itopstst','','Oracle'); die $DBI::errstr unless defined $dbh;
*phew*
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: DBI, DBD::Oracle and LD_LIBRARY_PATH
by Anonymous Monk on Nov 30, 2008 at 23:25 UTC | |
by Anonymous Monk on Feb 24, 2009 at 16:11 UTC | |
by Anonymous Monk on Nov 08, 2012 at 22:12 UTC | |
Re^3: DBI, DBD::Oracle and LD_LIBRARY_PATH
by Anonymous Monk on Oct 16, 2007 at 02:12 UTC | |
Re^3: DBI, DBD::Oracle and LD_LIBRARY_PATH
by Anonymous Monk on Oct 31, 2012 at 18:22 UTC | |
by Anonymous Monk on Nov 01, 2012 at 11:11 UTC |
In Section
Seekers of Perl Wisdom