Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Find Plan Hash value fphv.sql Oracle
  • Renaming Global Name GLOBAL_NAME Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • Database logon trigger issue Oracle
  • Insert cause enqueue locks Oracle
  • Find nth max and min. Oracle
  • Generating XML from SQLPLUS Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • Giving Grant on v$DATABASE Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Monitor Long Running Job Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • how to find OS block size Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle

sesswait.sql

Posted on 02-Aug-2005 By Admin No Comments on sesswait.sql

set pages 300

set lines 151

column event format a30

column p1_detail format a25

column p2_detail format a15

column p3_detail format a5

column sid format a15

column wait_time format 999999

column seconds_in_wait format 999999999

column state format a30 word_wrapped

select

A.SID ||’,’ || A.seq# sid ,

A.EVENT,

A.P1TEXT || ‘=’ || A.P1 p1_detail,

A.P2TEXT || ‘=’ || A.P2 p2_detail,

A.P3TEXT || ‘=’ || A.P3 p3_detail,

A.WAIT_TIME,

A.SECONDS_IN_WAIT,

A.STATE

from v$session_wait A

order by event

;

Oracle, SQL scripts

Post navigation

Previous Post: Wait time tuning research
Next Post: ext#.sql

Related Posts

  • create database syntax Oracle
  • Export With Query Another Example. Oracle
  • Backup and Recovery Scenarios Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • V$transaction notes for finding XID composition. Oracle
  • sess_server.sql 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
  • get_vmstat_solaris Oracle
  • to see when crontab is changed. Linux/Unix
  • UTL_FILE test program Oracle
  • All About oracle password and security from metalink Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Sending SQLPLUS output in HTML format Oracle
  • Changing Instance Name ( No DB_NAME) Oracle
  • Rman Notes -1 Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme