当前位置:网站首页>Troubleshooting steps for Oracle pool connection request timeout

Troubleshooting steps for Oracle pool connection request timeout

2022-06-24 10:06:00 51CTO

oracle Troubleshooting steps for pool connection request timeout _ The number of connections

 

 

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

原网站

版权声明
本文为[51CTO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240933063041.html