Application requirements - IBM DB2

Any Java application needs the following packages to access the DB2 JDBC universal driver and use it to make the connection to the DB2 database:

  • java.sql contains the core JDBC API.
  • com.ibm.db2.jcc contains the DB2-specific implementation of JDBC for universal JDBC driver. db2jcc.jar archive contains this package.

For accessing the DataSource object for enterprise application, you need the following packages along with the above:

  • javax.naming contains classes and interfaces for Java Naming and Directory Interface.
  • javax.sql contained JDBC 2.0 standard extensions (db2jcc_javax.jar).
  • javax.transactions contains support for distributed transaction for DB2 JDBC Type 2 driver.

Along with this files, one of these two files should be included in CLASSPATH:

  • db2jcc_license_cu.jar
  • db2jcc_license_cisuz.jar

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

IBM DB2 Topics