FIX:./check_oracle_health--connect ORCL--mode connection-time error problem

Source: Internet
Author: User

Error hints

./check_oracle_health--connect ORCL--mode connection-time


Critical-cannot Connect to ORCL. Install_driver (Oracle) Failed:can ' t locate dbd/oracle.pm in @INC (@INC contains:./usr/local/lib64/perl5/usr/local/sha RE/PERL5/USR/LIB64/PERL5/VENDOR_PERL/USR/SHARE/PERL5/VENDOR_PERL/USR/LIB64/PERL5/USR/SHARE/PERL5) at (Eval 18) Line 3.

Perhaps the Dbd::oracle Perl module hasn ' t been fully installed,

Or perhaps the capitalisation of ' Oracle ' isn ' t right.

Available drivers:dbm, Examplep, File, Gofer, Proxy, Sponge, MySQL.

At./check_oracle_health Line 5891


Resolution Install_driver Oracle failed can ' t locate dbd/oracle.pm in @inc


Two methods, this can be cut with the above method


Cpan[1]:install dbd::oracle may not be installed directly for the following reasons:

......

Running make Install

Make had some problems, won ' t install

Could not read '/root/.cpan/build/dbd-oracle-1.74-zrp_am/meta.yml '. Falling methods to determine prerequisites

Failed during this command:

Pythian/dbd-oracle-1.74.tar.gz:writemakefile NO '/usr/bin/perl makefile.pl installdirs=site ' returned stat US 512


But the package has been downloaded, you can view the download record

Saving to: "/root/.cpan/sources/authors/id/p/py/pythian/dbd-oracle-1.74.tar.tmp27681"



Can be found with find/root/.cpan/sources/authors/id/p/py/pythian/dbd-oracle-1.74.tar.gz



Then move the current directory: mv/root/.cpan/sources/authors/id/p/py/pythian/dbd-oracle-1.74.tar.gz. /


Tar xvzf dbd-oracle-1.74.tar.gz Note folder permissions


After CD make prompt: Make: * * does not specify the target and cannot find the makefile. Stop it.


Query after: To compile: Here with Perl compiled: Perl makefile.pl [. PL is a Perl executable file that can be viewed by ll, and other installation methods can be viewed in the unpacking package of the install file description]


Because the environment variable to be loaded with the ORACLE's directory-related $oracle_home can be echo-derived


[Email protected] dbd-oracle-1.74]# export oracle_home=/home/oracle/app/oracle/product/11.2.0/dbhome_1

[Email protected] dbd-oracle-1.74]# echo $ORACLE _home

Then Make&&make install



Then su-oracle the user to execute the check_oracle_health command to view the results


[Email protected] libexec]$/check_oracle_health--connect orcl--mode connection-time--user ******--password ******

OK-0.08 seconds to connect as YOUGOU_CC | Connection_time=0.0832;1;5


Show that it has been successful!

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/05/wKiom1WvcfKyNVk9AACHcNH2mr4556.jpg "title=" 20150722183443.png "alt=" Wkiom1wvcfkynvk9aachcnh2mr4556.jpg "/>


This article from "Technical Achievement Self" blog, reproduced please contact the author!

FIX:./check_oracle_health--connect ORCL--mode connection-time error problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.