Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • setting prompt display with .profile Linux/Unix
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • To Find Orphan OS processes. Linux/Unix
  • Monitor Long Running Job Oracle
  • To see how much time or progress of long transaction Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • Jai Shree Ram Linux/Unix
  • Search and replace editor command in vi Linux/Unix
  • GSQ.sql Oracle
  • SQL_PROFILE – I explaination Oracle
  • USE_NL and INDEX hints example Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix

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

  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Oracle 11g Environment Setup Oracle
  • Oracle Release Explaination Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • good note for shared pool tunnig Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements 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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • 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
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Good Oracle Architecture In Short and point to point Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • proper cpu stats Linux/Unix
  • How to find password change date for user Oracle
  • on IBM-AIX for display Linux/Unix
  • Drop database in Oracle 10g Oracle
  • Rman Notes -1 Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme