The module DBD::Oracle can not be installed with apt-get despite that libdbd-oracle-perl is available in the Debian repositories.
This package requires an Oracle client which is not available by default.
Trying to install libdbd-oracle-perl leads us to the errors below :
The following packages have unmet dependencies:
libdbd-oracle-perl: Depends: oracle-instantclient-basic but it is not installable
E: Broken packages
Supposing you already have a functional Oracle database, such Oracle-XE, please install Oracle-XE client. It is free for use as development purpose.
Then, we will install the Perl module DBD::Oracle with CPAN :
root@localhost:~# perl -MCPAN -e shell
and we get the CPAN client prompt :
cpan[1]> install DBD::Oracle
You might encounter some errors and the “make test” process will fail.
Quit your CPAN client and set two compulsory environment variables :
root@localhost:~# export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
root@localhost:~ # export ORACLE_SID=XE
As a non-root user, please connect to your Oracle database, XE, and check whether the user SCOTT is created and has two roles : connect and resource. As a precaution, reset SCOTT’s password to ‘TIGER’.
Relaunch your CPAN client and reinstall the module DBD::Oracle :
cpan[1]> install DBD::Oracle
The process will not be long and at the end, a script is automatically run to check that connections to the database with the credentials SCOTT/TIGER work well with the DBD::Oracle module.
Quit your CPAN client. Please verify that DBD::Oracle is available in the Perl path variable @INC :
root@localhost:~# perldoc -l DBD::Oracle
/usr/local/lib/perl/5.10.1/DBD/Oracle.pm
For more information about installing Oracle-XE on Debian :
http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html
Clik here to view.

Image may be NSFW.
Clik here to view.

Clik here to view.
