Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • RAC 11g with vmware Oracle
  • SAN Linux/Unix
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • CPU speed on solaris Linux/Unix
  • create database link syntax Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • tab.sql Oracle
  • sqlnet.ora paramters Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • rm_backup_arch_file.ksh Linux/Unix
  • Privilege to describe the table. Oracle
  • Find All internal Parameters Oracle

currwait.sql

Posted on 27-Sep-2006 By Admin No Comments on currwait.sql

set lines 120 pages 200

column event format a30

column object_type format a14

column object_name format a30

column owner format a10

column sql_text format a120

accept event_name prompt ‘Enter fraction of event to trace : ‘

select distinct a.event, s.sql_id, s.sql_text, s.executions

from v$session a, v$sqlarea s

where s.sql_id = a.sql_id

and lower(a.event) like lower(‘%&event_name%’)

order by s.sql_id;

Oracle, SQL scripts

Post navigation

Previous Post: Vivek’s egrep commands to trace problem. (on linux x86-64)
Next Post: sess1.sql

Related Posts

  • Wait Based Tuning Step by step with SQL statement Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • USE_NL and INDEX hints example Oracle
  • Updated LCK.SQL file. Oracle
  • Rman Notes -1 Oracle
  • before_trunc.sql Before Truncate table needs to execute following: 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
  • RAC with RHEL4 and 11g Oracle
  • find_string_in_database.sql Oracle
  • find_longsql.sql Oracle
  • Drop specific SQL plan baseline – spm Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • First Entry in RAC Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme