Install Oracle Database client files for Apache Tomcat
Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.
If you want your Java application to be able to connect to a full featured and functional Oracle Database, please follow the steps below.
Stop the Tomcat server:
$ sudo installdir/ctlscript.sh stop tomcat
Download the corresponding JDBC drivers for Oracle Database from the Oracle official website. Pay attention to the server version. For example, for a 11g Release 2 server, you will need OJDBC6.jar.
Unzip it and place it under the folder installdir/apache-tomcat/lib/ext
Start the Tomcat server again:
$ sudo installdir/ctlscript.sh start tomcat