|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^2: Perl DBI not working with Oracle DBD in 11g r2 environmentby seekhelp (Initiate) |
| on Nov 23, 2011 at 17:20 UTC ( #939700=note: print w/ replies, xml ) | Need Help?? |
|
Thank you very much for you response !! </code> #!/u00/app/xxx/bin/perl my $ORACLE_HOME = "/u00/app/oracle/product/11.2.0.2"; my $ORACLE_SID="xxxxT11"; $ENV{ORACLE_HOME}=$ORACLE_HOME; $ENV{ORACLE_SID}=$ORACLE_SID; $ENV{PATH}="$ORACLE_HOME/bin"; $ENV{LD_LIBRARY_PATH}="$ORACLE_HOME/lib"; use strict; use DBI; my $dbh = DBI->connect( 'dbi:Oracle:orcl', 'scott', 'tiger', ) || die "Database connection not made: $DBI::errstr"; $dbh->disconnect; </code> ----------------------- Error : failed: (UNKNOWN OCI STATUS 1804) OCIInitialize. Check ORACLE_HOME and NLS settings etc. at newtest line 10 ------------------------- its not even checking my Credentials..( scott is not login user ) failing to connect. ----------------------- Please let me know if I am missing something here !! Thanks all !!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||