Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Sequence Resetting Oracle
  • Rename Tablespace Oracle
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • find_string_in_database.sql Oracle
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • v$backup.status information Oracle
  • Goldengate document from Porus Oracle
  • Renaming Oracle Instance Name Oracle
  • Implementation of key based authentications Linux/Unix
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • DBMS_STATS Metalinks Notes Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • handling filenname with space Linux/Unix
  • Find average Row Length and other table size calculation. metalink notes 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

  • Resolving RMAN Hung Jobs Oracle
  • Database logon trigger issue Oracle
  • online_ts_bkup.sql Oracle
  • How to choose Driver table in SQL statement Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • normal maintenance for exp-imp and renaming table 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 (394)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • tracksqltime.sql05-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • newupload.html PHP/MYSQL/Wordpress
  • cold backup scripts to copy locally Linux/Unix
  • Changing Instance Name ( No DB_NAME) Oracle
  • create a folder in multiple places Linux/Unix
  • Backup and Recovery Scenarios Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • To seee semaphores and shared memory segments in Solaris Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme