Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • to see when crontab is changed. Linux/Unix
  • Logic to chech # of parameters command line parameters Linux/Unix
  • How to analyze statspack or AWR report. Oracle
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • MYSQL for Oracle DBA MYSQL
  • Unix split command to split files Linux/Unix
  • create trigger syntax Oracle
  • alter database backup controlfile to trace Oracle
  • To find explain plan for a statement that occurred in past. Oracle
  • My Minimum Tuning Programs Oracle
  • sqlnet.ora paramters Oracle
  • Find_table_size.sql Oracle
  • Directory wise folder wise space usage Linux/Unix
  • Rownum with Order by 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

  • Rownum with Order by Oracle
  • Find nth max and min. Oracle
  • standard Monitoring – 1 Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Multiple listeners 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
  • Exadata Basics Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Jai Shree Ram Oracle
  • process id based files and processes Linux/Unix
  • Reclaim temp tablespace for oracle 8, 8i Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme