Bip - JDBC Data Source

How to add an external JDBC driver within Weblogic

Version 12c

  • the native driver file are located in WL_HOME\server\lib
  • add the new file to the front of your CLASSPATH.

Version 10.3.6

  • Open the file WL_HOME/common/bin/commEnv.cmd/sh
  • And add at the end of the ''WEBLOGIC_CLASSPATH“ variable your driver

Example After the following code

# set up WebLogic Server's class path 
WEBLOGIC_CLASSPATH="${JAVA_HOME}/lib/tools.jar${CLASSPATHSEP}${WL_HOME}/server/lib/weblogic_sp.jar${CLASSPATHSEP}${WL_HOME}/server/lib/weblogic.jar${CLASSPATHSEP}${FEATURES_DIR}/weblogic.server.modules_10.3.6.0.jar${CLASSPATHSEP}${WL_HOME}/server/lib/webservices.jar${CLASSPATHSEP}${ANT_HOME}/lib/ant-all.jar${CLASSPATHSEP}${ANT_CONTRIB}/lib/ant-contrib.jar"
export WEBLOGIC_CLASSPATH

You may add your driver as:

# Adding SAP HANA JDBC Nico
WEBLOGIC_CLASSPATH="${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}/u01/app/sap/hdbclient/ngdbc.jar"
export WEBLOGIC_CLASSPATH

Documentation / Reference


Powered by ComboStrap