Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How many active sessions were there at point-in-time in the past ?

SM_308Sep 7 2017 — edited Sep 8 2017

DB version : 11.2.0.4

Platform : Oracle Linux 6.7

To see how many active sessions are there in the DB at the moment, I can just run the following query. But, I want to know how many active sessions were there at point in the past (at particular time).

ie. Lets say the current time is 11:30 AM, I want to know how many active sessions were there at 9:00 AM. How can I get this info ?

select count(*) from v$session where type='USER' and status = 'ACTIVE';

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 6 2017
Added on Sep 7 2017
13 comments
1,850 views