Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Goog notes on X$ tables Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Formatter Explain plan Output 1 Oracle
  • Creating never expiring DB user accounts in Oracle Oracle
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • UTL_FILE test program Oracle
  • Find long Running Transaction Linux/Unix
  • Find All internal Parameters Oracle
  • How to stop OCSSD Daemon Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Database logon trigger issue Oracle
  • Kernel Parameters for Solaris Linux/Unix
  • TRUNCATE table and disabling referential constraints. Oracle
  • alter database backup controlfile to trace Oracle
  • Linux CPU info. 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

  • To see how much time or progress of long transaction Oracle
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • Set Role explaination. Oracle
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 Oracle
  • tab.sql Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ 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
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Goldengate Tutorial Oracle
  • Histogram Overview Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • findobj.sql Oracle
  • chk_space_SID.ksh Linux/Unix
  • Facts about SCN and Rollback Segment Oracle
  • refre.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme