Listener refused the connection with the following error: ORA-12519, TNS:no appr
异常:
Listener refused the connection with the following error: ORA-12519, TNS:no appropriate service handler found The Connection descriptor used by the client was: localhost:1521:orcl Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Listener refused the connection with the following error: ORA-12519, TNS:no appropriate service handler found The Connection descriptor used by the client was: localhost:1521:orcl ; nested exception is java.sql.SQLException: Listener refused the connection with the following error: ORA-12519, TNS:no appropriate service handler found The Connection descriptor used by the client was: localhost:1521:orcl
[quote]查询数据库当前进程的连接数:
select count(*) from v$process;
查看数据库当前会话的连接数:
elect count(*) from v$session;
查看数据库的并发连接数:
select count(*) from v$session where status='ACTIVE';
查看当前数据库建立的会话情况:
select sid,serial#,username,program,machine,status from v$session;
查询数据库允许的最大连接数:
select value from v$parameter where name = 'processes';
或者:show parameter processes;
修改数据库允许的最大连接数:
alter system set processes = 300 scope = spfile;
(需要重启数据库才能实现连接数的修改)
重启数据库:
shutdown immediate;
startup;
查看当前有哪些用户正在使用数据:
select osuser,a.username,cpu_time/executions/1000000's' ,sql_fulltext,machine
from v$session a,v$sqlarea b
where a.sql_address = b.address
order by cpu_time/executions desc;
备注:UNIX 1个用户session对应一个操作系统process,而Windows体现在线程。
启动oracle
su - oracle
sqlplus system/pwd as sysdba //进入sql
startup //启动数据库
lsnrctl start //启动监听
sqlplus "/as sysdba"
shutdown immediate;
startup mount;
alter database open;
--
web应用连接oracle数据库时,经常在查询数据时发生
Listener refused the connection with the following error: ORA-12519, TNS:no appropriate service handler found The Connection descriptor used by the client was: 127.0.0.1:1521:ORCL
这种错误,网上查了很多,都说是ip地址改变之后的问题,要把tnsnames.ora中的实例配置中改为计算机名,我试过之后问题还是不能解决,今天终于找到问题所在了,是数据库连接数量的问题,12519错误为监听不能提供服务,通常为数据库进程达到上限导致。
可以先执行下 select count(*) from v$process ,看下现在系统有多少连接数,然后再查询 select value from v$parameter where name = 'processes' ,看下oracle设置中设置了多少连接数,一般一个应用都会使用20个,所以如果你开了几个应用的话(web、pl/sql、……)就会出这个问题了,这时只需要执行下
alter system set processes = 300 scope = spfile;[/quote]
就可以了,当然300可以根据实际情况设置。
Listener refused the connection with the following error: ORA-12519, TNS:no appr相关推荐
- idea链接oracle数据库报错:[66000][12505] Listener refused the connection with the following error:
报错如下: [66000][12505] Listener refused the connection with the following error: 原因很简单: 是SID错误 只需要在ora ...
- Listener refused the connection with the following error 错误解决(最大连接数)
查询数据库当前进程的连接数: select count(*) from v$process; 查看数据库当前会话的连接数: elect count(*) from v$session; 查看数据库的并 ...
- oracle 监听拒绝连接,报mybatis映射文件错误Listener refused the connection with the following error: ORA-12519, TNS
以下错误是:数据库连接数问题. 仔细检查映射文件.xml文件正确 后来发现是数据库最大连接数已满 修改之alter system set processes = 4000 scope = spfile ...
- Listener refused the connection with the following error
Listener refused the connection with the following error 错误解决 web应用连接oracle数据库时,经常在查询数据时发生 Listener ...
- 数据库连接报错:Listener refused the connection with the following error: ORA-12505 的解决方法
使用SQL developer 连接用户时出现如题报错. 解决方法: 一:搜索"服务" 二:启动下图中选中的服务项
- 服务器拒绝连接(The remote system refused the connection.)
在使用CRT连接服务器的时候,出现了的 The remote system refused the connection. 一般客户端都是通过 SSH 协议连接服务器的.ping了一下,网络是通的,依 ...
- Unencrypted connection refused. Goodbye. Connection closed by foreign host.
telnet 登录提示:Unencrypted connection refused. Goodbye. Connection closed by foreign host. 原因:ekrb5-tel ...
- 异常:Software caused connection abort: socket write error
异常:Software caused connection abort: socket write error 参考文章: (1)异常:Software caused connection abort ...
- 12505 java_Java jdbc Oracle error: ORA 12505
Java jdbc Oracle error: ORA 12505 更改oracle Listener 配置:D:\Oracle\moon\product\11.1.0\db_1\NETWORK\AD ...
最新文章
- 牲畜体表信息的三维重建
- 重构了一波代码,聊聊后端也聊聊游戏后端
- Spring系列之Spring框架和SpringAOP集成过程分析(十)
- 富士相机设置传原图_双面屏设计!富士XPro3相机外观草图曝光
- V4L2应用程序框架
- rdlc 固定前两列每页都显示_现在的大学生,都不会论文排版了
- 真的不再使用*狗输入法了,改七七拼音
- 自定义Mac睡眠时间,保持运行状态
- QUAR_CH_USB2TTL V1 USB转4路UART串口侦听板设计日志1
- mysql geometry查询返回值_使用MySQL的geometry类型处理经纬度距离问题的方法
- matlab检验矩阵是否可逆,有限域上矩阵是否可逆的检验
- ssm+vue基本微信小程序的校园二手商城系统 计算机毕业设计
- python英汉互译 谷歌翻译 免费实现调用
- java降低if的圈复杂度_几种减少圈复杂度的实践
- 来自量子世界的新技术---算法篇
- 20170923 HHC
- 02-关于画布、Artboard(画板)
- 运载火箭弹道飞行程序matlab,运载火箭弹道与控制理论基础
- 移动市场平台MTK和android谁会笑到最后
- Linux Ubuntu 配置Anaconda3+cuda+cuDNN+torch
热门文章
- 编写跨平台Java程序注意事项
- 玄武密码(bzoj4327)(JSOI2012)
- 2019.08.12【NOIP提高组】模拟 B 组 模拟+DP+差分约束、spfa
- channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILE
- 世界顶级100款XP主题(转)
- COGS1487 麻球繁衍
- mysql打开eqd_备注数据库到MySQL(带CF?)/或如何获得NSF数据结构
- 看雪CTF2020 KCTF 秋季赛 签到题
- tiktok设备注册+xg xk xl xa签名
- ZAP日志框架lumberjack日志归档库的分析使用