azuresql-server-2014weblogic12cssisqljdbc

WebLogic 12c classpath location + sqljdbc42 driver?


I am not able to find the WebLogic CLASSPATH variable in either of these two files - commEnv.sh and commEnv.cmd. I do not understand where to add sqljdbc42 nor how to connect to an Azure SQL Server Database (is that even possible)?

I downloaded sqljdbc42.jar from MSDN and added it to my $DOMAIN/lib but where is the CLASSPATH; I do not see one to modify. As I understand, I need to add the path to the JAR.

C:\Oracle\Middleware\Oracle_Home\wlserver\common\bin

commEnv.cmd - no classpath:

IF NOT DEFINED MW_HOME (
 IF NOT DEFINED WL_HOME (
  echo MW_HOME or WL_HOME is not set
  IF DEFINED USE_CMD_EXIT (
   EXIT 1
  ) ELSE (
   EXIT /B 1
  )
 )
)

IF NOT DEFINED MW_HOME set MW_HOME=%WL_HOME%\..
FOR %%i IN ("%MW_HOME%") DO SET MW_HOME=%%~fsi

CALL "%MW_HOME%\oracle_common\common\bin\commEnv.cmd"

commEnv.sh - no classpath:

if [ -z "${MW_HOME}" -a -z "${WL_HOME}" ]; then
 echo "MW_HOME or WL_HOME is not set."
 exit 1
fi

if [ -z "${MW_HOME}" ]; then
  MW_HOME="${WL_HOME}/.."
fi

. "${MW_HOME}/oracle_common/common/bin/commEnv.sh"

Solution

  • I got it to work by completing the following: