Pentaho Spoon IBM DB2'驱动程序(jar文件)

时间:2016-01-27 10:18:55

标签: db2 pentaho-spoon

我正在使用Pentaho的Spoon。当我尝试连接到IBM DB2数据库时,我得到以下错误

  找不到驱动程序类'com.ibm.db2.jcc.DB2Driver',确保安装了'IBM DB2'驱动程序(jar文件)。   com.ibm.db2.jcc.DB2Driver

我有一个谷歌,似乎无法找到任何方法来获得这个驱动程序。以前有人遇到过这个问题吗?

2 个答案:

答案 0 :(得分:0)

可以从相关的support pageoverall download page下载IBM数据服务器驱动程序。这些链接可以通过Google或DB2 Knowledge Center找到。

答案 1 :(得分:0)

我今天有同样的问题。 尽管错误消息指出需要做什么:

Driver class 'com.ibm.db2.jcc.DB2Driver' could not be found, make sure the 'IBM DB2' driver (jar file) is installed. com.ibm.db2.jcc.DB2Driver

仍然需要其他信息来解决此问题。

从Pentaho的JDBC drivers reference.获取确切的驱动程序 下载后;将适当的.jars放在Pentaho工具的lib目录中。就我而言,我在Windows上使用Spoon

因此位置为:

C:\PathToWhereSpoonIsRunningFrom\pdi-ce-8.2.0.0-342\data-integration\lib

文件为:

db2jcc.jar db2jcc4.jar db2jcc_license_cu.jar

完整错误消息:

Error connecting to database [Your_Database_Connection_Name] :org.pentaho.di.core.exception.KettleDatabaseException: 
Error occurred while trying to connect to the database

Driver class 'com.ibm.db2.jcc.DB2Driver' could not be found, make sure the 'IBM DB2' driver (jar file) is installed.
com.ibm.db2.jcc.DB2Driver


org.pentaho.di.core.exception.KettleDatabaseException: 
Error occurred while trying to connect to the database

Driver class 'com.ibm.db2.jcc.DB2Driver' could not be found, make sure the 'IBM DB2' driver (jar file) is installed.
com.ibm.db2.jcc.DB2Driver


    at org.pentaho.di.core.database.Database.normalConnect(Database.java:472)
    at org.pentaho.di.core.database.Database.connect(Database.java:370)
    at org.pentaho.di.core.database.Database.connect(Database.java:341)
    .
    .
    .
    at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Caused by: org.pentaho.di.core.exception.KettleDatabaseException: 
Driver class 'com.ibm.db2.jcc.DB2Driver' could not be found, make sure the 'IBM DB2' driver (jar file) is installed.
com.ibm.db2.jcc.DB2Driver

    at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:515)
    at org.pentaho.di.core.database.Database.normalConnect(Database.java:456)
    ... 56 more
Caused by: java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:490)
    ... 57 more

Hostname: YourHostname
Port: YourPortNumber
Database name: YourDBName