Skip to content

Commit e11fcd8

Browse files
committed
Create redo.sql
1 parent 632d92c commit e11fcd8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

redo.sql

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* redo.sql
2+
Copyright (C) 2001, 2013 Sean Scott [email protected]
3+
4+
This program is free software; you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation; either version 2 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License along
15+
with this program; if not, write to the Free Software Foundation, Inc.,
16+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17+
*/
18+
19+
--Report of online redo log file information
20+
col group# format 999
21+
col thread# format 999
22+
col member format a70 wrap
23+
col status format a10
24+
col archived format a10
25+
col fsize format 9999 heading "Size (MB)"
26+
break on thread# skip 1 on group#
27+
28+
select l.thread#
29+
, l.group#
30+
, f.member
31+
, l.archived
32+
, l.status
33+
, (bytes/1024/1024) fsize
34+
from v$log l
35+
, v$logfile f
36+
where f.group# = l.group#
37+
order by 1, 2;
38+
39+
clear breaks

0 commit comments

Comments
 (0)