It took me half of my working day but at the end I succeded in installing DBD::Oracle Perl module on my Fedora 13, as I spent so much time to find the solution I think it’s worth to share my experience.
Become root and go on.
First of all download the following rpms from Oracle site and install them:
- oracle-instantclient-basic-10.2.0.4-1.x86_64.rpm
- oracle-instantclient-sqlplus-10.2.0.4-1.x86_64.rpm
- oracle-instantclient-devel-10.2.0.4-1.x86_64.rpm
Install compat-libstdc++-33 via:
yum install compat-libstdc++-33
Modify LD_LIBRARY_PATH and ORACLE_HOME using following commands:
export ORACLE_HOME=/usr/lib/oracle/10.2.0.4/client64/
export LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client64/lib/
Then run cpan:
perl -MCPAN -e shell
and in it’s shell run the following commands:
install DBI
install YAML
get DBD::Oracle
make
quit
Look at the directory /root/.cpan/build/DBD-Oracle-1.24-xxxxx (mine was: /root/.cpan/build/DBD-Oracle-1.24-Ghl15e) in the output of make, this directory name is important for next step.
Go to the directory /root/.cpan/build/DBD-Oracle-1.24-xxxxx and issue the following commands:
make test
make install
make test will fail connecting to your Oracle server becouse the script use scott/tiger as login/password but if this fails it’s not a problem, go to next step to install.
If you have a RedHat EL4 you can go to: http://ftp.freshrpms.net/pub/freshrpms/redhat/testing/EL4/oracle/ to get your RPMs.
salve, cercavo info sulla migrazione da oracle a pg e son finito qua.Vorrei migrare un oracle server 8.1.6 su una macchina con debian o ubuntu usando un programma (ora2pg) che ha bisogno di alcuni moduli perl tra i quali dbd:oracle e delle Oracle client libraries .
Naturalmente sul sito oracle non esiste più niente per oracle 8.1.6 , lei pensa che possa funzionare anche con le libraries della versione 10?
Grazie per l'eventuale aiuto
Alessandro
Alessandro, sinceramente non so, io avevo da accedere a un Oracle 10 per esportare dei dati in formato CSV e ripetere l'operazione alcune volte, la soluzione è stata usare PERL. Questo mi ha spento a scrivere questo post.
La documentazione del modulo non fa menzioni di differenze di accesso. Se riusco a trovare il tempo di fare un test su un Oracle 8 (ne abbiamo ancora) in ufficio le farò sapere