Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Backup and Recovery Scenarios Oracle
  • Implementation of key based authentications Linux/Unix
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • DBMS_Shared_pool pinning triggers Oracle
  • Proc Compilation Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • Load SPM baseline from AWR Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • export import with parameter file. Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • Implementing Listener Security Oracle
  • scp with ssh2 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

  • Oracle 11g Environment Setup Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • Find Stale DR Physical Standby Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • how to find OS block size Oracle
  • Changing the Global Database Name Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • v$backup.status information Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • newupload.html PHP/MYSQL/Wordpress
  • USE_NL and INDEX hints example Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme