Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • FRA Information. Oracle
  • Rownum with Order by Oracle
  • Find_planinfo.sql Oracle
  • CTAS with LONG Column for 9i and higher Oracle
  • Oracle 10g Wait Model Oracle
  • Kernel Parameters for Solaris Linux/Unix
  • Remove duplicate rows from table Oracle
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • Good Site for Oracle Internals Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • Convert multiple rows to single column Oracle
  • GSQ.sql Oracle
  • Korn Shell Arithmatic Linux/Unix
  • MYSQL and Oracle Comparison for Oracle DBA MYSQL
  • initUOCIOTTO.ora Oracle

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

  • Alter procedure auditing Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • Create type and Grant on it. Oracle
  • Find Stale DR Physical Standby Oracle
  • Goog notes on X$ tables Oracle
  • Oracle Standby Database Library Index from Metalink 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
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • Rownum with Order by Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Some OS level threshold for performance. Linux/Unix
  • Read CSV File using Python Python/PySpark
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • New OFA for 11g Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme