Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Drop database in Oracle 10g Oracle
  • Implementing Listener Security Oracle
  • Histogram Overview Oracle
  • Wait.sql Oracle
  • find_open_cur.sql Find open cursorts per session Oracle
  • newupload.html PHP/MYSQL/Wordpress
  • Another Tuning Article for subheap of shared pool Oracle
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • cif crons Linux/Unix
  • Session_info.ksh Linux/Unix
  • .profile Linux/Unix
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • on IBM-AIX for display Linux/Unix
  • Absolute file number and relative file number Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle

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

  • metalink all dynamic view reference notes. Oracle
  • column level grant syntax Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Oracle 10g Wait Model Oracle
  • Privilege to describe the table. Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Identical Dblink Issue… Oracle
  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • Goldengate Tutorial Oracle
  • SYSOPER Mystery Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • on IBM-AIX for display Linux/Unix
  • Sending SQLPLUS output in HTML format Oracle
  • Good RAC & Standby Notes Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme