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 ...
最新文章
- JAVA 创建线程池
- 德布罗意波与神经网络与粒子
- 关于Android中XML解析方式
- cycle函数python_Python执行函数的周期实现
- android资源的热更新(替换 AssetManager+LoadedApk中的资源路径)
- MySQL表结构优化
- 钱少事多,开源项目维护人员几乎集体出走
- mysql 5.5.29 winx64_【转载】MySQL 5.7.29详细下载安装配置教程winx64
- Java快捷键(学到会慢慢更新)
- 按住 ctrl 并滚动鼠标滚轮才可缩放地图_鼠标永远快不过键盘!32组PS常用快捷键你值得拥有!...
- html怎么填充单元格颜色,PPT表格单元格怎么填充颜色 PPT填充表格单元格颜色的详细教程...
- 谷歌play商店_如何从Google Play商店退款
- 有源蜂鸣器和无源蜂鸣器的区别
- 20090522: IBM X22
- 深入了解Element Form表单动态验证问题
- 双基管理 运营_浅谈银行“双基”管理的重要性
- go结构体初始化_浅谈golang结构体偷懒初始化
- 无法定位程序输入点_except1于动态链接库
- 百度语音集成离线功能
- 程序减肥,strip,eu-strip 及其符号表
热门文章
- ODOO实现环境检测机构检测业务管理系统
- a8处理器相当于骁龙几_天玑800相当于骁龙多少 天玑800和骁龙765G对比哪个好
- 小谈 - web模仿手机打电话与正则表达式
- Web阶段--Servlet基础知识点
- 2022视频编码招聘面经
- 2020年了,IT外企还香吗?
- WPF DataGridTextColumn Visibility
- iOS 系统分享UIActivityViewController,自定义分享预览UI
- 任天堂服务器维护12月1,《怪物猎人:崛起》太火爆!任天堂服务器紧急维护!会是独占游戏么?...
- 论文阅读笔记:看完也许能进一步了解Batch Normalization