Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Find long Running Transaction Linux/Unix
  • Good Doc 28-JUN-2006 Oracle
  • Implementation of key based authentications Linux/Unix
  • Find_planinfo.sql Oracle
  • Search and replace pattern Linux/Unix
  • Find nth max and min. Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • move_arch_files.ksh Linux/Unix
  • Create type and Grant on it. Oracle
  • eplan.sql Oracle
  • Remove duplicate rows from table Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle

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

  • Specify the Rollback segment to use in Transaction Oracle
  • switchover for primary database Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • create database link syntax Oracle
  • db_status.sql Oracle
  • Finding Oracle Patches with opatch 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
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • Sending SQLPLUS output in HTML format Oracle
  • sql_plan9i.sql Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Implementing Listener Security Oracle
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • v$event_name Oracle
  • Find nth max and min. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme