Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Good links for x$ tables in oracle. Oracle
  • on IBM-AIX for display Linux/Unix
  • ORA-01220 Oracle
  • dbinv.sql Oracle
  • grep multuple patterns Linux/Unix
  • Formatter Explain plan Output 1 Oracle
  • move_arch_files.ksh Linux/Unix
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • VIvek Encryption Package and Its Usage Oracle
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • Implementing Listener Security Oracle
  • Oracle Standby Database Library Index from Metalink Oracle
  • SAN Linux/Unix
  • Generating XML from SQLPLUS Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle

sid_wise_sql.sql

Posted on 30-Jan-2006 By Admin No Comments on sid_wise_sql.sql

accept u_name prompt ‘Enter User Name (Enter NONE if want SID specific query): ‘

accept s_id prompt ‘Enter SID (Enter 0 for Userspecific Query): ‘

select a.sid, b.sql_text, a.sql_id, c.spid, b.executions, b.disk_reads, b.elapsed_time, b.cpu_time, b.buffer_gets

from v$session a, v$sqlarea b, v$process c

where a.sql_id = b.sql_id(+)

and (a.username = upper(‘&u_name’) or a.sid = &s_id )

and a.paddr = c.addr

/

Oracle, SQL scripts

Post navigation

Previous Post: All About Trace Fils
Next Post: How to check current redo log progress redo_progress.sql

Related Posts

  • The most important Tuning Notes Oracle
  • Rman Notes -1 Oracle
  • CPU Core related projections AWS
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • Goog notes on X$ tables Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle

Leave a Reply Cancel reply

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

Categories

  • AMC10 (0)
  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (6)
  • Videos (0)

Recent Posts

  • AMC1020-Sep-2026
  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Important Script Method for tuning Oracle
  • exp syntax in oracle 10g Oracle
  • Proc code Oracle
  • JSON/XML Types in Oracle Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • useful dg links Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme