Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • get_aix_vmstat.ksh Oracle
  • Finding locked objects Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • longtx.sql Oracle
  • Good Link from metalink 1 Oracle
  • PLSQL Table Syntax 2 Oracle
  • block_ident.sql Oracle
  • This is im telling Kishore Oracle
  • Find_table_size.sql Oracle
  • Proc Compilation Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Jai Shree Ram Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • How does one overcome the Unix 2 Gig file limit? 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

  • Nice notes on wait events Oracle
  • V$ROLLSTAT status is Full Oracle
  • currwait.sql Oracle
  • eplan.sql Oracle
  • Good notes on Oracle Events Oracle
  • proc.sql 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
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • cold backup scripts to copy locally Linux/Unix
  • Find_table_size.sql Oracle
  • plan10g.sql Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • get_vmstat_solaris Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme