Skip to Main Content

SQL & PL/SQL

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!

finding # of connected sessions over time period

GlenStromAug 21 2014 — edited Aug 21 2014

We're thinking of moving a client application to Citrix because of ongoing issues with clients on workstation. We'll probably have to purchase more Citrix, TS-RDP etc licenses if we do this, and I want to find out the max connected users over a period of time.

The application connects to the database with one account, so the query I want to run is a simple "select username, count(*) from v$session where username = 'x' group by username"

What I want to do is run this query over a couple of days, repeating every 5 minutes, spooling output to a text file.

Would I use dbms_lock to do this or is there wait or sleep function I can use?

Database is 11.2.0.1

thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 18 2014
Added on Aug 21 2014
3 comments
528 views