kettle连接oracle数据库报错,ORA-12505
报错信息:
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的时候把链接地址的冒号换成/也是可行的。
相关推荐
周嘉笙 2020-11-09
zhuzhufxz 2020-09-16
lklong 2020-11-22
oraclemch 2020-11-06
shilukun 2020-10-10
bfcady 2020-08-16
Hody 2020-08-16
FightFourEggs 2020-08-16
数据库设计 2020-08-16
yanghuatong 2020-08-16
dbasunny 2020-08-16
罗罗 2020-08-16
ihuaqiang 2020-08-16
choice0 2020-07-30
娜娜 2020-07-28
solarspot 2020-07-28
踩风火轮的乌龟 2020-07-26
娜娜 2020-07-20
xwb 2020-07-19
娜娜 2020-07-18
流云追风 2020-07-04
dataminer 2020-06-25
娜娜 2020-06-22
zhangchaoming 2020-06-21