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万+

MyEclipse 2017 CI 10安装与激活

本文介绍MyEclipse 2017 CI 7、CI 8、CI 9和CI 10的安装与激活。此方法理论上应该能激活MyEclipse 2017 CI所有系列,即激活方法是通用的,只是激活文件略有不同。本文提供MyEclipse 2017 CI 7、CI 8、CI 9和CI 10的激活文件。说明:博主所提供的压缩包格式均为RAR5,即WinRAR 5.0以上的版本才能正常解压,别的压缩软件博主不太清...

weixin_42539046的博客 9417

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万+

OpenEuler内核编译及替换

一、内核源码下载 在gitee上下载OpenEuler内核源码 下载地址 选择需要的内核版本源码压缩包进行下载 二、内核编译 1.解压缩 将下载好的源码进行解压 tar xvf openeuler-kernel-4.19.90-2107.1.0.tar.gz 2.清理源代码树 解压后得到一个名为kernel的内核源码文件夹,进入后执行命令 make mrproper 清理过去内核编译产生的config,第一次编译时可不执行此命令 3.生成内核配置文件.config 先将将系统原配置文件拷贝过来,原

m0_56602092的博客 2万+

【ENVI初学】查看影像空间分辨率及重采样

例如,如果线段长度为900米,对应的像素数量为30个,那么影像的空间分辨率为30米。通过计算长度与像素数量的比值,即可得到影像的空间分辨率。,在弹出的对话框中,输入重采样后输出文件的xy分辨率大小。在测量结果窗口中,可以看到该线段的长度以及角度。在影像上点击并拖动鼠标,绘制一条直线段。工具,选择要重采样的影像后点击ok。,避免了插值过程中光谱信息的改变。:最近邻插值法通过选择原始影像中。在ENVI中打开影像后右键选择。指示了每个像素的地理跨度(聚合为一个新像素,通常通过。方法一:查看影像的元数据。

weixin_41619112的博客 5572

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

yolov8的Detect层详解(输出维度改动)

对于部署端需要拿到onnx的output进行后处理,但是基于anchor_free的yolov8输出是1*(4+cls)*8400,不是我们常见的ncwh格式,所以对Detect层进行了学习,分享一下体会。

yjcccccc的博客 2万+

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

SAP License USMM SLAW2 SAP审计

引言 企业每年都会收到SAP License审计邮件,邮件内容大致就是根据贵公司与SAP签定的合同XXX条款规定,贵公司所安装的SAP系统需要进行测定。 关键字: SAP License、 SAP USMM、 SLAW2、 SAP 账号、SAP 账号审计、 SAP License 审计、 SAP 审计报告、SAP 账号优化 SAP License审计邮件 企业每年都会收到SAP License审计邮件,邮件内容大致就是根据贵公司与SAP签定的合同XXX条款规定,贵公司所安...

感悟人生 2981

正交试验minitab

1.创建正交试验 2.根据自己的实验选择水平数和因子数,并选定一个正交表 3.得到正交表 4.填写实验结果 5.进行正交分析 点击结果,点击分析 6.得到分析结果 7.方差分析 选择响应变量与因子,点击确定 得到方差分析的结果 ...

a999999123的博客 1万+

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

基于DBSCAN聚类算法的超像素实时分割

Real-Time Superpixel Segmentation by DBSCAN Clustering Algorithm 摘要 在本文中,我们提出了一种基于密度的带噪声应用空间聚类(DBSCAN)算法的50帧/秒实时图像超像素分割方法。为了降低超像素算法的计算量,我们采用了一种快速的两步框架。在第一个聚类阶段,使用具有颜色相似性和几何约束的DBSCAN算法对像素进行快速聚类,然后在第二个合并阶段,通过颜色和空间特征定义的距离度量,将小簇按其邻域合并为超像素。为了在这两个步骤中获得更好的超像素,定义了

yttt的博客 3493

【数据源】连接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

TDS水质检测传感器原理图设计,已量产(液体传感器)

最近调试了一款针对生活用水、水培系统的 TDS 水质检测模块 —— 毕竟 TDS(总溶解固体)值直接关联水的洁净程度,是这类场景里既实用又易获取的水质指标。下面拆解下这个电路的设计逻辑,说说每个部分是怎么配合实现精准检测的。

不脱发的程序猿 1544

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

关于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万+

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

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

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

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、付费专栏及课程。

余额充值