1. 介质下载

-rw-r--r-- 1

oracle oinstall 592307 Apr 5

00:58 DBI-1.633.tar.gz

-rw-r--r-- 1

oracle oinstall 452537 Apr 5

01:02 DBD-Oracle-1.75_2.tar.gz

2. 安装DBD::Oracle

[root@ora10g DBI-1.633]#perl

Makefile.PL

*** Your LANG environment variable is set to 'en_US.UTF-8'

*** This may cause problems for some perl installations.

*** If you get test failures, please try again with LANG

unset.

*** If that then works, please email dbi-dev@perl.org with

details

*** including the output of 'perl -V'

Your perl was compiled with gcc (version 4.4.6 20120305 (Red Hat

4.4.6-4)), okay.

Creating test wrappers for DBD::Gofer:

t/zvg_01basics.t

t/zvg_02dbidrv.t

t/zvg_03handle.t

t/zvg_04mods.t

t/zvg_05concathash.t

t/zvg_06attrs.t

t/zvg_07kids.t

t/zvg_08keeperr.t

t/zvg_09trace.t

t/zvg_10examp.t

[root@ora10g DBI-1.633]# make

[root@ora10g DBI-1.633]# make test

Files=182, Tests=0, 5 wallclock secs ( 0.40

usr 0.40 sys + 2.67

cusr 0.75 csys = 4.22

CPU)

Result: FAIL

Failed 176/182 test programs. 0/0 subtests failed.

make: *** [test_dynamic] Error 2

[root@ora10g DBI-1.633]# make install

[root@ora10g perl_script]# chmod u+x list.pl

[root@ora10g perl_script]# ./list.pl

DBI -- 1.633

Perl -- 5.10.1

说明DBI已经安装好了。

3. 下载并安装相关oracle软件包

下载地址:http://www.oracle.com/technetwork/topics/linuxsoft-082809.html

因为我的Oracle版本是10.2.0.5,所以下载10205的客户端软件包

-rw-r--r-- 1

oracle oinstall 745257 Apr 9

05:39oracle-instantclient-sqlplus-10.2.0.5-1.i386.rpm

-rw-r--r-- 1

oracle oinstall 32883472

Apr 9

05:40oracle-instantclient-basic-10.2.0.5-1.i386.rpm

-rw-r--r-- 1

oracle oinstall 289726 Apr 9

05:43oracle-instantclient-devel-10.2.0.5-1.i386.rpm

[root@ora10g opt]# rpm -ivh

oracle-instantclient-basic-10.2.0.5-1.i386.rpm

Preparing...  ########################################### [100%]

1:oracle-instantclient-ba###########################################

[100%]

[root@ora10g opt]# rpm -ivh

oracle-instantclient-devel-10.2.0.5-1.i386.rpm

Preparing...  ########################################### [100%]

1:oracle-instantclient-de###########################################

[100%]

[root@ora10g opt]# rpm -ivh

oracle-instantclient-sqlplus-10.2.0.5-1.i386.rpm

Preparing...  ###########################################

[100%]

1:oracle-instantclient-sq###########################################

[100%]

4. 安装DBD-Oracle

--关闭监听,数据库

[root@ora10g DBD-Oracle-1.75_2]#

exportORACLE_HOME=/u01/oracle/product/10.2.0/db_1

[root@ora10g DBD-Oracle-1.75_2]#

exportLD_LIBRARY_PATH=/u01/oracle/product/10.2.0/db_1/lib:/lib:/usr/lib:/usr/local/lib

[root@ora10g

DBD-Oracle-1.75_2]#perl

Makefile.PL

Using DBI 1.633 (for perl 5.010001 on i386-linux-thread-multi)

installed in /usr/local/lib/perl5/auto/DBI/

Configuring DBD::Oracle for perl 5.010001 on linux

(i386-linux-thread-multi)

If you encounter any problem, a collection of troubleshooting

guides are available under lib/DBD/Oracle/Troubleshooting.

'DBD::Oracle::Troubleshooting' is the general troubleshooting

guide, while platform-specific troubleshooting hints

live in their labelled sub-document (e.g., Win32

hints are gathered in

'lib/DBD/Oracle/Troubleshooting/Win32.pod').

Installing on a linux, Ver#2.6

Using Oracle in /u01/oracle/product/10.2.0/db_1

DEFINE _SQLPLUS_RELEASE = "1002000500" (CHAR)

Oracle version 10.2.0.5 (10.2)

Found direct-link candidates: libclntsh.so

Oracle sysliblist: -ldl -lm -lpthread -lnsl -lirc

Found header files in

/u01/oracle/product/10.2.0/db_1/rdbms/public.

Your LD_LIBRARY_PATH env var is set to

'/u01/oracle/product/10.2.0/db_1/lib:/lib:/usr/lib:/usr/local/lib'

client_version=10.2

DEFINE= -Wall -Wno-comment -DUTF8_SUPPORT

-DORA_OCI_VERSION=\"10.2.0.5\" -DORA_OCI_102

Checking for functioning wait.ph

System: perl5.010001 linux x86-022.build.eng.bos.redhat.com

2.6.18-308.16.1.el5 #1 smp tue sep 18 07:21:07 edt 2012 i686 i686

i386 gnulinux

Compiler: gcc -O2 -g -pipe

-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector

--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom

-fasynchronous-unwind-tables -D_REENTRANT -D_GNU_SOURCE

-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include

-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

Linker: /usr/bin/ld

Sysliblist: -ldl -lm -lpthread -lnsl -lirc

Linking with -lclntsh.

Checking if your kit is complete...

Looks good

LD_RUN_PATH=/u01/oracle/product/10.2.0/db_1/lib

Using DBD::Oracle 1.75_2.

Using DBD::Oracle 1.75_2.

Using DBI 1.633 (for perl 5.010001 on i386-linux-thread-multi)

installed in /usr/local/lib/perl5/auto/DBI/

Writing Makefile for DBD::Oracle

[root@ora10g DBD-Oracle-1.75_2]#make

[root@ora10g

DBD-Oracle-1.75_2]#make

test

Result:

FAIL

Failed 38/38 test programs. 0/0 subtests failed.

make: *** [test_dynamic] Error 2

[root@ora10g DBD-Oracle-1.75_2]#make

install

[root@ora10g ~]# cd perl_script/

[root@ora10g perl_script]# cat list.pl

#!/usr/bin/perl

use strict;

use ExtUtils::Installed;

my $inst= ExtUtils::Installed->new();

my @modules = $inst->modules();

foreach(@modules)

{

my $ver = $inst->version($_) || "???";

printf("%-12s -- %s\n", $_,

$ver); }

exit;

[root@ora10g perl_script]# ./list.pl

DBD::Oracle -- 1.75_2

DBI -- 1.633

Perl -- 5.10.1

说明DBI和DBD已经安装好了。

Oracle11g下安装DBD

1.安装linux_11gR2_examples软件包

2.设置环境变量

3.安装DBD::Oracle

4.检查安装

linux在终端打开dbi,Linux下安装DBI和DBD相关推荐

  1. linux安装应用程序dbd,Linux下安装DBI和DBD

    1. 介质下载 www.cpan.org打开cpan的主页,然后点击search.cpan.org,搜索DBI和DBD::Oracle -rw-r--r-- 1 oracle oinstall 592 ...

  2. 【Linux】【服务器】 CentOS7下安装MySQL(版本8.0)详细过程步骤

    一.检查是否安装过mysql [Linux][服务器]CentOS7下卸载MySQL详细过程步骤 二.下载Linux下的Mysql包,打开Mysql官网 1.MySQL官网 2.滑到最后,点击MySQ ...

  3. linux mysql主从半同步_centos下安装mysql主从架构(半同步/多实例)

    centos下安装mysql主从架构(半同步/多实例) [toc] 简介 本教程会进行mysql一机多实例的安装.mysql主从同步配置.半同步配置 环境 OS: CentOS Linux relea ...

  4. linux 6.8 dns,CentOS6.8下安装DNS服务器

    CentOS6.8下安装DNS服务器 1.安装DNS服务器组件 安装bind # yum install bind bind-libs bind-utils bind-chroot 2.修改主配置文件 ...

  5. 【Linux入门连载一】[Win10下安装Linux虚拟机]VMWare15运行CentOS7(亲测有效)

    写在前面:本文根据狂神的Linux视频完成而来 笔者之前安装的双系统,用的是Ubuntu.现在安装的是虚拟机,用的是CentOS. 主要目的是学习Linux系统的基本知识.而本文呢,主要记录自己安装软 ...

  6. linux :YOLO5配置(ubuntu 20.04 下安装运行yolov5)

    ubuntu 20.04 下安装运行yolov5 新建文件夹,安装python 安装 python-pip: 克隆YOLOv5Git code 配置YOLO环境 安装yolov5: ubuntu 20 ...

  7. linux硬盘保护卡,保护卡下安装Linux

    保护卡下安装Linux 发布时间:2008-03-14 00:29:17来源:红联作者:roina 实验室的机房需要安装Linux,所以不得不请技术人员来把原来的保护卡卸载,重新规划硬盘分区,设置保护 ...

  8. linux中的mysql使用_Linux下安装和使用MySQL(二)

    三.登录MySQL 登录MySQL的命令是mysql, mysql 的使用语法如下: mysql [-u username] [-h host] [-p[password]] [dbname] use ...

  9. 可选版本 安装软件_【Linux软件】在Deepin系统下安装LibreOffice 6.1.4版本的方法

    在Deepin系统下安装LibreOffice 6.4.1版本的方法 使用的是Deepin系统,从深度应用商店看到有LibreOffice,安装了一下,发现ui是真的丑,就像是十年前的xp那样,记得前 ...

最新文章

  1. 跨域 (3) window.name
  2. 【洛谷 P2051】 [AHOI2009]中国象棋(DP)
  3. c++11 call_once 使用方法
  4. 界面设计方法 (1) — 2.活动功能的设计
  5. 用层进表面预测来重建三维物体
  6. POJ-3421 X-factor Chains---求因子+递推 或 素因子+组合数学
  7. error:Assertion failed ((unsigned)i0 (unsigned)size.p[0]) in cv::Mat::at
  8. springcloud 熔断器Hystrix的具体使用
  9. 利用处理程序错误***(下)
  10. WARNING:CPU :2 PID:593 at net/wireless/nl802.c:2883 nl80211_send_chandef+0x54/0x180
  11. 好用的电子书网站 Z-library
  12. 通达OA2008从windows环境移植到linux部署手册
  13. Linux进程之如何查看进程详情?
  14. Linux 搭建mysql读写分离
  15. 计算机二级ms通过率,计算机二级office通过率高吗
  16. VS2010 旗舰版序列号
  17. 【机器学习】——逻辑模型:树模型(决策树)
  18. 移动硬盘格式化(pc和mac共用)-菜鸟级解决方案[转]
  19. 九型性格心理测试 (From Ulla Zang荣格的个人性格测验题目)
  20. IDEA精选插件使用,建议收藏

热门文章

  1. 完美破解CSDN的博客皮肤
  2. 良心测评,推荐超实用的4款UI设计软件!
  3. SpringBoot连接Redis集群时发生错误Cannot determine a partition to read for slot
  4. HTML 知识点 小结
  5. 计算机图行学有很多应用 下列直接的应用是,计算机图形学(计算机合成图像)有很多应用,以下所列中最直接的应用是...
  6. python 蒙特卡洛模拟股价_12 Python总结之蒙特卡洛模拟
  7. 【Kivy自学笔记】Python开发App必备!Kivy打包exe文件!(补充:设置Kivy应用logo导入kv文件)
  8. 47-Java编程案例七:双色球系统开发
  9. Swift和Objective-C互相调用
  10. 2017年考研数学一真题 ​​​