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

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 734|回复: 0
打印 上一主题 下一主题

[工具] kettle连接oracle19c版本pdb

[复制链接]
跳转到指定楼层
楼主
发表于 2025-6-25 17:47:42 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
场景描述:
以往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
测试连接:成功


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2026-4-21 16:57 , Processed in 2.777867 second(s), 22 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表