Does Inactive Oracle Sessions may lead to high CPU usage or increase CPU wait time? -


if having quite number of inactive db sessions might used in connection pool want know whether may lead high cpu utilization or increase cpu wait cycles ?

in simple words, inactive status in v$session means no sql statement being executed @ time check in v$session.

by nature, high number of active sessions slow down whole dbms including application , may lead high cpu utilization.

inactive sessions have low impact unless exceed maximum session number.

cpu usage active sessions can checked below query.

select    s.username,    t.sid,    s.serial#,    sum(value/100) "cpu usage (seconds)"    v$session s,    v$sesstat t,    v$statname n    t.statistic# = n.statistic# ,    name '%cpu used session%' ,    t.sid = s.sid ,    s.status='active' ,    s.username not null group username,t.sid,s.serial# / 

check out oracle v$session documentation http://docs.oracle.com/cd/b19306_01/server.102/b14237/dynviews_2088.htm#refrn30223


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -