Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • All Hints for Oracle Databases Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Building Our Own Namespaces with “Create Context” Oracle
  • Flowers Resize datafiles Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • MYSQL and Oracle Comparison for Oracle DBA MYSQL
  • Korn Shell Arithmatic Linux/Unix
  • Sequence Resetting Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • To see only files and/or folders using LS command Linux/Unix
  • Some OS level threshold for performance. Linux/Unix
  • Debugging Shell FIles Linux/Unix
  • Drop all SPM baselines for SQL handle Oracle
  • For Search and replace unix command. Linux/Unix
  • SAN Linux/Unix

perf_today.sql

Posted on 10-May-2008 By Admin No Comments on perf_today.sql

column start_dt format a20

column start_dt1 format a20

set lines 120 pages 300

select to_char(start_date, ‘DD-MON-RRRR:HH24:MI’) start_dt, user_cpu, system_cpu, idle_cpu, wait_cpu

from STATS$VMSTAT2

where start_date > trunc(sysdate)

order by start_date;

select to_char(measured_date, ‘DD-MON-RRRR:HH24:MI’) start_dt, total_users, Active_users from STATS$TOTALUSERS

where measured_date > trunc(sysdate)

order by measured_date;

select to_char(start_date, ‘DD-MON-RRRR:HH24:MI’) start_dt1, system_sessions, active_users, inactive_users,

dedicated_servers, user_sessions, transactions

from STATS$USERSESSION

where start_date > trunc(sysdate)

order by start_date;

Oracle, SQL scripts

Post navigation

Previous Post: pvm_rbs1.sql (to collect rbs info from db)
Next Post: find_idle_cpu.sql

Related Posts

  • Absolute file number and relative file number Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • logminer and my_lbu Oracle
  • proc.sql Oracle
  • V$ROLLSTAT status is Full Oracle
  • Oracle 10g for solaris 10 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
  • DBMS_SQL for alter session. Oracle
  • standard Monitoring – 1 Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • runsql_once.ksh Linux/Unix
  • create database link syntax Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme