Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • DBA_HIST_SQLSTAT contents Oracle
  • Good Link from metalink 1 Oracle
  • Wait time tuning research Oracle
  • upload.html PHP/MYSQL/Wordpress
  • pvm_pre_change.sql Oracle
  • DBMS_SQL for alter session. Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • How to find password change date for user Oracle
  • CPU Core related projections AWS
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • create database link syntax Oracle
  • Database link password in user_db_links Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • find_idle_cpu.sql 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.

Related Posts

  • How to know current SID Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • sql_plan9i.sql Oracle
  • Flowers Resize datafiles Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN 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 (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • Roles and Stored Object behaviour Oracle
  • eplan9i.sql Oracle
  • db_status.sql Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • Getting started with notebook Python/PySpark

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme