check_oracle_instance.pl: Can't locate object method "driver"

rob.moss at uk.bnpparibas.com rob.moss at uk.bnpparibas.com
Sun Oct 15 13:58:10 CEST 2006


nagios-users-bounces at lists.sourceforge.net wrote on 13/10/2006 20:48:45:

> I am pretty new to perl, and would like to understand why I am 
> getting the following error when I run check_oracle_instance.pl 
> natively from the linux shell:
> 
> serv:~ > ./check_oracel_instance.pl -u nagios -p password -c mwm -t 
51/55
> DBD::Oracle initialisation failed: Can't locate object method 
> "driver" via package "DBD::Oracle" at /usr/lib/perl5/vendor_perl/5.
> 8.3/x86_64-linux-thread-multi/DBI.pm line 731.
> 
> Perhaps the capitalisation of DBD 'Oracle' isn't right. at .
> /check_oracle_instance.pl line 157
> serv:~ >
> 
> I'm sure some perl guru knows exactly what is wrong here, and could 
> point me in the right direction.

This error usually means you haven't installed the DBD::Oracle driver

To check, do this

ls -la /usr/lib/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi/DBD/

If there is no Oracle.pm module then you haven't installed it .. install 
it however you install packages on the distro you're running, or do this:

perl -MCPAN -e 'install DBD::Oracle'

Some more info:
http://search.cpan.org/~pythian/DBD-Oracle-1.18a/Oracle.pm

This is a common perl module, and you should find plenty of information 
about it on google or another list for perl/databases.

Cheers
rob


This message and any attachments (the "message") is 
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified. 

**********************************************************************************************

BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.

BNP Paribas Securities Services London Branch is authorised 
by CECEI & AMF and is regulated by the Financial Services 
Authority for the conduct of its investment business in 
the United Kingdom.
  
BNP Paribas Fund Services UK Limited is authorised and 
regulated by the Financial Services Authority

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061015/3bb19099/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list