Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Pending Transaction Neighbors Script Oracle
  • currwait.sql Oracle
  • Committing distributed transaction using commit force Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • secure crt settings Linux/Unix
  • SQL Server Vs Oracle Architecture difference SQL Server
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • Python class import from different folders Python/PySpark
  • Roles and Stored Procs II Oracle
  • set_env_dba Linux/Unix
  • Oracle Standby Database Library Index from Metalink Oracle
  • block_ident.sql Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) 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

  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • Drop tempfiles from database Oracle
  • How to check current redo log progress redo_progress.sql Oracle
  • arch_configUOCIOTTO.ora Oracle
  • executing Function from SQLPLUS prompt Oracle
  • create database syntax 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
  • xargs use Linux/Unix
  • create a folder in multiple places Linux/Unix
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • scripts to take listener.log backup Linux/Unix
  • This is im telling Kishore Oracle
  • Rollback force for distributed transactions Oracle
  • Read CSV File using Python Python/PySpark
  • Monitor and Trace Unix processes using truss Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme