Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • Oracle Connections expire_time and firewall Oracle
  • Privilege to describe the table. Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • configUOCIOTTO.ora Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • ORA-3136 Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • Find all users who have DML privileges Oracle
  • Jai Shree Ram Linux/Unix
  • Drop all SPM baselines for SQL handle Oracle
  • Distributed Transaction Troubleshooting. Oracle
  • Monitor Long Running Job Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • backspace in SQL Plus not working then..? 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

  • online_ts_bkup.sql Oracle
  • create user with unlimited quota Oracle
  • UTL_FILE test program Oracle
  • Oracle Release Explaination Oracle
  • CTAS with LONG Column for 9i and higher Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? 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 (399)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (347)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • USE_NL and INDEX hints example Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • dbms_job.submit example Oracle
  • How to start CRS manually Oracle
  • sess_server.sql Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • Zip and unzip with tar Linux/Unix
  • Important Solaris Commands Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme