JDBC 连接 Oracle: Listener refused the connection with the following error: ORA-12505 的问题(已解决)

【Oracle连接】java.sql.SQLException: Listener refused the connection with the following error: ORA-12505 ORA-12505, TNS:listener does not currently know of SID given in connect descriptor; 关于JDBC连接ORACLE的三种格式方法; 实例与数据库之间 阅读详情

刚解决连接的问题,现在又碰上了这个,干就完事了。

问题分析,这个是 oracle 在建立时 SID 的问题, SID 属性 标识唯一

那么问题就出在 orcl 上了。

1. win + R 输入 regedit 

打开路径 HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_OraDB18Home1;

2. 找到 ORACLE_SID

 3. 双击,查看数据值,将 url 如 jdbc:oracle:thin:@localhost:1521:orcl,最后的 orcl 改为 该项值就好了,这里改为 oracle

不建议改变 SID 的值。

关于ORACLE的ora-12505报错以及连接问题的解决及相关资料  最近,我在使用jdbc连接oracle 9i数据库时,发生如下错误: Error occured while trying to connect to the database Error connecting to database: (using class racle.jdbc.driver.OracleDriver)Listener refused the conne 阅读详情

相关推荐

Oracle连接失败,ORA-12514, TNS:listener does not currently know of service requested in connect descripto

在Window上搭建Oracle数据库,安装后启动,使用Dbeaver连接时无法连接,报错:Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor Listener refused the connection with the following error: O

十三月的博客 7225

解决数据库连接报错Listener refused the connection with the following error: ORA-12505

第一种情况: 启动tomcat后,前台输入账号密码,提示:java.sql.SQLException:Listener refused the  connection with the following error:ORA-12505,TNS:listener does not currently ...

rhyy1230的博客 1万+

SAP EWM 内向交货流程(一)

本文介绍了SAP EWM系统中内向交货单的基本配置与操作流程。

huqinghai的专栏 2399

Listener refused the connection with the following error:ORA-12505, TNS:listener does not currently

Listener refused the connection with the following error:ORA-12505, TNS:listener does not currently know of SID given in connect descriptor 由于SID连接不匹配,监听器拒绝连接。 一般情况下,当创建数据库时会创建数据库名和SID。SID用于

u013479571的专栏 2万+

Vivado工程备份实战:两种方法快速迁移Block Design(附路径避坑指南)

本文详细介绍了Vivado工程中Block Design(BD)备份与迁移的两种核心方法:文件夹直接复制法与TCL脚本生成法。针对FPGA工程师在项目迁移或团队协作时常见的IP丢失、路径报错等问题,提供了从原理到实战的操作指南与路径避坑策略,确保设计可复现与高效协作。

pz890123的博客 1311

如何用Lmcache+vllm优化KVcache存储?CPU与SSD性能实测对比

本文通过实测对比,详细介绍了如何利用Lmcache+vLLM将大模型推理中的KV Cache卸载至CPU内存或SSD硬盘,以解决长上下文场景下的GPU显存瓶颈。测试数据显示,CPU卸载方案在首字延迟(TTFT)上显著优于SSD方案,但SSD方案在存储成本上更具优势。文章提供了完整的配置指南、性能数据分析和生产环境选型建议。

fire9的博客 988

java jdbc 连接oracle数据库连接报错ORA-12505,Listener refused the connection with the following error:

java.sql.SQLException:Listener refused the connection with the following error:ORA-12505错误日志问题分析最后强调:SID != SERVICE_NAME 错误日志 java.sql.SQLException:Listener refused the connection with the following...

weixin_39172079的博客 2119

Altium Designer 18 将Gerber文件逆向转换成PCB(详细记录)

自己看了网上的教程,弄了很久,估计还有不足的地方,但是先把思路理一理(初学AD) 同时遇到了许多问题: 不是AD导出的Gerber估计不能自动识别层 要自己设置层顺序 要有钻孔文件数据制作NC工具(我也不懂是怎么说,就是size尺寸的) 这里记录一下,以防忘记。 正常顺序: 1.新建CAM 2.导入Gerber,选择CAM文件夹下的所有文件导入 3.设置层属性和物理顺序 4.设置NC工具 5.提取网络表 ...

lb_monkey的博客 1万+

JDBC连接oracle数据库: Listener refused the connection with the following error: ORA-12505, TNS:listener d

使用oracle就感觉是深一脚浅一脚的采坑。 在学习JDBC连接oracle的时候,出现次错误。 这个问题出现在这里: Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@LocalHost:1521:oracle", "scott", "qwer"); 是我们jdbc中的连接串使用的不正确。 首先要明白JDB...

MADE_哒哒 7276

freeswitch系列二 kamailio 5.0安装及实现kamailio集成freeswitch

