Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to start CRS manually Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • How to remove blank lines using vi editor command Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • sesswait.sql Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • v$backup.status information Oracle
  • Committing distributed transaction using commit force Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • find_cons.sql Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • load SPM baseline from cursor cache Oracle
  • purge_trc.sh Linux/Unix
  • Reading parameter file and printing Linux/Unix

find_open_cur.sql Find open cursorts per session

Posted on 10-Mar-2006 By Admin No Comments on find_open_cur.sql Find open cursorts per session

set lines 132

set pages 300

column numopencursors format d8

column machine format a30

column osuser format a20

column username format a20

SELECT s.sid, v.value as numopencursors ,s.machine ,s.osuser,s.username

FROM V$SESSTAT v, V$SESSION s

WHERE v.statistic# = 3 and v.sid = s.sid ;

Oracle, SQL scripts

Post navigation

Previous Post: TRUNCATE Privs
Next Post: sid_wise_cursor.sql find open cursor basis on username or SID

Related Posts

  • ORA-3136 Oracle
  • executing Function from SQLPLUS prompt Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Oracle Material from OTN Oracle
  • USE_NL and INDEX hints example Oracle
  • Rman Notes -1 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
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • Oracle 11g Environment Setup Oracle
  • create PLAN_TABLE command. Oracle
  • How to remove blank lines using vi editor command Linux/Unix
  • Rman Notes -1 Oracle
  • How to calculate PROCESSES parameter Oracle
  • Logic to chech # of parameters command line parameters Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme