ORA-12519 TNS:no appropriate service handler found

问题描述

jdbc连接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:192.9.100.217:7001:wcm

问题分析

通过以下语句查询分析到数据库上当前的连接数目已经超过了它能够处理的最大值.修改数据库允许的最大连接数即可解决。

  • 查询当前连接数
select count(*) from v$process;
  • 查询数据库最大连接数设置
select value from v$parameter where name = '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;

在这里插入图片描述

在这里插入图片描述

其他问题

如果在执行停止和启动过程中碰到如下报错,请按步骤操作:
ORA-01507: database not mounted
ORA-01102: cannot mount database in EXCLUSIVE mode

查询进程发现Oracle的后台进程SMON未关闭,kill掉smon进程后重试即可。
在这里插入图片描述

相关推荐

  1. 【LeetCode】1251. 平均售价

    2024-06-09 06:20:02       37 阅读
  2. 使用回溯法解决leetcode 1219

    2024-06-09 06:20:02       23 阅读
  3. <span style='color:red;'>ORA</span>-29548

    ORA-29548

    2024-06-09 06:20:02      19 阅读
  4. expdp时报错ORA-31693&ORA-02354&ORA-01555

    2024-06-09 06:20:02       34 阅读
  5. ORA-01031: insufficient privileges

    2024-06-09 06:20:02       37 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-06-09 06:20:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-09 06:20:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-09 06:20:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-09 06:20:02       20 阅读

热门阅读

  1. Docker面试整理-什么是Docker Compose?

    2024-06-09 06:20:02       11 阅读
  2. 数据查询深分页优化方案

    2024-06-09 06:20:02       10 阅读
  3. 《非暴力沟通》:值得所有人阅读

    2024-06-09 06:20:02       10 阅读
  4. 【含项目亮点】小免鲜项目总结

    2024-06-09 06:20:02       9 阅读
  5. 【Git】

    【Git】

    2024-06-09 06:20:02      11 阅读
  6. codereview时通常需要关注哪些

    2024-06-09 06:20:02       9 阅读
  7. 238. 除自身以外数组的乘积

    2024-06-09 06:20:02       11 阅读
  8. linux 系统被异地登录,cpu占用拉满100%

    2024-06-09 06:20:02       11 阅读