Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • oracle_env_10g_CADEV Linux/Unix
  • Difference between SYNC and AFFIRM Oracle
  • How can I tell if ASO is installed ? Oracle
  • Sequence Resetting Oracle
  • configUOCIOTTO.ora Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • Oracle 10g for solaris 10 Oracle
  • Postgres DB user and OS user. POSTGRESQL
  • Optimizer_Index init.ora parameter explaination. Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress

sid_wise_cursor.sql find open cursor basis on username or SID

Posted on 10-Mar-2006 By Admin No Comments on sid_wise_cursor.sql find open cursor basis on username or SID

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.user_name

from v$session a, v$open_cursor 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: find_open_cur.sql Find open cursorts per session
Next Post: Drop tempfiles from database

Related Posts

  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • load SPM baseline from cursor cache Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • AWR license Oracle
  • SQLPLUS COPY command Precautions. 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
  • CPU speed on solaris Linux/Unix
  • Restoring a user’s original password 1051962.101 Oracle
  • xargs use Linux/Unix
  • Monitor and Trace Unix processes using truss Linux/Unix
  • How to remove blank lines using vi editor command Linux/Unix
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Jai Shree Ram Oracle
  • Export With Query Another Example. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme