Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • ext#.sql Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • standard Monitoring – 1 Oracle
  • db_status.sql Oracle
  • useful dg links Oracle
  • EXTPROC Oracle
  • S3 Basic info AWS
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Changing the Global Database Name Oracle
  • Implementing Listener Security Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • find_cons.sql Oracle
  • Import and export statements Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • Composite Index creation tip from Vivek Oracle

find_idle_cpu.sql

Posted on 10-May-2008 By Admin No Comments on find_idle_cpu.sql

spool /export/home/oracle/scripts/idle_cpu.txt

set linesize 120

set pagesize 120

SELECT TO_CHAR (start_date, ‘DD-MON-RRRR:HH24:MI’) start_dt, user_cpu,

system_cpu, idle_cpu, wait_cpu

FROM stats$vmstat2

where idle_cpu<=30
and start_date>=(SYSDATE – 1/48) AND ROWNUM <2 ORDER BY start_date DESC;
spool off

Oracle, SQL scripts

Post navigation

Previous Post: perf_today.sql
Next Post: sql_plan9i.sql

Related Posts

  • DBMS_JOB all example Oracle
  • Good notes on Oracle Events Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • CPU Core related projections AWS
  • login.sql Oracle
  • How to Modify the statistics collection by MMON for AWR repository 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • USER_TABLES.Freelists Oracle
  • Checking SQL Server Version SQL Server
  • cache buffer chain latch Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • Oracle Material from OTN Oracle
  • sql_plan9i.sql Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme