Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • USER_TABLES.Freelists Oracle
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • adding new line after specific pattern using sed Linux/Unix
  • Import and export statements Oracle
  • Oracle 10g Wait Model Oracle
  • proc.sql Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • Export Oracle data and Compress at same time Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • Good Link from metalink 1 Oracle
  • v$event_name Oracle
  • to see when crontab is changed. Linux/Unix
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • create user with unlimited quota 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

  • Implementing Listener Security Oracle
  • Facts about SCN and Rollback Segment Oracle
  • Find Plan Hash value fphv.sql Oracle
  • Wait.sql Oracle
  • import-export with multiple files Oracle
  • executing Function from SQLPLUS prompt Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • configUOCIOTTO.ora Oracle
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • All About Trace Fils Oracle
  • set_env_dba Linux/Unix
  • How to know current SID Oracle
  • Creating never expiring DB user accounts in Oracle Oracle
  • Python class import from different folders Python/PySpark
  • age_alert.ksh aging out alert.log Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme