当前位置:网站首页>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.
龙腾一族至尊龙骑
边栏推荐
- Tnsnames Ora file configuration
- Basic operations on binary tree
- ByteDance Interviewer: talk about the principle of audio and video synchronization. Can audio and video be absolutely synchronized?
- 微信小程序学习之 实现列表渲染和条件渲染.
- How do novices choose the grade of investment and financial products?
- An open source monitoring data collector that can monitor everything
- Mise en œuvre du rendu de liste et du rendu conditionnel pour l'apprentissage des applets Wechat.
- Oracle 12c升级至19c后ORA-28000错误
- Threejs MMD model loading + contour loading + animation loading + Audio loading + camera animation loading +ammojs loading gltf model loading +gltf reflection adjustment
- Conseils étonnants pour promouvoir les ventes d'entreprise avec le chat en direct
猜你喜欢

5 minutes, excellent customer service chat handling skills

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

Operator details

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

Cicflowmeter source code analysis and modification to meet requirements

indexedDB本地存储,首页优化

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

impdp导schema报ORA-31625异常处理

如何规范化数据中心基础设施管理流程

五心红娘
随机推荐
Oracle 12c升级至19c后ORA-28000错误
ByteDance Interviewer: talk about the principle of audio and video synchronization. Can audio and video be absolutely synchronized?
Idea cannot save settings source root d:xxxx is duplicated in module XXX
Is there a reliable and low commission futures account opening channel in China? Is it safe to open an account online?
Seekbar with text: customize progressdrawable/thumb: solve incomplete display
Indexeddb local storage, homepage optimization
Servlet fast foundation building
Talking about the knowledge of digital transformation
Amazing tips for using live chat to drive business sales
PostgreSQL
vim的使用
About thinkphp5, use the model save() to update the data prompt method not exist:think\db\query- & gt; Error reporting solution
In depth study paper reading target detection (VII) Chinese English Bilingual Edition: yolov4 optimal speed and accuracy of object detection
100 GIS practical application cases (XIV) -arcgis attribute connection and using Excel
Oracle database listening file configuration
请问有国内靠谱低手续费的期货开户渠道吗?网上开户安全吗?
Dragging El table sortablejs
操作符详解
Can the long-term financial products you buy be shortened?
Ggplot2 color setting summary