Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • initUOCIOTTO.ora Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • find_string_in_database.sql Oracle
  • plan10g.sql good1 Oracle
  • Renaming the column name Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • SAN Linux/Unix
  • ORA-3136 Oracle
  • good note for shared pool tunnig Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • how to find VIP from ifconfig Linux/Unix
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • backspace in SQL Plus not working then..? 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

  • Export Oracle data and Compress at same time Oracle
  • database trigger failing Oracle
  • Sample WW22 listener.ora Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • Difference between SYNC and AFFIRM Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Jai Shree Ram Oracle
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • Complete Git Tutorial for Beginners GIT
  • Find Plan Hash value fphv.sql Oracle
  • telnet listening Linux/Unix
  • before_trunc.sql Before Truncate table needs to execute following: Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme