Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • sid_wise_sql.sql Further explaination Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • Jai Shree Ram Oracle
  • More info about /proc folder and its relation with processes. Linux/Unix
  • TRUNCATE Privs Oracle
  • Finding Oracle Patches with opatch Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • grep multuple patterns Linux/Unix
  • Monitor and Trace Unix processes using truss Linux/Unix
  • Find_planinfo.sql Oracle
  • Oracle Statspack survival Guide Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • sql_doing_fts.sql Oracle
  • exp syntax in oracle 10g Oracle

sess1.sql

Posted on 27-Sep-2006 By Admin No Comments on sess1.sql

column osuser format a10

column username format a30

column machine format a30

column program format a40

column sid format 99999999

column serial# format 99999999

column TOT format 999999 heading “Total Sessions”

break on report

compute sum of TOT on report

set lines 141

set pages 500

select machine, osuser, username, count(1) “TOT” from v$session

group by machine, osuser, username

order by username;

!ps -ef | grep -v grep | grep WEBP18F |wc -l

Oracle, SQL scripts

Post navigation

Previous Post: currwait.sql
Next Post: shr1.sql for MTS or Shared server configuration

Related Posts

  • Library cahe Latches and internal explaination Oracle
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • PLSQL Table Syntax 1 Oracle
  • Find all users who have DML privileges Oracle
  • How to start CRS manually Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Database link password in user_db_links Oracle
  • How to calculate PROCESSES parameter Oracle
  • nfs mount command Linux/Unix
  • Changing Instance Name ( No DB_NAME) Oracle
  • create user with unlimited quota Oracle
  • Rman Notes -1 Oracle
  • Backup and Recovery Scenarios Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme