Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • how to find OS block size Oracle
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Some useful Unix Commands Linux/Unix
  • Generating XML from SQLPLUS Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Check Oracle installed products using one command Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • Another export with Query Oracle
  • Find_table_size.sql Oracle
  • Rman Notes -1 Oracle
  • CPU Core related projections AWS
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • ipcs -l Linux/Unix

SQL Tracker by SID sqltrackerbysid.sql

Posted on 22-Apr-202522-Apr-2025 By Admin No Comments on SQL Tracker by SID sqltrackerbysid.sql

col SAMPLE_TIME format a25
col program format a20
col SQL_EXEC_START format a25
col machine format a15
set lines 140 pages 200
alter session set nls_date_format=’DD-MON-RRRR:HH24:MI:SS’;

select SAMPLE_TIME, SESSION_ID, SESSION_SERIAL#, USER_ID, sql_ID, Machine, program, SQL_EXEC_START
from gv$active_session_history
where session_id = &v_session_id
and sample_time > sysdate – 1/24
order by sample_time
/

Oracle, SQL scripts

Post navigation

Previous Post: How to connect to Oracle Database with Wallet with Python.
Next Post: findinfo.sql (SQL for getting CPU and Active session info)

Related Posts

  • DB Console Mainenance. Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • tblwopk.sql tablewopk.sql 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
  • Very Good Oralce Internal Tuning Book Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • CPU Core related projections AWS
  • CTAS with LONG Column for 9i and higher Oracle
  • Renaming Oracle Instance Name Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • perf_today.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme