RE: Oracle DBD runtime error



Terry Maragakis wrote:
I just installed DBI and Oracle DBD.

Did you also *just* install the Oracle client? Are you able to run
sqlplus
without problems?

Try this with your own user ID:
sqlplus scott/tiger@DWHDEVR1

I can run the following program without error as root:

#!/bin/perl -w

use DBI;
use DBD::Oracle;
my $dbh=DBI->connect("dbi:Oracle:DWHDEVR1","scott","tiger");
$dbh->disconnect();

But when I try to run it under my own user ID I get the
following error:

Can't load '/usr/perl5/site_perl/5.8.4/sun4-solaris-
64int/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1:
perl: fatal:
/software/app/oracle/product/10.1.0/db_1/lib32/libclntsh.so.10.1:
Permission denied at /usr/perl5/5.8.4/lib/sun4-solaris-
64int/DynaLoader.pm line 230. at ./test.pl line 4 Compilation failed
in require at ./test.pl line 4. BEGIN failed--compilation aborted at
./test.pl line 4.

It looks like a permissions problem but I cannot figure out where.

My guess is that the Oracle installer set the permissions on the Oracle
client
needlessly strict.

With your own user ID, try to cd into
/software/app/oracle/product/10.1.0/db_1/lib32, one directory at a time
until you are stopped by permissions, e.g.:

me@local:~> cd /software
me@local:/software> cd app
me@local:/software/app> cd oracle
me@local:/software/app/oracle> cd product
me@local:/software/app/oracle/product> cd 10.1.0
me@local:/software/app/oracle/product/10.1.0> cd db_1
-bash: cd: db_1: Permission denied

If you don't run into problems there, check the permissions on
libclntsh.so.10.1 itself. Maybe it's missing the o+r bit.

Regards,
Philip
.



Relevant Pages

  • RE: Oracle 9i release 2 on Win2KSP4. .NET 1.1.. Exception from OracleC
    ... Install the full client. ... SQLPlus only requires part of the Oracle Client to ... You will have to pull out the Oracle medium. ... I'm able to talk to my database via SQLPlus but> when I try to connnect via the OracleConnection's Openmethod I get> an error saying ...
    (microsoft.public.dotnet.framework)
  • Re: Oracle Probs with ADO.NET
    ... The thing i dont get is that i only have one version of Oracle installed on my PC, ... > The OP is able to load the oci.dll, so it is not a permissions issue at all. ... > Oracle Client 8.1.7 as reported, rather has something prior to Oracle Client ... > default path environment setting. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: DBD::Oracle 1.19 fails to find Oracle version, problem and solution
    ... I don't understand your response since the problem I am seeing is that sqlplus will NOT run if ORACLE_HOME is defined and it does not seem related to combining libraries into one. ... Just attempted to install DBD::Oracle 1.19 on an Ubuntu Server 7.04 Feisty machine running Perl v5.8.8 (and instant client 10.2.0.3-20061115) and hit a problem with the Makefile.PL not being able to determine my Oracle version. ... WARNING: The tests will probably fail unless you set ORACLE_HOME yourself! ... You may need to set ORACLE_HOME to your Oracle software directory ...
    (perl.dbi.users)
  • RE: Breakable
    ... One of the problems with this is that sqlplus assumes that the user must ... permissions to run svrmgrl as the oracle user so they can ... at least pose some other security risks. ... the database rather than the client also suggests to me that Oracle's ...
    (Bugtraq)
  • Re: Transfer data from oracle to oracle using sqlplus only
    ... I want to take parts of tables from one oracle db to the other ... writes a script, like this: ... file created from sqlplus and put it back in the database is sqlldr. ... By defining an External Table in the target database for each file ...
    (comp.databases.oracle.server)