jdbcsetup.bat 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. @echo off
  2. REM ************************************************************************REM
  3. REM IBM Confidential REM
  4. REM OCO Source Materials REM
  5. REM 5724-E34 REM
  6. REM (c) Copyright IBM Corporation 2007, 2011. REM
  7. REM All rights reserved. REM
  8. REM REM
  9. REM The source code for this program is not published or otherwise REM
  10. REM divested of its trade secrets, irrespective of what has been REM
  11. REM deposited with the U.S. Copyright Office. REM
  12. REM ************************************************************************REM
  13. rem Place all jdbc driver files in the area below and add them to the classpath
  14. rem WARNING: This file is overwritten during upgrades and reinstallation of
  15. rem the Cube Server. If you modify this file, make a backup copy to replace
  16. rem this file with your modifications after upgrading or reinstalling.
  17. rem DB2_INST_DIR should be of the form c:\Program Files\IBM\SQLLIB
  18. SET DB2_INST_DIR=
  19. SET JDBC_DRIVER_DIR=%CUBE_SERVER_LIB%
  20. if not "%DB2_INST_DIR%"=="" (
  21. if exist %DB2_INST_DIR%\java\db2jcc4.jar (
  22. if exist %DB2_INST_DIR%\java\db2jcc_license_cu.jar (
  23. if exist %DB2_INST_DIR%\java\db2jcc_license_cisuz.jar (
  24. set JDBC_DRIVER_DIR=%DB2_INST_DIR%\java
  25. )
  26. )
  27. )
  28. )
  29. rem The jdbc driver must be first on the classpath (for Win64.. see
  30. rem defect 156385), hence we don't include the previous CLASSPATH
  31. set CLASSPATH=%JDBC_DRIVER_DIR%\db2jcc4.jar
  32. set CLASSPATH=%CLASSPATH%;%JDBC_DRIVER_DIR%\db2jcc_license_cu.jar
  33. set CLASSPATH=%CLASSPATH%;%JDBC_DRIVER_DIR%\db2jcc_license_cisuz.jar