Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Find sort details from Db find_sort.sql Oracle
  • sqlnet.ora paramters Oracle
  • SQL Server Vs Oracle Architecture difference SQL Server
  • For Search and replace unix command. Linux/Unix
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • Running select from V$ views from remote server Linux/Unix
  • Ports used by Oracle Software Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • The most important Tuning Notes Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • CPU Core related projections AWS
  • rm_backup_arch_file.ksh 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

  • Finding locked objects Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • Create type and Grant on it. Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • Import and export statements Oracle
  • compile_inv.sql Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Physical Standby switchover with session active Oracle
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • Jai Shree Ram Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • JSON/XML Types in Oracle Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme