1.kettle 5.4 使用JDBC连接的时候报错(测试不同的数据库,发现只是连接11gRAC 的时候会报JDBC的错误)
具体报错如下
java.sql.SQLException: 建数据库连接出现异常:
oracle.jdbc.driver.OracleDriver
jdbc:oracle:thin:@90.12.xx.xx:1521:orcl
ORCL_CON
Listener refused the connectionwiththe following error:
ORA-12505, TNS:listener does not currently know of SID given inconnect descriptor
The Connection descriptor usedbythe client was:90.12.xx.xx:1521:orcl
使用sqlplus 进一步测定发现数据库功能正常,尝试其他的连接方式。
2.尝试用ODBC的方式连接:
管理工具-->数据源--用户DSN--添加--选择oracle驱动
在kettle上配置ODBC连接 测试OK!
3.尝试OCI的连接方式报错如下:
错误连接数据库 [Source_Db]: org.pentaho.di.core.exception.KettleDatabaseException:
Error occurredwhile trying to connect to the databaseError connectingto database: (using class oracle.jdbc.driver.OracleDriver)
no ocijdbc11injava.library.path
org.pentaho.di.core.e