Redhat 安装DBI和ORACLE DBD tar -zxvf DBI-1.616.tar.gz cd DBI-1.616 perl Makefile.PL make make install 2. oadb01:/root# tar -zxvf DBD-Oracle-1.36.tar.gz 声明ORACLE_HOME oadb01:/root# export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1 perl Makefile.pl make make install install_driver(Oracle) failed: Can't load '/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.11.1: 无法打开共享对象文件: 没有那个文件或目录 at /usr/lib64/perl5/DynaLoader.pm line 200. at (eval 3) line 3 Compilation failed in require at (eval 3) line 3. Perhaps a required shared library or dll isn't installed where expected at mon_oracle.pl line 10 jrhapt02:/home/tomcat/DBD-Oracle-1.36# echo $ORACLE_HOME/lib >> /etc/ld.so.conf jrhapt02:/home/tomcat/DBD-Oracle-1.36# ldconfig