Skip to content

Commit af17cca

Browse files
authored
Create check-sts-statements.sql
1 parent 5f279d6 commit af17cca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
REM Script: check-sts-statements.sql
2+
REM Use view ALL_SQLSET_STATEMENTS
3+
4+
-- check the tuning set, enter name and owner
5+
6+
select executions, cpu_time/1000 cpu_in_ms, elapsed_time/1000 elapsed_in_ms, sql_id, substr(sql_text,1,80)
7+
from all_sqlset_statements
8+
where sqlset_name='&name' and owner='&owner'
9+
order by 3 desc;

0 commit comments

Comments
 (0)