Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Sequence Resetting Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • Identical Dblink Issue… Oracle
  • purge_trc.sh Linux/Unix
  • upload.html PHP/MYSQL/Wordpress
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • All Hints for Oracle Databases Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • Drop tempfiles from database Oracle
  • Ports used by Oracle Software Oracle
  • Rollback force for distributed transactions Oracle
  • Running select from V$ views from remote server Linux/Unix
  • Jai Shree Ram PHP/MYSQL/Wordpress

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

  • How do I get Oracle to automatically start when my server boots up? Oracle
  • get_vmstat.ksh for Solaris Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • My Minimum Tuning Programs Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • First Entry in RAC Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Jai Shree Ram Oracle
  • Python class import from different folders Python/PySpark
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Find all users who have DML privileges Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • configUOCIOTTO.ora Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme