Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • create a folder in multiple places Linux/Unix
  • find_string_in_database.sql Oracle
  • Running PDB on single node in RAC Oracle
  • sid_wise_sql.sql Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • SAT Mathematics 10 questions and answer at the end. Uncategorized
  • How to choose Driver table in SQL statement Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Some OS level threshold for performance. Linux/Unix
  • AWR license Oracle
  • scripts to take listener.log backup Linux/Unix
  • When error comes for temporary tablespace with version <= 9i Oracle
  • restarting network in linux Linux/Unix
  • Sending SQLPLUS output in HTML format Oracle
  • Rman Notes -1 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

  • First Entry in RAC Oracle
  • SQL_PROFILE – I explaination Oracle
  • Oracle 10g for solaris 10 Oracle
  • Proc Compilation Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • dbinv.sql Oracle

Leave a Reply Cancel reply

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

Categories

  • AMC10 (0)
  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (6)
  • Videos (0)

Recent Posts

  • AMC1020-Sep-2026
  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Implementation of key based authentications Linux/Unix
  • reset Sequence Oracle
  • Roles and Stored Procs II Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • Set Role explaination. Oracle
  • Space padding in korn shell Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme