Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • checking redhat linux version Linux/Unix
  • JSON/XML Types in Oracle Oracle
  • Find Command Linux/Unix
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • initUOCIOTTO.ora Oracle
  • Find_planinfo.sql Oracle
  • fuser to check who is using diretory Linux/Unix
  • Order by with ROWNUM Oracle
  • First Entry in RAC Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • Korn Shell Arithmatic Linux/Unix
  • replace alphabets using sed Linux/Unix

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

  • Exadata Basics Oracle
  • DB Console Mainenance. Oracle
  • create PLAN_TABLE command. Oracle
  • Distributed Transaction Troubleshooting. Oracle
  • Free conference number from http://www.freeconference.com Oracle
  • Wait Based Tuning Step by step with SQL statement 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
  • Some useful Unix Commands Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • My Test Case On 21-OCT-2005 Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • Check Oracle installed products using one command Oracle
  • Jai Shree Ram Oracle
  • check_copy_progress.sh Linux/Unix
  • pvm_metric.sql for gathering report from vmstat tables Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme