当前位置:网站首页>Troubleshooting steps for Oracle pool connection request timeout
Troubleshooting steps for Oracle pool connection request timeout
2022-06-24 10:06:00 【51CTO】

1、
--1、 According to the database 、 The process gets the current oracle Database connection session, Be careful username
select *from v$session where username='NGSOFT' and program='w3wp.exe' ORDER BY PREV_exec_start
--2、 Print the current number of connections , Check whether the current connection pool exceeds ,oracle Connection pool settable 1000, Be careful username
select count(*)from v$session where username='NGSOFT' and program='w3wp.exe' ORDER BY PREV_exec_start
--3、 according to sql_id obtain sql sentence
select * from v$sql where sql_id='gj82qu4h997uj'
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
2、
-- Query the connection number of the current process in the database :
select count(*) from v$process;
-- View the number of connections to the current session of the database :
select count(*) from v$session;
-- View the number of concurrent connections to the database :
select count(*) from v$session where status='ACTIVE';
-- The maximum number of connections allowed to query the database :
select value from v$parameter where name = 'processes';
-- Modify the maximum number of connections allowed in the database :
alter system set processes = 300 scope = spfile;
-- See which users are currently using data :
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;
-- Query the connection number of the current process in the database :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.
The supreme Dragon Rider of the dragon clan
边栏推荐
猜你喜欢

Mise en œuvre du rendu de liste et du rendu conditionnel pour l'apprentissage des applets Wechat.

时尚的弹出模态登录注册窗口

居家办公如何管理数据中心网络基础设施?

vim的使用

Development of anti fleeing marketing software for health products

Tutorial (5.0) 08 Fortinet security architecture integration and fortixdr * fortiedr * Fortinet network security expert NSE 5

Nvisual digital infrastructure operation management software platform

How does home office manage the data center network infrastructure?

Latex formula and table recognition

canvas无限扫描js特效代码
随机推荐
Binary tree part I
Oracle database listening file configuration
Mise en œuvre du rendu de liste et du rendu conditionnel pour l'apprentissage des applets Wechat.
JS singleton mode
十大证券公司哪个佣金最低,最安全可靠?有知道的吗
js单例模式
416-二叉树(前中后序遍历—迭代法)
JS proxy mode
英伟达这篇CVPR 2022 Oral火了!2D图像秒变逼真3D物体!虚拟爵士乐队来了!
Practical analysis: implementation principle of APP scanning code landing (app+ detailed logic on the web side) with source code
买的长期理财产品,可以转短吗?
Floating point notation (summarized from cs61c and CMU CSAPP)
port 22: Connection refused
[custom endpoint and implementation principle]
Which of the top ten securities companies has the lowest Commission and is the safest and most reliable? Do you know anything
Programming questions (continuously updated)
El table Click to add row style
Network of test and development - Common Service Protocols
100 GIS practical application cases (XIV) -arcgis attribute connection and using Excel
port 22: Connection refused