Quick hacks, info discovered in the technology journey

Capturing quick hacks, scripts and handy info working as a database generalist

Tuesday, February 2, 2010

How to know the sessions active in your Oracle database ?

The following query should give you the summary of users and the number of sessions held by them.

SQL> select schemaname, session_count from 
(select distinct schemaname, count(sid) as session_count from v$session group by schemaname) 
order by session_count desc;


-- To know the total number of sessions in progress...
SQL> select count(*) from v$session;

at 5:36 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Topics: Oracle, Oracle DBA Handy

97 Things every programmer should know

http://programmer.97things.oreilly.com/wiki/index.php/97_Things_Every_Programmer_Should_Know
at 1:40 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Topics: best practices

Making a better place to dwell.. Help software survive

http://programmer.97things.oreilly.com/wiki/index.php/The_Boy_Scout_Rule
at 12:54 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Topics: best practices
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

FEEDJIT Live Traffic Feed

Blog Archive

  • ►  2014 (2)
    • ►  November (2)
  • ►  2012 (5)
    • ►  November (1)
    • ►  April (1)
    • ►  February (3)
  • ►  2011 (3)
    • ►  August (1)
    • ►  February (2)
  • ▼  2010 (15)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  July (2)
    • ►  June (3)
    • ►  April (2)
    • ▼  February (3)
      • How to know the sessions active in your Oracle dat...
      • 97 Things every programmer should know
      • Making a better place to dwell.. Help software sur...
    • ►  January (2)
  • ►  2009 (13)
    • ►  December (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (3)
    • ►  March (5)
    • ►  February (2)

Labels

  • best practices (5)
  • Database General (10)
  • ETL (1)
  • fact (3)
  • FAQ (3)
  • git (1)
  • github (2)
  • Linux (1)
  • markdown (1)
  • md (1)
  • news (3)
  • Oracle (12)
  • Oracle DBA Handy (5)
  • PLSQL (2)
  • SQL Developer (1)
  • SQLServer (3)
Simple theme. Theme images by Nikada. Powered by Blogger.