Anda di halaman 1dari 3

SQL script to check available space in your recoveryarea (db_recovery_file_dest_si...

Pgina 1 de 3

SQL script to check available space in your recoveryarea (db_recovery_file_dest_size)

SQL script to check available


space in your recoveryarea
(db_recovery_file_dest_size)
Published on Jul 18 2012
# 10,169 (10,169 reads)
oracle (http://remidian.com/category/oracle/)/scripts (http://remidian.com/category/oracle/scripts/)

Were hitting a lot of ORA-19815, ORA-19809, ORA-00257, ORA-16038 these days on some of
our development databases see here (http://remidian.com/2012/04/fix-ora-00257-archiver-errorconnect-internal-only-until-freed-in-oracle-11g/).

Scroll down for an updated version. The space_reclaimable should be substracted from
space_used.
Script below displays percentage used in in your recoveryarea(s) as defined in init parameter
db_recovery_file_dest_size.
col
col
col
col

name for a32


size_m for 999,999,999
used_m for 999,999,999
pct_used for 999

SELECT name
,
ceil( space_limit / 1024 / 1024) SIZE_M
,
ceil( space_used / 1024 / 1024) USED_M
,
decode( nvl( space_used, 0),
0, 0
, ceil ( ( space_used / space_limit) * 100) ) PCT_USED
FROM v$recovery_file_dest
ORDER BY name
/

kudos: http://www.shutdownabort.com/errors/ORA-19809.php
(http://www.shutdownabort.com/errors/ORA-19809.php)
Update SUBSTRACT replaimable space from space_used.

http://remidian.com/2012/07/sql-script-to-check-available-space-in-your-recoveryarea/

26/09/2015

SQL script to check available space in your recoveryarea (db_recovery_file_dest_si... Pgina 2 de 3

col
col
col
col
col

name for a32


size_m for 999,999,999
reclaimable_m for 999,999,999
used_m for 999,999,999
pct_used for 999

SELECT name
, ceil( space_limit / 1024
, ceil( space_used / 1024
, ceil( space_reclaimable
, decode( nvl( space_used,
0, 0
, ceil ( ( ( space_used SED
FROM v$recovery_file_dest
ORDER BY name
/

/ 1024) SIZE_M
/ 1024) USED_M
/ 1024 / 1024) RECLAIMABLE_M
0),
space_reclaimable ) / space_limit) * 100) ) PCT_U

SQL> SELECT name


2 , ceil( space_limit / 1024
3 , ceil( space_used / 1024
4 , ceil( space_reclaimable
5 , decode( nvl( space_used,
6
0, 0
7
, ceil ( ( ( space_used PCT_USED
8
FROM v$recovery_file_dest
9 ORDER BY name
10 /

/ 1024) SIZE_M
/ 1024) USED_M
/ 1024 / 1024) RECLAIMABLE_M
0),
space_reclaimable ) / space_limit) * 100) )

NAME
SIZE [M]
USED [M] RECLAIMABLE_M PCT
_USED
-------------------------------- ------------ ------------ -------------------/recoveryarea
14,336
6,338
6,33
7
1

3 thoughts on SQL script to check available space in your


recoveryarea (db_recovery_file_dest_size)

http://remidian.com/2012/07/sql-script-to-check-available-space-in-your-recoveryarea/

26/09/2015

SQL script to check available space in your recoveryarea (db_recovery_file_dest_si... Pgina 3 de 3

1.

Hazratullah says:
February 25, 2013 at 1:14 pm (http://remidian.com/2012/07/sql-script-to-check-available-space-inyour-recoveryarea/#comment-38702)

hello!
hope all are fine.
the scripts was very good and helped view the database recovery area
used as a user friendly display!
regards
Reply (/2012/07/sql-script-to-check-available-space-in-your-recoveryarea/?
replytocom=38702#respond)

2.

Najam Q says:
June 2, 2014 at 9:06 pm (http://remidian.com/2012/07/sql-script-to-check-available-space-in-yourrecoveryarea/#comment-68907)

Great script!

http://remidian.com/2012/07/sql-script-to-check-available-space-in-your-recoveryarea/

26/09/2015

Anda mungkin juga menyukai