Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • find_err.sql for finding errors from dba_errors. Oracle
  • Export With Query Another Example. Oracle
  • db_status.sql Oracle
  • move_arch_files.ksh Linux/Unix
  • useful dg links Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • All About oracle password and security from metalink Oracle
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • scp with ssh2 Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • UTL_FILE test program Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • To check whether standby is recovering properly or not?? Oracle
  • Resolving RMAN Hung Jobs 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

  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • PLSQL Table Syntax 2 Oracle
  • Temporary tablespace explaination Oracle
  • proc.sql Oracle
  • FRA Information. 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
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • xargs use Linux/Unix
  • How to change hostname in Linux Linux/Unix
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • set_env_dba Linux/Unix
  • Handling LOB data in Oracle Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme