Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • UTL_FILE test program Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • switchover for primary database Oracle
  • database trigger failing Oracle
  • load SPM baseline from cursor cache Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • Insert cause enqueue locks Oracle
  • lck.sql Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • find_longsql.sql Oracle
  • import-export with multiple files Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • Oracle 11g Environment Setup Oracle
  • DBA_HIST_SQLSTAT contents 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

  • How to connect to Oracle Database with Wallet with Python. Oracle
  • Oracle 11g Environment Setup Oracle
  • metalink all dynamic view reference notes. Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • load SPM baseline from cursor cache Oracle
  • Oracle Metalink useful notes Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Good Link from metalink 1 Oracle
  • find the files that are 1 day old. Linux/Unix
  • cur_sql.sql Oracle
  • useful dg links Oracle
  • Jai Shree Ram Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Default User Profile Oracle
  • Library cahe Latches and internal explaination Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme