重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

标题: kettle连接oracle19c版本pdb [打印本页]

作者: 刘泽宇    时间: 2025-6-25 17:47
标题: kettle连接oracle19c版本pdb
场景描述:
以往kettle连接的数据库版本都是11.2.0.4,新的数据库版本为19.18.0.0,且是多租户模式
想要继续使用kettle连接新版本数据库中的pdb时,提示以下错误:
错误连接数据库 [pdb] : org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database

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

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

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


解决办法:
方式1、数据库名称添加反斜线
在原本的数据库名称前面添加反斜线/,为/pdb
测试连接:成功


方式2、数据库名称填写全地址
主机名称、端口号留空;
数据库名称:填写数据库访问地址和数据库名称,如下:
192.168.133.120/pdb
192.168.133.120:1521/pdb
测试连接:成功







欢迎光临 重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2