美文网首页
kettle连接oracle数据库问题

kettle连接oracle数据库问题

作者: LingHun | 来源:发表于2019-07-16 09:53 被阅读0次

1.连接Oracle报错
报错信息:

错误连接数据库 [192.xxx.x.xxx] : org.pentaho.di.core.exception.KettleDatabaseException: 
Error occurred while trying to connect to the database

Driver class 'oracle.jdbc.driver.OracleDriver' could not be found, make sure the 'Oracle' driver (jar file) is installed.
oracle.jdbc.driver.OracleDriver


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

Driver class 'oracle.jdbc.driver.OracleDriver' could not be found, make sure the 'Oracle' driver (jar file) is installed.
oracle.jdbc.driver.OracleDriver


   at org.pentaho.di.core.database.Database.normalConnect(Database.java:477)
   at org.pentaho.di.core.database.Database.connect(Database.java:373)
   at org.pentaho.di.core.database.Database.connect(Database.java:344)
   at org.pentaho.di.core.database.Database.connect(Database.java:334)
   at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.java:83)
   at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestResults(DatabaseFactory.java:112)
   at org.pentaho.di.core.database.DatabaseMeta.testConnectionSuccess(DatabaseMeta.java:2843)
   at org.pentaho.ui.database.event.DataHandler.testDatabaseConnection(DataHandler.java:631)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:313)
   at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:157)
   at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:141)
   at org.pentaho.ui.xul.swt.tags.SwtButton.access$500(SwtButton.java:43)
   at org.pentaho.ui.xul.swt.tags.SwtButton$4.widgetSelected(SwtButton.java:137)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
   at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
   at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)
   at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
   at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
   at org.eclipse.jface.window.Window.open(Window.java:796)
   at org.pentaho.di.ui.xul.KettleDialog.show(KettleDialog.java:89)
   at org.pentaho.di.ui.xul.KettleDialog.show(KettleDialog.java:56)
   at org.pentaho.di.ui.core.database.dialog.XulDatabaseDialog.open(XulDatabaseDialog.java:117)
   at org.pentaho.di.ui.core.database.dialog.DatabaseDialog.open(DatabaseDialog.java:61)
   at org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.newConnection(SpoonDBDelegate.java:495)
   at org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.newConnection(SpoonDBDelegate.java:482)
   at org.pentaho.di.ui.spoon.Spoon.doubleClickedInTree(Spoon.java:3104)
   at org.pentaho.di.ui.spoon.Spoon.doubleClickedInTree(Spoon.java:3074)
   at org.pentaho.di.ui.spoon.Spoon.access$1700(Spoon.java:372)
   at org.pentaho.di.ui.spoon.Spoon$26.widgetDefaultSelected(Spoon.java:6335)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
   at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
   at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)
   at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
   at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1384)
   at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7949)
   at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9331)
   at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:710)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Caused by: org.pentaho.di.core.exception.KettleDatabaseException: 
Driver class 'oracle.jdbc.driver.OracleDriver' could not be found, make sure the 'Oracle' driver (jar file) is installed.
oracle.jdbc.driver.OracleDriver

   at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:520)
   at org.pentaho.di.core.database.Database.normalConnect(Database.java:461)
   ... 49 more
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
   at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:495)
   ... 50 more

主机名       : 192.xxx.x.xxx
端口           : 1521
数据库名:xxxx

报错原因:缺少ojdbc6.jar包
解决方法:将ojdbc6.jar包放在kettle中lib的文件夹下。

相关文章

网友评论

      本文标题:kettle连接oracle数据库问题

      本文链接:https://www.haomeiwen.com/subject/teqzkctx.html