Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • plan10g.sql good Oracle
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Rman Notes -1 Oracle
  • To see how much time or progress of long transaction Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Explain Plan Output 2 Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • FRA Information. 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

  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • Free conference number from http://www.freeconference.com Oracle
  • Oracle Standby Database Library Index from Metalink Oracle
  • Clean up Oracle
  • Locktree.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
  • Resolving RMAN Hung Jobs Oracle
  • Order by with ROWNUM Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • DBMS_JOB all example Oracle
  • Committing distributed transaction using commit force Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • SAN Linux/Unix
  • Pending Distributed Transations Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme