Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Library cahe Latches and internal explaination Oracle
  • create user with unlimited quota Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • cold backup scripts to copy locally Linux/Unix
  • My Test Case On 21-OCT-2005 Oracle
  • Backup and Recovery Scenarios Oracle
  • online_ts_bkup.sql Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • How to choose Driver table in SQL statement Oracle
  • proper cpu stats Linux/Unix
  • Check Oracle installed products using one command 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

  • Virtual Indexes in Oracle Oracle
  • Good RAC & Standby Notes Oracle
  • Trace a SQL session from another session using ORADEBUG Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Remove duplicate rows from 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)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • plan10g.sql Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • T-SQL Vs PL/SQL Syntax SQL Server
  • xargs use Linux/Unix
  • Find nth max and min. Oracle
  • Create type and Grant on it. Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme