当前位置: 首页 > 知识库问答 >
问题:

由于缺少驱动程序(jar文件),Pentaho Poon无法连接到IBM DB2数据库

麹浩瀚
2023-03-14

我用的是Pentaho的勺子。当我尝试连接到IBMDB2数据库时,会出现以下错误

`驱动程序类的com。国际商用机器公司db2。jcc。找不到“DB2Driver”,请确保安装了“IBM DB2”驱动程序(jar文件)。通用域名格式。国际商用机器公司db2。jcc。DB2Driver

我在谷歌上搜索,但什么也找不到。

共有2个答案

蒋星雨
2023-03-14

我今天也有同样的问题。虽然错误消息说需要做什么:

Driver class'com。国际商用机器公司db2。jcc。找不到“DB2Driver”,请确保安装了“IBM DB2”驱动程序(jar文件)。通用域名格式。国际商用机器公司db2。jcc。DB2Driver

我们仍然需要更多的信息来解决这个问题。

从Pentaho的JDBC驱动程序参考中获取确切的驱动程序。一旦你下载了它;放入相应的。Pentaho工具的lib目录中的JAR。就我而言,我在窗户上用勺子

所以地点是:

C:\PathToAnywhere SpoonIsRunningfrom\pdi-ce-8.2.0.0-342\data-集成\lib

这些文件将是:

db2jcc.jardb2jcc4.jardb2jcc_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
司徒兴德
2023-03-14

IBM Data Server驱动程序可以从相关的支持页面或总体下载页面下载。这些链接可以在Google或DB2知识中心中找到。

 类似资料: