Discussion:
[Nagios-users] check_oracle_instance.pl: Can't locate object method "driver"
Bret Goodfellow
2006-10-13 19:48:45 UTC
Permalink
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.

Cheers
r***@uk.bnpparibas.com
2006-10-15 11:58:10 UTC
Permalink
Post by Bret Goodfellow
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
serv:~ > ./check_oracel_instance.pl -u nagios -p password -c mwm -t
51/55
Post by Bret Goodfellow
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

Loading...