kamailio是个纯粹的SIP服务器。本文介绍先如何在debian8下安装debian5.0,然后详细介绍如何实现使用kamailio做freeswitch均衡负载。kamailio同时实现做为代理服务器、注册服务器、重定向服务器。

不积跬步无以至千里; 不积小流无以成江海 1万+

33、嵌入式系统中的内存操作与实时操作系统

本博客详细探讨了嵌入式系统中的内存操作和实时操作系统(RTOS)的基本原理及应用。内容涵盖C、C++和MicroPython三种语言下的SDRAM读写示例,并结合机器人真空吸尘器的实际应用说明内存的使用场景。此外,还介绍了RTOS的核心概念、组件及其工作机制,包括任务、事件、互斥锁、信号量、队列等,并以FreeRTOS和Mbed OS为例展示了RTOS的配置与使用方法。最后,通过常见问题和实践项目加深对嵌入式系统开发的理解。

zz67890的博客 145

jdbc连接Oracle:Listener refused the connection with the following error: ORA-12505,解决

Exception in thread "main" java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor at ora...

qq_43115606的博客 3047

昇腾AI原生创新算子挑战赛(S1赛季)复盘-LessEqual算子

【代码】昇腾AI原生创新算子挑战赛(S1赛季)复盘-LessEqual算子。

william_myq的博客 509

【数据源】连接Oracle失败 Listener refused the connection with the following error: ORA-12505

数据源Oracle测试提示失败报错信息提示:Listenerrefused the connection with the following error: ORA-12505,TNS:listener does not currently know of SID given in connect descriptor问题处理

RestCloud 技术支持的博客 4305

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

关于ORACLE的ora-12505报错以及连接问题的解决

关于ORACLE的ora-12505报错以及连接问题的解决及相关资料2007-08-17 20:24最近,我在使用jdbc连接oracle 9i数据库时,发生如下错误:Error occured while trying to connect to the databaseError connecting to database: (using class racle.jdbc.driver.Or

mader的专栏 1万+

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

JDBC连接oracle数据库: Listener refused the connection with the following error: ORA-12505

原文链接:https://blog.youkuaiyun.com/qq_40301026/article/details/89412335 在学习JDBC连接oracle的时候,出现次错误。 这个问题出现在这里: Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@LocalHost:1521:oracle", "scott", "qwer"); 是我们jdbc中的连接串使用的不正确。 首先要明白JDBC连接oracle的格式是什么.

631

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

jdbc连接oracle 据库时,发生如下错误ORA-12505, TNS:listener does not currently know of SID gi...

http://blog.sina.com.cn/s/blog_66be57450100vtfb.html listener refused the connection with following err 2011-04-10 11:03 最近,我在使用jdbc连接oracle 据库时,发生如下错误: Error occured while trying to connect to ...

jisheng0703的博客 878

kettle连接oracle数据库问题 ORA-12505

错误连接数据库 [前置机] : org.pentaho.di.core.exception.KettleDatabaseException: Error occurred while trying to connect to the database Error connecting to database: (using class oracle.jdbc.driver.OracleDriv...

qq_31193835的博客 2118

解决Oracle ORA-12505, TNS:listener does not currently know of SID given in connect

完整的错误信息如下:   java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection desc...

OoJ道彡 1232

listener refused the connection with following err

<br />最近,我在使用jdbc连接oracle 9i数据库时,发生如下错误:<br /> Error occured while trying to connect to the database<br /> Error connecting to database: (using class racle.jdbc.driver.OracleDriver)<br />Listenerrefusedtheconnectionwiththefollowingerror :<br /> ORA

Waitting for you 2373

66000][12505] Listener refused the connection with the following error: ORA-12505, TNS:listener doe...

新装的idea开发工具后连接数据库出现如题所示错误。 1、网上搜了不少的文章,没有解决我的问题。后来细心看了一下url: 一开始url是这样子的。 jdbc:oracle:thin:@10.10.21.10:1521:s21_pdb_ipay 2、由于是idea开发工具自动生成的,SID不匹配此请求url,需要改成如下完美解决问题,注意双斜杠跟单斜杠。 ...

weixin_30480075的博客 7539

cx_oracle 12505,kettle连接oracle数据库报错,ORA-12505

报错信息:Errorconnectingtodatabase:(usingclassoracle.jdbc.driver.OracleDriver)Listenerrefusedtheconnectionwiththefollowingerror:ORA-12505,TNS:listenerdoesnotcurrentlyknowofSIDgivenin...

weixin_33603111的博客 894

Listener refused the connection with the following error

jdbc连接oracle 11g出现如下错误: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor 解决方法: 1、检查监听器是否启动; 2、正确写好驱动和UR...

m0_37749010的博客 1916
上一篇: JDBC 连接 Oracle the network adapter could not establish the connection 的问题(已解决)
下一篇: JDBC连接数据库的过程(Oracle为例)
UKnowNothing_
博客等级 码龄9年 58粉丝 106原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值