当前位置:网站首页>oracle池式连接请求超时问题排查步骤
oracle池式连接请求超时问题排查步骤
2022-06-24 09:35:00 【51CTO】

1、
--1、根据数据库、进程获取当前oracle数据库连接session,注意username
select *from v$session where username='NGSOFT' and program='w3wp.exe' ORDER BY PREV_exec_start
--2、打印当前连接数,查看当前连接池是否超出,oracle连接池可设置1000,注意username
select count(*)from v$session where username='NGSOFT' and program='w3wp.exe' ORDER BY PREV_exec_start
--3、根据sql_id获取sql语句
select * from v$sql where sql_id='gj82qu4h997uj'
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
2、
--查询数据库当前进程的连接数:
select count(*) from v$process;
--查看数据库当前会话的连接数:
select count(*) from v$session;
--查看数据库的并发连接数:
select count(*) from v$session where status='ACTIVE';
--查询数据库允许的最大连接数:
select value from v$parameter where name = 'processes';
--修改数据库允许的最大连接数:
alter system set processes = 300 scope = spfile;
--查看当前有哪些用户正在使用数据:
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;
--查询数据库当前进程的连接数:host_process_id--w3wp
select count(*),host_process_id from sys.dm_exec_sessions group by host_process_id
select 'dbcc inputbuffer(' +cast(session_id as varchar) +')',session_id,last_request_start_time,login_time,last_request_end_time
from sys.dm_exec_sessions where host_process_id='1360' order by last_request_start_time asc
select * from sys.dm_exec_sessions where host_process_id='5800'
dbcc inputbuffer(51)
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
龙腾一族至尊龙骑
边栏推荐
- Ora-28000 error after upgrading Oracle 12C to 19C
- 记录一下MySql update会锁定哪些范围的数据
- indexedDB本地存储,首页优化
- Basic operations on binary tree
- 有关二叉树 的基本操作
- An open source monitoring data collector that can monitor everything
- Binary tree part I
- Idea cannot save settings source root d:xxxx is duplicated in module XXX
- Talking about the knowledge of digital transformation
- nVisual数字基础设施运营管理软件平台
猜你喜欢

微信小程序學習之 實現列錶渲染和條件渲染.

IDEA 无法保存设置 源根 D:XXXX在模块XXX中重复

20、 Processor scheduling (RR time slice rotation, mlfq multi-level feedback queue, CFS fully fair scheduler, priority reversal; multiprocessor scheduling)

二叉树第一部分

如何提高网络基础设施排障效率,告别数据断档?

How to manage massive network infrastructure?

Ora-28000 error after upgrading Oracle 12C to 19C

操作符详解

如何解决独立站多渠道客户沟通难题?这款跨境电商插件一定要知道!

Oracle数据文件头SCN不一致处理方法
随机推荐
有关二叉树 的基本操作
Idea cannot save settings source root d:xxxx is duplicated in module XXX
操作符详解
latex公式及表格识别
Latex formula and table recognition
Binary tree part I
port 22: Connection refused
Use of vim
数字化转型的失败原因及成功之道
PTA monkey chooses King (Joseph Ring problem)
SSH Remote Password free login
CICFlowMeter源码分析以及为满足需求而进行的修改
Record the range of data that MySQL update will lock
Oracle的tnsnames.ora文件配置
二十、处理器调度(RR时间片轮转,MLFQ多级反馈队列,CFS完全公平调度器,优先级翻转;多处理器调度)
深度学习论文阅读目标检测篇(七)中英对照版:YOLOv4《Optimal Speed and Accuracy of Object Detection》
416-二叉树(前中后序遍历—迭代法)
Producer / consumer model
五心红娘
Getting user information for applet learning (getuserprofile and getUserInfo)