{"id":670,"date":"2016-06-01T12:24:42","date_gmt":"2016-06-01T12:24:42","guid":{"rendered":"http:\/\/www.dbafox.com\/?p=670"},"modified":"2016-06-01T12:24:42","modified_gmt":"2016-06-01T12:24:42","slug":"oracle-flashback-set-off-and-on-to-purge-standby-database-flashback-log-files","status":"publish","type":"post","link":"https:\/\/dbafox.com\/?p=670","title":{"rendered":"Oracle &#8211; Flashback &#8211; set off and on to purge standby database flashback log files"},"content":{"rendered":"<pre>\r\n1. Stop redo to standby\r\n2. Set flashback off on standby\r\n3. Set flashback on on standby\r\n4. Start redo apply to standby\r\n\r\nOn standby\r\n\r\nidle>select * from v$flash_recovery_area_usage;\r\n\r\nFILE_TYPE               PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES     CON_ID\r\n----------------------- ------------------ ------------------------- --------------- ----------\r\nCONTROL FILE                             0                         0               0          0\r\nREDO LOG                                 0                         0               0          0\r\nARCHIVED LOG                           .16                         0               4          0\r\nBACKUP PIECE                           .01                         0               1          0\r\nIMAGE COPY                               0                         0               0          0\r\nFLASHBACK LOG                        46.95                         0              64          0\r\nFOREIGN ARCHIVED LOG                     0                         0               0          0\r\nAUXILIARY DATAFILE COPY                  0                         0               0          0\r\n\r\nOn Primary:\r\nUse dgmgrl:\r\nDGMGRL> connect sys@ORCL\r\nPassword:\r\nConnected as SYSDBA.\r\nDGMGRL> edit database orclstby set state='apply-off';\r\nSucceeded.\r\n\r\nOn standby:\r\nidle>ALTER DATABASE FLASHBACK OFF;\r\n\r\nDatabase altered.\r\n\r\nidle>alter database flashback on;\r\n\r\nDatabase altered.\r\n\r\nidle>select * from v$flash_recovery_area_usage;\r\n\r\nFILE_TYPE               PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES     CON_ID\r\n----------------------- ------------------ ------------------------- --------------- ----------\r\nCONTROL FILE                             0                         0               0          0\r\nREDO LOG                                 0                         0               0          0\r\nARCHIVED LOG                           .22                         0               7          0\r\nBACKUP PIECE                           .01                         0               1          0\r\nIMAGE COPY                               0                         0               0          0\r\nFLASHBACK LOG                          1.5                         0               2          0\r\nFOREIGN ARCHIVED LOG                     0                         0               0          0\r\nAUXILIARY DATAFILE COPY                  0                         0               0          0\r\n\r\nOn Primary:\r\n\r\nDGMGRL> edit database orclstby set state='apply-on';\r\nSucceeded.\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. Stop redo to standby 2. Set flashback off on standby 3. Set flashback on on standby 4. Start redo apply to standby On standby idle>select * from v$flash_recovery_area_usage; FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES CON_ID &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;- CONTROL &hellip; <a href=\"https:\/\/dbafox.com\/?p=670\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28],"tags":[],"class_list":["post-670","post","type-post","status-publish","format-standard","hentry","category-oracle-technical"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Oracle - Flashback - set off and on to purge standby database flashback log files - dbafox<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbafox.com\/?p=670\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle - Flashback - set off and on to purge standby database flashback log files - dbafox\" \/>\n<meta property=\"og:description\" content=\"1. Stop redo to standby 2. Set flashback off on standby 3. Set flashback on on standby 4. Start redo apply to standby On standby idle&gt;select * from v$flash_recovery_area_usage; FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES CON_ID ----------------------- ------------------ ------------------------- --------------- ---------- CONTROL &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbafox.com\/?p=670\" \/>\n<meta property=\"og:site_name\" content=\"dbafox\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-01T12:24:42+00:00\" \/>\n<meta name=\"author\" content=\"Ray Fox\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ray Fox\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbafox.com\/?p=670\",\"url\":\"https:\/\/dbafox.com\/?p=670\",\"name\":\"Oracle - Flashback - set off and on to purge standby database flashback log files - dbafox\",\"isPartOf\":{\"@id\":\"https:\/\/dbafox.com\/#website\"},\"datePublished\":\"2016-06-01T12:24:42+00:00\",\"author\":{\"@id\":\"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb\"},\"breadcrumb\":{\"@id\":\"https:\/\/dbafox.com\/?p=670#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbafox.com\/?p=670\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbafox.com\/?p=670#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbafox.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle &#8211; Flashback &#8211; set off and on to purge standby database flashback log files\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbafox.com\/#website\",\"url\":\"https:\/\/dbafox.com\/\",\"name\":\"dbafox\",\"description\":\"DBA Technical Information\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbafox.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb\",\"name\":\"Ray Fox\",\"sameAs\":[\"http:\/\/www.dbafox.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Oracle - Flashback - set off and on to purge standby database flashback log files - dbafox","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dbafox.com\/?p=670","og_locale":"en_GB","og_type":"article","og_title":"Oracle - Flashback - set off and on to purge standby database flashback log files - dbafox","og_description":"1. Stop redo to standby 2. Set flashback off on standby 3. Set flashback on on standby 4. Start redo apply to standby On standby idle>select * from v$flash_recovery_area_usage; FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES CON_ID ----------------------- ------------------ ------------------------- --------------- ---------- CONTROL &hellip; Continue reading &rarr;","og_url":"https:\/\/dbafox.com\/?p=670","og_site_name":"dbafox","article_published_time":"2016-06-01T12:24:42+00:00","author":"Ray Fox","twitter_misc":{"Written by":"Ray Fox","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dbafox.com\/?p=670","url":"https:\/\/dbafox.com\/?p=670","name":"Oracle - Flashback - set off and on to purge standby database flashback log files - dbafox","isPartOf":{"@id":"https:\/\/dbafox.com\/#website"},"datePublished":"2016-06-01T12:24:42+00:00","author":{"@id":"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb"},"breadcrumb":{"@id":"https:\/\/dbafox.com\/?p=670#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbafox.com\/?p=670"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dbafox.com\/?p=670#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbafox.com\/"},{"@type":"ListItem","position":2,"name":"Oracle &#8211; Flashback &#8211; set off and on to purge standby database flashback log files"}]},{"@type":"WebSite","@id":"https:\/\/dbafox.com\/#website","url":"https:\/\/dbafox.com\/","name":"dbafox","description":"DBA Technical Information","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbafox.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb","name":"Ray Fox","sameAs":["http:\/\/www.dbafox.com"]}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3ecMb-aO","_links":{"self":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts\/670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=670"}],"version-history":[{"count":1,"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts\/670\/revisions"}],"predecessor-version":[{"id":672,"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts\/670\/revisions\/672"}],"wp:attachment":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}