We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5635246 commit d23434fCopy full SHA for d23434f
data-platform/core-converged-db/sql-tuning-sets/scripts-for-sts/list_snapshots.sql
@@ -0,0 +1,14 @@
1
+REM script: list_snapshots.sql
2
+REM use DBA_HIST_SNAPSHOTS
3
+
4
+-- format the timestamp output
5
+ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD HH:MI';
6
7
+-- list the snap ids
8
9
+col begin_snap format a20
10
+col end_snap format a20
11
12
+select snap_id, begin_interval_time begin_snap, end_interval_time end_snap
13
+from dba_hist_snapshot
14
+order BY snap_id;
0 commit comments