当前位置:网站首页>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.
龙腾一族至尊龙骑
边栏推荐
- Analysis of 43 cases of MATLAB neural network: Chapter 32 time series prediction of wavelet neural network - short-term traffic flow prediction
- LeetCode: 377. Combined sum IV
- Why is LNX of e equal to X
- 蜜罐2款hfish,ehoney
- 物联网?快来看 Arduino 上云啦
- PRCT-1400 : 未能执行 getcrshome解决方法
- 如何规范化数据中心基础设施管理流程
- 413-二叉树基础
- 新手怎么选择投资理财产品的等级?
- 如何让社交媒体成为跨境电商驱动力?这款独立站工具不能错过!
猜你喜欢
随机推荐
PTA monkey chooses King (Joseph Ring problem)
Which of the top ten securities companies has the lowest Commission and is the safest and most reliable? Do you know anything
Desktop software development framework reward
数字化转型的失败原因及成功之道
2021-08-17
5分钟,客服聊天处理技巧,炉火纯青
415-二叉树(144. 二叉树的前序遍历、145. 二叉树的后序遍历、94. 二叉树的中序遍历)
Oracle database listening file configuration
Analysis of 43 cases of MATLAB neural network: Chapter 32 time series prediction of wavelet neural network - short-term traffic flow prediction
Threejs MMD model loading + contour loading + animation loading + Audio loading + camera animation loading +ammojs loading gltf model loading +gltf reflection adjustment
如何让社交媒体成为跨境电商驱动力?这款独立站工具不能错过!
Use of vim
物联网?快来看 Arduino 上云啦
el-table表格的拖拽 sortablejs
字节跳动-面试官: 谈下音视频同步原理,音频和视频能绝对同步吗?
Nlp-d59-nlp game D28 - I think it's OK - stage summary - mentality adjustment
Honeypot 2 hfish, ehoney
LeetCode: 377. Combined sum IV
How do novices choose the grade of investment and financial products?
Latex formula and table recognition









