Skip to content

Commit d23434f

Browse files
authored
Create list_snapshots.sql
1 parent 5635246 commit d23434f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)