Escolar Documentos
Profissional Documentos
Cultura Documentos
Pgina 1 de 3
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
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
col
col
col
col
col
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
/ 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
http://remidian.com/2012/07/sql-script-to-check-available-space-in-your-recoveryarea/
26/09/2015
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