Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> current users

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: current users
 Bishal  Posted: Apr 22, 2008 03:58:32 AM

 Total Post: 207
 Joined: Apr, 2008






 how do i know that how many users are currently connected to my database

 GOPU
Posted: Apr 22, 2008 04:35:01 AM  

 Total Post: 334
 Joined: Apr, 2008






 
select username,state from v$session;

 Gitesh
Posted: Apr 22, 2008 11:46:02 PM  

 Total Post: 322
 Joined: May, 2005






 
Little correction in above commands.

select username,count(status) from v$session
where username is not null
group by username;

You will get status wise list of users in above query. If you want only that how many users are connected and how many sessions are connected then use following query.

select count(*) from v$session
where username is not null;

 GOPU
Posted: Apr 23, 2008 12:20:29 AM  

 Total Post: 334
 Joined: Apr, 2008






 
hi,
thanks for correcting me... :)

regards
Gopu

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi334
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software