secret has asked for the wisdom of the Perl Monks concerning the following question:
I try to connect to an Oracle 920 base with the classic :
I get the following error :my $dbh = DBI->connect($dsn, $user, $pass, { RaiseError => 1, AutoCom +mit => 1 }) or die 'Connexion a la base impossible: ' . DBI->errstr;
I'm using perl 5.8.0 on solaris 5.8 .DBI connect('XX','xx',...) failed: ERROR OCIEnvInit at xx_dbfunc.pm li +ne 36
Various searches lead me to believe that this is due to the version of DBD::Oracle not being compiled with the proper oracle home directory set.
I do not know where this Perl, DBI and DBD::Oracle come from, but most likely from a standard Solaris package. Has anyone encountred this before, i.e. is there some Solaris doc or changelog that point to this problem ?
Is there an easier way than to re-install the DBD::Oracle ?
Can I assume that installing the latest DBD::Oracle and DBI will allow me to connect to the 9i client ?
Thanks for your help ,
secret .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Version of DBD::Oracle needed to connect to 9i ?
by xorl (Deacon) on May 12, 2006 at 14:52 UTC | |
by secret (Beadle) on May 12, 2006 at 14:58 UTC | |
|
Re: Version of DBD::Oracle needed to connect to 9i ?
by dragonchild (Archbishop) on May 12, 2006 at 15:28 UTC | |
|
Re: Version of DBD::Oracle needed to connect to 9i ?
by marto (Cardinal) on May 12, 2006 at 14:54 UTC | |
by secret (Beadle) on May 16, 2006 at 13:44 UTC |