Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • Clean up Oracle
  • To see only files and/or folders using LS command Linux/Unix
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • Check Oracle installed products using one command Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Restoring a user’s original password 1051962.101 Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • TRUNCATE Privs Oracle
  • pvm_pre_change.sql Oracle
  • Session_info.ksh Linux/Unix
  • Monitor and Trace Unix processes using truss Linux/Unix
  • pvm_rbs1.sql (to collect rbs info from db) 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

  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • metalink all dynamic view reference notes. Oracle
  • Histogram Overview Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • Resolving RMAN Hung Jobs Oracle
  • Optimizer SORT Operations 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Guide to Linux System Command Mastery Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • Running select from V$ views from remote server Linux/Unix
  • initUOCIOTTO.ora Oracle
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • Nice notes on wait events Oracle
  • create a folder in multiple places Linux/Unix
  • Goldengate Tutorial Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme