{"id":4939,"date":"2021-05-29T08:12:22","date_gmt":"2021-05-29T08:12:22","guid":{"rendered":"https:\/\/swiv.com.br\/solved-issue-ora-38729-not-enough-flashback-database-log-data-to-do-flashback\/"},"modified":"2026-05-27T20:02:31","modified_gmt":"2026-05-27T19:02:31","slug":"solved-issue-ora-38729-not-enough-flashback-database-log-data-to-do-flashback","status":"publish","type":"post","link":"https:\/\/swiv.com.br\/index.php\/2021\/05\/29\/solved-issue-ora-38729-not-enough-flashback-database-log-data-to-do-flashback\/","title":{"rendered":"[Solved] Issue: ORA-38729: Not enough flashback database log data to do FLASHBACK."},"content":{"rendered":"\n<p>Estava simulando o recurso de Flashback Database em um Oracle 18C Multitenant, e no momento de voltar o banco para um SCN espec\u00edfico, o erro abaixo era reportado:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSQL&gt; SHU IMMEDIATE;\nDatabase closed.\nDatabase dismounted.\nORACLE instance shut down.\nSQL&gt; STARTUP MOUNT;\nORACLE instance started.\n \nTotal System Global Area 2466249080 bytes\nFixed Size                  8898936 bytes\nVariable Size             671088640 bytes\nDatabase Buffers         1778384896 bytes\nRedo Buffers                7876608 bytes\nDatabase mounted.\nSQL&gt; FLASHBACK DATABASE TO SCN 1810936;\nFLASHBACK DATABASE TO SCN 1810936\n*\nERROR at line 1:\nORA-38729: Not enough flashback database log data to do FLASHBACK.\n<\/pre><\/div>\n\n\n<p>Ap\u00f3s algumas an\u00e1lises, percebi que o incarnation do meu banco n\u00e3o estava correto, pois eu havia o alterado por conta de outros testes:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;oracle@quiasma dbs]$ rman target \/\n \nRecovery Manager: Release 18.0.0.0.0 - Production on Sat May 29 05:02:26 2021\nVersion 18.13.0.0.0\n \nCopyright (c) 1982, 2018, Oracle and\/or its affiliates.  All rights reserved.\n \nconnected to target database: ASWAN (DBID=1341162082, not open)\n \nRMAN&gt; LIST INCARNATION;\n \nusing target database control file instead of recovery catalog\n \nList of Database Incarnations\nDB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time\n------- ------- -------- ---------------- --- ---------- ----------\n1       1       ASWAN    1341162082       CURRENT 1          07-FEB-18\n2       2       ASWAN    1341162082       ORPHAN  1477662    22-MAY-21\n<\/pre><\/div>\n\n\n<p>Neste caso, precisei apenas realizar o reset do database para o incarnation correto ao meu contexto:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nRMAN&gt; RESET DATABASE TO INCARNATION 2;\n \ndatabase reset to incarnation 2\n<\/pre><\/div>\n\n\n<p>Ap\u00f3s essa interven\u00e7\u00e3o, o comando de Flashback funcionou corretamente:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;oracle@quiasma dbs]$ sqlplus \/ as sysdba\n \nSQL*Plus: Release 18.0.0.0.0 - Production on Sat May 29 05:02:54 2021\nVersion 18.13.0.0.0\n \nCopyright (c) 1982, 2018, Oracle.  All rights reserved.\n \n \nConnected to:\nOracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production\nVersion 18.13.0.0.0\n \nSQL&gt; FLASHBACK DATABASE TO SCN 1810936;\n \nFlashback complete.\n<\/pre><\/div>\n\n\n<p> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Estava simulando o recurso de Flashback Database em um Oracle 18C Multitenant, e no momento de voltar o banco para um SCN espec\u00edfico, o erro abaixo era reportado: Ap\u00f3s algumas an\u00e1lises, percebi que o incarnation do meu banco n\u00e3o estava correto, pois eu havia o alterado por conta de outros testes: Neste caso, precisei apenas [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[],"class_list":["post-4939","post","type-post","status-publish","format-standard","hentry","category-administration","category-backup-recovery"],"_links":{"self":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/4939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=4939"}],"version-history":[{"count":1,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/4939\/revisions"}],"predecessor-version":[{"id":9125,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/4939\/revisions\/9125"}],"wp:attachment":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=4939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=4939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=4939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}