当前位置: 首页 > news >正文

oracle单个用户最大连接数限制

项目经理反馈,现场已做了单个用户的最大连接数2000的限制,但数据库还是报无法连接,故障用户的连接数已3800多了。

查看日志报错如下

2023-07-20T13:07:57.794653+08:00
Process m000 submission failed with error = 20
Process m000 submission failed with error = 20
Process m000 submission failed with error = 20
Process m000 submission failed with error = 20
2023-07-20T13:08:16.882441+08:00
ORA-00020: maximum number of processes (5000) exceeded
 ORA-20 errors will not be written to the alert log for
 the next minute. Please look at trace files to see all
 the ORA-20 errors.
2023-07-20T13:08:57.846261+08:00
Process m001 submission failed with error = 20
Process m002 submission failed with error = 20
2023-07-20T13:09:15.712546+08:00
Process J000 submission failed with error = 20
2023-07-20T13:09:15.712780+08:00
kkjcre1p: unable to spawn jobq slave process
2023-07-20T13:09:15.712950+08:00
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_cjq0_3577.trc:

2023-07-20T13:12:20.920401+08:00
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_cjq0_3577.trc:
2023-07-20T13:12:22.930463+08:00
ORA-00020: maximum number of processes (5000) exceeded
 ORA-20 errors will not be written to the alert log for
 the next minute. Please look at trace files to see all
 the ORA-20 errors.
2023-07-20T13:12:58.049562+08:00
Process m000 submission failed with error = 20
Process m001 submission failed with error = 20
Process m000 submission failed with error = 20
Process m000 submission failed with error = 20
2023-07-20T13:13:25.510459+08:00
ORA-00020: maximum number of processes (5000) exceeded
 ORA-20 errors will not be written to the alert log for
 the next minute. Please look at trace files to see all
 the ORA-20 errors.

故障用户的当前连接数已3880了

查看默认的PROFILE,SESSIONS_PER_USER也确实做了2000限制

处理办法:

1、SQL> alter system set resource_limit =TRUE;   --对资源类的参数限制必须启用该参数

       SQL> alter profile DEFAULT limit sessions_per_user 2000;     ---事先已执行过,可不执行

2、kill用户USR_LTWX的非活动session

3、持续观察,该用户最大连接数没超过2000,

4、让现场经理通知用户产品排查故障原因

http://www.lryc.cn/news/95949.html

相关文章:

  • 计算机网络最基础知识介绍
  • 接口测试进阶之数据模板
  • Java中使用MySQL详解
  • Docker安装Elasticsearch相关软件安装
  • Ubuntu的安装与部分配置
  • 为什么 Splashtop 是更好用的 iOS 远程桌面应用
  • [SQL挖掘机] - 字符串函数 - lower
  • 什么是Koala?
  • 阿里巴巴前端开发规范
  • opencv-19 图像色彩空间转换函数cv2.cvtColor()
  • SpringCloudAlibaba微服务实战系列(二)Nacos配置中心
  • 【Kafka源码走读】Admin接口的客户端与服务端的连接流程
  • Windows API遍历桌面上所有文件
  • 【MySQL】基本查询(插入查询结果、聚合函数、分组查询)
  • 【Go语言】Golang保姆级入门教程 Go初学者介绍chapter1
  • mysql 自增长键值增量设置
  • 【pytho】request五种种请求处理为空和非空处理以及上传excel,上传图片处理
  • 【全面解析】Windows 如何使用 SSH 密钥远程连接 Linux 服务器
  • 解锁新技能《基于logback的纯java版本SDK实现》
  • 你需要知道的云原生架构体系内容
  • 安全渗透--正则表达式
  • git如何撤销commit(未push)
  • Vue数组与字符串互转
  • Java编程实现遍历两个MAC地址之间所有MAC的方法
  • 用AXIS2发布WebService的方法
  • 嵌入式学习_Day 003
  • 常用的数据结构 JAVA
  • 基于机器视觉工具箱和形态学处理的视频中目标形状检测算法matlab仿真
  • 小白入门:sentence-transformer 提取embedding模型转onnx
  • 数据库应用:Redis持久化