Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Find_table_size.sql Oracle
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • Building Our Own Namespaces with “Create Context” Oracle
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • Distributed Transaction Troubleshooting. Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Export Import with QUERY Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • exp syntax in oracle 10g Oracle
  • Find sort details from Db find_sort.sql Oracle
  • Clean up Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Proc Compilation 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

  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Jai Shree Ram Oracle
  • eplan.sql Oracle
  • How to check current redo log progress redo_progress.sql Oracle
  • good note for shared pool tunnig Oracle
  • Implementing Listener Security 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
  • CPU Core related projections AWS
  • fuser to check who is using diretory Linux/Unix
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • All About Trace Fils Oracle
  • Important Script Method for tuning Oracle
  • how to find OS block size Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme