Script to check sessions/process infromation from statspack


Script to check sessions/process infromation from statspack.

----- please check once before use script and modify sysdate as per your need----------

select B.SNAP_TIME,A.CURRENT_UTILIZATION from STATS$RESOURCE_LIMIT A,PERFSTAT.STATS$SNAPSHOT B
where  a.snap_ID=b.snap_ID
AND A.RESOURCE_NAME  ='processes'
and TRUNC(B.SNAP_TIME) >= TRUNC(sysdate-2) order by A.snap_ID;






-------------------------------------
Thanks for your vist!!!
Any suggestions or you have any better scipt please share in comment session it helps me in future posts
------------------------------------

Comments

Popular posts from this blog

SQL Tuning Task Creation ORA-13780: SQL statement does not exist.

Shareplex some commands

ORA-1092 : opitsk aborting process