Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Database link password in user_db_links Oracle
  • Insert cause enqueue locks Oracle
  • Optimizer SORT Operations Oracle
  • Roles and Stored Procs II Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • Committing distributed transaction using commit force Oracle
  • Error Handling in Proc Oracle
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • tab.sql Oracle
  • create trigger syntax Oracle
  • online_bkup.sql Oracle
  • Important Solaris Commands Linux/Unix
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • SQL_PROFILE – I explaination Oracle
  • RAC 11g with vmware 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

  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • export import with parameter file. Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • login.sql Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • 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

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Creating never expiring DB user accounts in Oracle Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Find total file sizes Linux/Unix
  • How to calculate PROCESSES parameter Oracle
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • oracle fast start failover best practice Oracle
  • v$backup.status information Oracle
  • Set Role explaination. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme