Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • Explain Plan Output 2 Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Pending Distributed Transations Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • CPU Core related projections AWS
  • RAC with RHEL4 and 11g Oracle
  • catall.sh Linux/Unix
  • Import and export statements Oracle
  • Find Stale DR Physical Standby Oracle
  • SYSOPER Mystery Oracle
  • How to check current redo log progress redo_progress.sql 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

  • VIvek Encryption Package and Its Usage Oracle
  • Oracle Metalink useful notes Oracle
  • SQL_PROFILE – I explaination Oracle
  • Absolute file number and relative file number Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • How to know current SID 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
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • V$ROLLSTAT status is Full Oracle
  • Jai Shree Ram Oracle
  • move_arch_files.ksh Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • Sort with ASCII order and Numeric Order Linux/Unix
  • Jai Shree Ram Oracle
  • Goldengate document from Porus Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme