报错信息:
Error connecting to database: (using class oracle.jdbc.driver.OracleDriver)
Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
解决方法:
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = IP)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = db_name)))
直接把上述模板加上服务器地址,修改一下端口号,加上数据库名称,直接放到kettle连接数据页面
例如:
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orcl)))
出现这个错误之前在百度上多的解决方法是oracle的jar包版本问题,不过这个方法也可以解决。
顺便提示下,用es连接oracle的时候把链接地址的冒号换成/也是可行的。