{"id":152,"date":"2023-11-15T14:16:06","date_gmt":"2023-11-15T12:16:06","guid":{"rendered":"http:\/\/130.61.57.200\/?p=152"},"modified":"2025-05-28T10:36:58","modified_gmt":"2025-05-28T08:36:58","slug":"check-fast-recovery-area-usage","status":"publish","type":"post","link":"http:\/\/130.61.57.200\/index.php\/2023\/11\/15\/check-fast-recovery-area-usage\/","title":{"rendered":"Check Fast Recovery Area Usage"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Fast Recovery Area is used for various components such as duplicates of control files and redo logs, backups, archive logs and flashback logs. If a database is in ARCHIVELOG mode and there is no space left in FRA, the database aborts any connections. Only SYS (SYSDBA) user can connect.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The space used can be checked with the following statement:<\/p>\n\n\n\n<pre class=\"wp-block-code has-border-color has-palette-color-4-border-color has-palette-color-4-color has-text-color has-background has-link-color wp-elements-5a3e5862cf37bd9438f42447b499230c\" style=\"background-color:#e4eef773\"><code>&lt;code&gt;select&lt;br&gt;name,&lt;br&gt;floor(space_limit \/ 1024 \/ 1024) &quot;Size MB&quot;,&lt;br&gt;ceil(space_used \/ 1024 \/ 1024) &quot;Used MB&quot;&lt;br&gt;from v$recovery_file_dest;<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">OR<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-text-color has-background has-link-color wp-elements-a643c9b55e1fbc8e9a37e92535d2b080\" style=\"background-color:#e4eef773\"><code>&lt;code&gt;SELECT\nROUND((A.SPACE_LIMIT \/ 1024 \/ 1024 \/ 1024), 2) AS FLASH_IN_GB,\nROUND((A.SPACE_USED \/ 1024 \/ 1024 \/ 1024), 2) AS FLASH_USED_IN_GB,\nROUND((A.SPACE_RECLAIMABLE \/ 1024 \/ 1024 \/ 1024), 2) AS FLASH_RECLAIMABLE_GB,\nSUM(B.PERCENT_SPACE_USED) AS PERCENT_OF_SPACE_USED\nFROM\nV$RECOVERY_FILE_DEST A,\nV$FLASH_RECOVERY_AREA_USAGE B\nGROUP BY\nSPACE_LIMIT,\nSPACE_USED ,\nSPACE_RECLAIMABLE ;<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Space used can be further analyzed with the following query:<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-text-color has-background has-link-color wp-elements-fb1e1406e17bf7b6c5d70fb613f546c3\" style=\"background-color:#e4eef773\"><code>SELECT * FROM V$RECOVERY_AREA_USAGE;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mind that there is reclaimable space and this will be overwritten automatically when needed, They are mostly used from flashback logs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the FRA is full then perhaps some archive logs can be deleted to free some space. Another quick option to resolve the connection errors is to resize FRA to a bigger size, if there is space available on the disk hosting it.<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-text-color has-background has-link-color wp-elements-1f68c714eb86ebafc0ac3d744b58a70b\" style=\"background-color:#e4eef773\"><code>&lt;code&gt;ALTER SYSTEM SET db_recovery_file_dest_size= xxxx  scope=memory;<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If there is no disk available then the quickest way may be to change the location of the FRA temporarily:<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-text-color has-background\" style=\"background-color:#e4eef773\"><code>ALTER SYSTEM SET db_recovery_file_dest= &#039;\/u01\/xxxx&#039;  scope=memory;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can use RMAN to delete archive logs from FRA. For example the following RMAN command deletes all archives that are older than 24 hours:<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-text-color has-background\" style=\"background-color:#e4eef773\"><code>&lt;code&gt; delete archivelog from time &#039;SYSDATE-1&#039;;<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fast Recovery Area is used for various components such as duplicates of control files and redo logs, backups, archive logs and flashback logs. If a database is in ARCHIVELOG mode and there is no space left in FRA, the database aborts any connections. Only SYS (SYSDBA) user can connect. The space used can be checked [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":106,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[52,51,53],"class_list":["post-152","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oracle","tag-archive-logs","tag-fra","tag-rman"],"blocksy_meta":[],"_links":{"self":[{"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/posts\/152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/comments?post=152"}],"version-history":[{"count":7,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/posts\/152\/revisions"}],"predecessor-version":[{"id":301,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/posts\/152\/revisions\/301"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/media\/106"}],"wp:attachment":[{"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/media?parent=152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/categories?post=152"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/tags?post=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}