Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle plan hash value

SELECT DISTINCT sql_id, plan_hash_value
FROM dba_hist_sqlstat dhs,
    (
    SELECT /*+ NO_MERGE */ MIN(snap_id) min_snap, MAX(snap_id) max_snap
    FROM dba_hist_snapshot ss
    WHERE ss.begin_interval_time BETWEEN (SYSDATE - 4) AND SYSDATE
    ) s
WHERE dhs.snap_id BETWEEN s.min_snap AND s.max_snap
  AND dhs.sql_id IN ('my_sql_id');
Comment

PREVIOUS NEXT
Code Example
Sql :: describe sql server 
Sql :: delete all entries postgres 
Sql :: mysql breakline on string 
Sql :: select * from table where name like 
Sql :: oracle view ddl 
Sql :: substr sql last character 
Sql :: connect mysql docker 
Sql :: mysql case when null 
Sql :: sql order by timestamp 
Sql :: update data with random values postgres 
Sql :: how to get table structure in sql server 
Sql :: mysql delete all where id is not equal 
Sql :: oracle sql day of month from date 
Sql :: SQL server query column yes or no 
Sql :: sql query length of string the longest 
Sql :: Columns Present in a table 
Sql :: ksql terminate all queries 
Sql :: create sequence if not exists postgres 
Sql :: sql drop database statement 
Sql :: mysql update set sum 
Sql :: oracle list privileges 
Sql :: ostgreSQL version 
Sql :: t sql check column exists 
Sql :: add user mysql 
Sql :: creer une base de donnée psql 
Sql :: sql select between two dates 
Sql :: node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v72-win32-x64.tar.gz 
Sql :: drop all procedures sql server 
Sql :: oracle list duplicates 
Sql :: trigger in postgresql to change incoming entry 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =