Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Drop database in Oracle 10g Oracle
  • Physical Standby switchover with session active Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • useful dg links Oracle
  • scripts to take listener.log backup Linux/Unix
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Pending Transaction Neighbors Script Oracle
  • Important Script Method for tuning Oracle
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • New OFA for 11g Oracle
  • Reading config file from other folder inside class Python/PySpark
  • CPU speed on Linux Linux/Unix
  • find_arc.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

  • Implementing Listener Security Oracle
  • Import and export statements Oracle
  • create PLAN_TABLE command. Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • oracle fast start failover best practice Oracle
  • All About oracle password and security from metalink 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
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Oracle Internal Good Websites 1 Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • Find_planinfo.sql Oracle
  • create a folder in multiple places Linux/Unix
  • V$transaction notes for finding XID composition. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme