Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Monitor and Trace Unix processes using truss Linux/Unix
  • configUOCIOTTO.ora Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Database link password in user_db_links Oracle
  • cif crons Linux/Unix
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • create a folder in multiple places Linux/Unix
  • Debugging Shell FIles Linux/Unix
  • initUOCIOTTO.ora Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • Good notes for shared pool Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • Running select from V$ views from remote server Linux/Unix

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

  • Wait time tuning research Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • Implementing Listener Security Oracle
  • oracle Dba site Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • telnet listening Linux/Unix
  • Temporary tablespace explaination Oracle
  • checking connectivity between two servers Linux/Unix
  • Removing first line Linux/Unix
  • Alter procedure auditing Oracle
  • Oracle Metalink useful notes Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • fuser to check who is using diretory Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme