Perl para DBAs – Instalação

Eu não gosto de trabalhar. DBA que sabe Perl trabalha menos. Então, eu sei Perl.
Espero que com estes Posts, eu possa demonstrar isto para vocês.

Neste Post, iremos apenas instalar a Perl no OEL 6.4, e o driver para conexão com Oracle.

Como eu instalei um OEL 6.4 com o conjunto de pacotes Minimal, A Perl não vem instalado.

[oracle@OraclePRD ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[oracle@OraclePRD ~]$ perl -v
-bash: /usr/bin/perl: No such file or directory
[oracle@OraclePRD ~]$

Vou então instala-lo, juntamente com o perl-DBI (é o “ODBC” da Perl, a interface comum para drivers de bancos de dados específicos), e o perl-ExtUtils-MakeMaker, necessário para compilarmos o driver para Oracle Database.

[oracle@OraclePRD ~]$ su -
Password:
[root@OraclePRD ~]# yum -y install perl perl-DBI perl-ExtUtils-MakeMaker
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl.x86_64 4:5.10.1-131.el6_4 will be installed
--> Processing Dependency: perl-libs = 4:5.10.1-131.el6_4 for package: 4:perl-5.10.1-131.el6_4.x86_64
--> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-131.el6_4.x86_64
--> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-131.el6_4.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.10.1-131.el6_4.x86_64
--> Processing Dependency: perl(version) for package: 4:perl-5.10.1-131.el6_4.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.10.1-131.el6_4.x86_64
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
---> Package perl-ExtUtils-MakeMaker.x86_64 0:6.55-131.el6_4 will be installed
--> Processing Dependency: perl(Test::Harness) for package: perl-ExtUtils-MakeMaker-6.55-131.el6_4.x86_64
--> Processing Dependency: perl-devel for package: perl-ExtUtils-MakeMaker-6.55-131.el6_4.x86_64
--> Running transaction check
---> Package perl-Module-Pluggable.x86_64 1:3.90-131.el6_4 will be installed
---> Package perl-Pod-Simple.x86_64 1:3.13-131.el6_4 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-131.el6_4.x86_64
---> Package perl-Test-Harness.x86_64 0:3.17-131.el6_4 will be installed
---> Package perl-devel.x86_64 4:5.10.1-131.el6_4 will be installed
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.10.1-131.el6_4.x86_64
---> Package perl-libs.x86_64 4:5.10.1-131.el6_4 will be installed
---> Package perl-version.x86_64 3:0.77-131.el6_4 will be installed
--> Running transaction check
---> Package perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-131.el6_4 will be installed
---> Package perl-Pod-Escapes.x86_64 1:1.04-131.el6_4 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                              Arch                Version                              Repository               Size
=============================================================================================================================
Installing:
 perl                                 x86_64              4:5.10.1-131.el6_4                   ol6_latest               10 M
 perl-DBI                             x86_64              1.609-4.el6                          ol6_latest              706 k
 perl-ExtUtils-MakeMaker              x86_64              6.55-131.el6_4                       ol6_latest              291 k
Installing for dependencies:
 perl-ExtUtils-ParseXS                x86_64              1:2.2003.0-131.el6_4                 ol6_latest               43 k
 perl-Module-Pluggable                x86_64              1:3.90-131.el6_4                     ol6_latest               38 k
 perl-Pod-Escapes                     x86_64              1:1.04-131.el6_4                     ol6_latest               31 k
 perl-Pod-Simple                      x86_64              1:3.13-131.el6_4                     ol6_latest              210 k
 perl-Test-Harness                    x86_64              3.17-131.el6_4                       ol6_latest              230 k
 perl-devel                           x86_64              4:5.10.1-131.el6_4                   ol6_latest              421 k
 perl-libs                            x86_64              4:5.10.1-131.el6_4                   ol6_latest              576 k
 perl-version                         x86_64              3:0.77-131.el6_4                     ol6_latest               49 k

Transaction Summary
=============================================================================================================================
Install      11 Package(s)

Total download size: 13 M
Installed size: 40 M
Downloading Packages:
(1/11): perl-5.10.1-131.el6_4.x86_64.rpm                                                              |  10 MB     00:29
(2/11): perl-DBI-1.609-4.el6.x86_64.rpm                                                               | 706 kB     00:02
(3/11): perl-ExtUtils-MakeMaker-6.55-131.el6_4.x86_64.rpm                                             | 291 kB     00:01
(4/11): perl-ExtUtils-ParseXS-2.2003.0-131.el6_4.x86_64.rpm                                           |  43 kB     00:00
(5/11): perl-Module-Pluggable-3.90-131.el6_4.x86_64.rpm                                               |  38 kB     00:00
(6/11): perl-Pod-Escapes-1.04-131.el6_4.x86_64.rpm                                                    |  31 kB     00:00
(7/11): perl-Pod-Simple-3.13-131.el6_4.x86_64.rpm                                                     | 210 kB     00:00
(8/11): perl-Test-Harness-3.17-131.el6_4.x86_64.rpm                                                   | 230 kB     00:00
(9/11): perl-devel-5.10.1-131.el6_4.x86_64.rpm                                                        | 421 kB     00:01
(10/11): perl-libs-5.10.1-131.el6_4.x86_64.rpm                                                        | 576 kB     00:01
(11/11): perl-version-0.77-131.el6_4.x86_64.rpm                                                       |  49 kB     00:00
-----------------------------------------------------------------------------------------------------------------------------
Total                                                                                        309 kB/s |  13 MB     00:42
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:perl-Pod-Escapes-1.04-131.el6_4.x86_64                                                                 1/11
  Installing : 4:perl-libs-5.10.1-131.el6_4.x86_64                                                                      2/11
  Installing : 3:perl-version-0.77-131.el6_4.x86_64                                                                     3/11
  Installing : 1:perl-Module-Pluggable-3.90-131.el6_4.x86_64                                                            4/11
  Installing : 1:perl-Pod-Simple-3.13-131.el6_4.x86_64                                                                  5/11
  Installing : 4:perl-5.10.1-131.el6_4.x86_64                                                                           6/11
  Installing : 1:perl-ExtUtils-ParseXS-2.2003.0-131.el6_4.x86_64                                                        7/11
  Installing : 4:perl-devel-5.10.1-131.el6_4.x86_64                                                                     8/11
  Installing : perl-Test-Harness-3.17-131.el6_4.x86_64                                                                  9/11
  Installing : perl-ExtUtils-MakeMaker-6.55-131.el6_4.x86_64                                                           10/11
  Installing : perl-DBI-1.609-4.el6.x86_64                                                                             11/11
  Verifying  : perl-Test-Harness-3.17-131.el6_4.x86_64                                                                  1/11
  Verifying  : 1:perl-Pod-Escapes-1.04-131.el6_4.x86_64                                                                 2/11
  Verifying  : 1:perl-Pod-Simple-3.13-131.el6_4.x86_64                                                                  3/11
  Verifying  : perl-ExtUtils-MakeMaker-6.55-131.el6_4.x86_64                                                            4/11
  Verifying  : perl-DBI-1.609-4.el6.x86_64                                                                              5/11
  Verifying  : 4:perl-5.10.1-131.el6_4.x86_64                                                                           6/11
  Verifying  : 4:perl-libs-5.10.1-131.el6_4.x86_64                                                                      7/11
  Verifying  : 1:perl-ExtUtils-ParseXS-2.2003.0-131.el6_4.x86_64                                                        8/11
  Verifying  : 3:perl-version-0.77-131.el6_4.x86_64                                                                     9/11
  Verifying  : 1:perl-Module-Pluggable-3.90-131.el6_4.x86_64                                                           10/11
  Verifying  : 4:perl-devel-5.10.1-131.el6_4.x86_64                                                                    11/11

Installed:
  perl.x86_64 4:5.10.1-131.el6_4      perl-DBI.x86_64 0:1.609-4.el6      perl-ExtUtils-MakeMaker.x86_64 0:6.55-131.el6_4

Dependency Installed:
  perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-131.el6_4               perl-Module-Pluggable.x86_64 1:3.90-131.el6_4
  perl-Pod-Escapes.x86_64 1:1.04-131.el6_4                        perl-Pod-Simple.x86_64 1:3.13-131.el6_4
  perl-Test-Harness.x86_64 0:3.17-131.el6_4                       perl-devel.x86_64 4:5.10.1-131.el6_4
  perl-libs.x86_64 4:5.10.1-131.el6_4                             perl-version.x86_64 3:0.77-131.el6_4

Complete!
[root@OraclePRD ~]#

A DBI é a interface para os drivers, e e os drivers específicos de bancos de dados são os DBD. O de Oracle é o DBD-Oracle.

Para instala-lo, precisamos fazer a compilação com o usuário oracle, pois precisamos ter as variáveis ORACLE_HOME e LD_LIBRARY_PATH configuradas para os diretório corretos.

Depois de verificar as variáveis, o comando padrão de preparação da Perl é o Makefile.PL, e em seguida, o make faz a compilação.

Você não precisa de um ORACLE_HOME inteiro, de servidor, para isso. A compilação também pode ser feita apontando as variáveis de ambientes necessárias para um diretório com o Oracle Instant Client.

[oracle@OraclePRD ~]$ echo $ORACLE_HOME
/home/oracle/app/oracle/product/11.2.0.3/dbhome_1
[oracle@OraclePRD ~]$ echo $LD_LIBRARY_PATH
/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/lib:/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/lib64
[oracle@OraclePRD ~]$ tar xfz DBD-Oracle-1.66.tar.gz
[oracle@OraclePRD ~]$ cd DBD-Oracle-1.66
[oracle@OraclePRD DBD-Oracle-1.66]$ perl Makefile.PL
Using DBI 1.609 (for perl 5.010001 on x86_64-linux-thread-multi) installed in /usr/lib64/perl5/auto/DBI/

Configuring DBD::Oracle for perl 5.010001 on linux (x86_64-linux-thread-multi)

Remember to actually *READ* the README file! Especially if you have any problems.

Installing on a linux, Ver#2.6
Using Oracle in /home/oracle/app/oracle/product/11.2.0.3/dbhome_1
DEFINE _SQLPLUS_RELEASE = "1102000300" (CHAR)
Oracle version 11.2.0.3 (11.2)
Found /home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/lib/ins_rdbms.mk
Using /home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/lib/ins_rdbms.mk
Your LD_LIBRARY_PATH env var is set to ':/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/lib:/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/lib64'
Reading /home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/lib/ins_rdbms.mk
Reading /home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/lib/env_rdbms.mk
WARNING: Oracle /home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/lib/ins_rdbms.mk doesn't define a 'build' rule.

WARNING: I will now try to guess how to build and link DBD::Oracle for you.
         This kind of guess work is very error prone and Oracle-version sensitive.
         It is possible that it won't be supported in future versions of DBD::Oracle.
         *PLEASE* notify dbi-users about exactly _why_ you had to build it this way.

Found header files in /home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/public.

client_version=11.2

DEFINE= -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION="11.2.0.3" -DORA_OCI_102 -DORA_OCI_112

Checking for functioning wait.ph

System: perl5.010001 linux ca-build44.us.oracle.com 2.6.31.5-127.fc12.x86_64 #1 smp sat nov 7 21:11:14 est 2009 x86_64 x86_64 x86_64 gnulinux
Compiler:   gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -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 -lipgo -lsvml
Oracle makefiles would have used these definitions but we override them:
  CC:       $(COMPDIR)/bin/gcc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)
        $(SHARED_CFLAG) $(USRFLAGS)
           [$(GFLAG) -O3 $(CDEBUG) -m32 -trigraphs -fPIC -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/demo -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/public -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/plsql/public -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/network/public -DLINUX -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS -D__NO_CTYPE=1 -DLDAP_CM $(LPFLAGS) $(PLSQLNCGFLAGS) $(USRFLAGS)]
  LDFLAGS:  $(LDFLAGS32)
           [-m32 -o $@ -L/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms//lib32/ -L/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/lib32/ -L/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/lib32/stubs/]
Linking with  -lclntsh -ldl -lm -lpthread -lnsl -lirc -lipgo -lsvml -ldl -lm -lpthread [from $(OCISHAREDLIBS)]

Checking if your kit is complete...
Looks good
LD_RUN_PATH=/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/lib
Using DBD::Oracle 1.66.
Using DBD::Oracle 1.66.
Using DBI 1.609 (for perl 5.010001 on x86_64-linux-thread-multi) installed in /usr/lib64/perl5/auto/DBI/
Writing Makefile for DBD::Oracle

***  If you have problems...
     read all the log printed above, and the README and README.help.txt files.
     (Of course, you have read README by now anyway, haven't you?)

[oracle@OraclePRD DBD-Oracle-1.66]$ make
cp lib/DBD/Oracle/Troubleshooting/Cygwin.pod blib/lib/DBD/Oracle/Troubleshooting/Cygwin.pod
cp lib/DBD/Oracle.pm blib/lib/DBD/Oracle.pm
cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h
cp lib/DBD/Oracle/Troubleshooting/Vms.pod blib/lib/DBD/Oracle/Troubleshooting/Vms.pod
cp lib/DBD/Oracle/Troubleshooting/Hpux.pod blib/lib/DBD/Oracle/Troubleshooting/Hpux.pod
cp lib/DBD/Oracle/Troubleshooting/Linux.pod blib/lib/DBD/Oracle/Troubleshooting/Linux.pod
cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm
cp lib/DBD/Oracle/Troubleshooting.pod blib/lib/DBD/Oracle/Troubleshooting.pod
cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h
cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h
cp lib/DBD/Oracle/Troubleshooting/Sun.pod blib/lib/DBD/Oracle/Troubleshooting/Sun.pod
cp lib/DBD/Oracle/Troubleshooting/Macos.pod blib/lib/DBD/Oracle/Troubleshooting/Macos.pod
cp lib/DBD/Oracle/Troubleshooting/Aix.pod blib/lib/DBD/Oracle/Troubleshooting/Aix.pod
cp lib/DBD/Oracle/Object.pm blib/lib/DBD/Oracle/Object.pm
cp lib/DBD/Oracle/Troubleshooting/Win64.pod blib/lib/DBD/Oracle/Troubleshooting/Win64.pod
cp lib/DBD/Oracle/Troubleshooting/Win32.pod blib/lib/DBD/Oracle/Troubleshooting/Win32.pod
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
/usr/bin/perl -p -e "s/~DRIVER~/Oracle/g" /usr/lib64/perl5/auto/DBI/Driver.xst > Oracle.xsi
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp  -typemap /usr/share/perl5/ExtUtils/typemap -typemap typemap  Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c
gcc -c  -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/public -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/demo -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/public -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/plsql/public -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/network/public -I/usr/lib64/perl5/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION="1.66" -DXS_VERSION="1.66" -fPIC "-I/usr/lib64/perl5/CORE"  -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION="11.2.0.3" -DORA_OCI_102 -DORA_OCI_112 Oracle.c
gcc -c  -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/public -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/demo -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/public -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/plsql/public -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/network/public -I/usr/lib64/perl5/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION="1.66" -DXS_VERSION="1.66" -fPIC "-I/usr/lib64/perl5/CORE"  -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION="11.2.0.3" -DORA_OCI_102 -DORA_OCI_112 dbdimp.c
dbdimp.c: In function âora_db_login6â:
dbdimp.c:721: warning: format â%dâ expects type âintâ, but argument 12 has type âsize_tâ
dbdimp.c:721: warning: format â%dâ expects type âintâ, but argument 14 has type âsize_tâ
gcc -c  -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/public -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/demo -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/rdbms/public -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/plsql/public -I/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/network/public -I/usr/lib64/perl5/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION="1.66" -DXS_VERSION="1.66" -fPIC "-I/usr/lib64/perl5/CORE"  -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION="11.2.0.3" -DORA_OCI_102 -DORA_OCI_112 oci8.c
oci8.c: In function âora_blob_read_mb_pieceâ:
oci8.c:1847: warning: format â%luâ expects type âlong unsigned intâ, but argument 6 has type âub4â
oci8.c: In function âora_st_fetchâ:
oci8.c:3953: warning: unused variable âimp_xxhâ
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic Oracle.o dbdimp.o oci8.o  -o blib/arch/auto/DBD/Oracle/Oracle.so
           -L/home/oracle/app/oracle/product/11.2.0.3/dbhome_1/lib/ -lclntsh -ldl -lm -lpthread -lnsl -lirc -lipgo -lsvml -ldl -lm -lpthread

chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so
cp Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying blib/man3/DBD::Oracle::Troubleshooting.3pm
Manifying blib/man3/DBD::Oracle::Troubleshooting::Cygwin.3pm
Manifying blib/man3/DBD::Oracle.3pm
Manifying blib/man3/DBD::Oracle::Troubleshooting::Sun.3pm
Manifying blib/man3/DBD::Oracle::Troubleshooting::Hpux.3pm
Manifying blib/man3/DBD::Oracle::Troubleshooting::Macos.3pm
Manifying blib/man3/DBD::Oracle::Troubleshooting::Vms.3pm
Manifying blib/man3/DBD::Oracle::Troubleshooting::Aix.3pm
Manifying blib/man3/DBD::Oracle::Object.3pm
Manifying blib/man3/DBD::Oracle::Troubleshooting::Linux.3pm
Manifying blib/man3/DBD::Oracle::Troubleshooting::Win64.3pm
Manifying blib/man3/DBD::Oracle::GetInfo.3pm
Manifying blib/man3/DBD::Oracle::Troubleshooting::Win32.3pm
[oracle@OraclePRD DBD-Oracle-1.66]$

A instalação do DBD-Oracle, executada pelo comando “make install”, deve ser executada com o usuário root.

[oracle@OraclePRD DBD-Oracle-1.66]$ su -
Password:
[root@OraclePRD ~]# cd /home/oracle/DBD-Oracle-1.66
[root@OraclePRD DBD-Oracle-1.66]# make install
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/local/lib64/perl5/auto/DBD/Oracle/mk.pm
Installing /usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so
Installing /usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.bs
Installing /usr/local/lib64/perl5/auto/DBD/Oracle/dbdimp.h
Installing /usr/local/lib64/perl5/auto/DBD/Oracle/ocitrace.h
Installing /usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.h
Installing /usr/local/lib64/perl5/DBD/Oracle.pm
Installing /usr/local/lib64/perl5/DBD/Oracle/Object.pm
Installing /usr/local/lib64/perl5/DBD/Oracle/Troubleshooting.pod
Installing /usr/local/lib64/perl5/DBD/Oracle/GetInfo.pm
Installing /usr/local/lib64/perl5/DBD/Oracle/Troubleshooting/Vms.pod
Installing /usr/local/lib64/perl5/DBD/Oracle/Troubleshooting/Linux.pod
Installing /usr/local/lib64/perl5/DBD/Oracle/Troubleshooting/Win32.pod
Installing /usr/local/lib64/perl5/DBD/Oracle/Troubleshooting/Win64.pod
Installing /usr/local/lib64/perl5/DBD/Oracle/Troubleshooting/Macos.pod
Installing /usr/local/lib64/perl5/DBD/Oracle/Troubleshooting/Sun.pod
Installing /usr/local/lib64/perl5/DBD/Oracle/Troubleshooting/Cygwin.pod
Installing /usr/local/lib64/perl5/DBD/Oracle/Troubleshooting/Hpux.pod
Installing /usr/local/lib64/perl5/DBD/Oracle/Troubleshooting/Aix.pod
Installing /usr/local/share/man/man3/DBD::Oracle.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::GetInfo.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::Troubleshooting::Win64.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::Troubleshooting::Vms.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::Troubleshooting::Hpux.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::Troubleshooting::Cygwin.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::Troubleshooting::Macos.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::Troubleshooting::Sun.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::Troubleshooting.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::Object.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::Troubleshooting::Aix.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::Troubleshooting::Linux.3pm
Installing /usr/local/share/man/man3/DBD::Oracle::Troubleshooting::Win32.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
[root@OraclePRD DBD-Oracle-1.66]#

Geralmente os Unix / Linux (sem instalação mínima) já estão com a Perl instalada, bastando apenas a compilação do DBD-Oracle.

Se você estiver utilizando Windows, uma distribuição da Perl, a ActivePerl, é fornecida pela empresa ActiveState, e eles disponibilizam o DBD-Oracle já compilado.

A instalação de livrarias Perl pela distribuição ActivePerl é feita pelo programa ppm.

Microsoft Windows [versão 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Todos os direitos reservados.

C:UsersRicardo>perl -v

This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2012, Larry Wall

Binary build 1603 [296746] provided by ActiveState http://www.ActiveState.com
Built Mar 13 2013 11:29:21

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

C:UsersRicardo>ppm search DBD-Oracle
1: DBD-Oracle
   Oracle database driver for the DBI module
   Version: 1.66
   Released: 2013-08-23
   Author: Pythian Remote DBA
   Provide: DBD::Oracle version 1.66
   Provide: DBD::Oracle::GetInfo version 1.66
   Provide: DBD::Oracle::Object version 1.66
   Require: DBI version 1.51 or better
   Repo: ActiveState Package Repository
   Link: http://ppm4.activestate.com/MSWin32-x86/5.16/1603/P/PY/PYTHIAN/DBD-Oracle-1.66.ppmx
   CPAN: http://search.cpan.org/dist/DBD-Oracle-1.66/
   Installed: 1.58 (perl)

C:UsersRicardo>ppm install DBD-Oracle
No missing packages to install

C:UsersRicardo>

http://www.perl.org/

http://www.activestate.com/

http://perlmonks.org/

Leave a Reply

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Esse site utiliza o Akismet para reduzir spam. Aprenda como seus dados de comentários são processados.