{"id":26,"date":"2012-02-22T11:03:00","date_gmt":"2012-02-22T10:03:00","guid":{"rendered":"https:\/\/oracledba.fr\/?p=26"},"modified":"2023-09-12T10:42:02","modified_gmt":"2023-09-12T08:42:02","slug":"le-dra-data-recovery-advisor","status":"publish","type":"post","link":"https:\/\/oracledba.fr\/?p=26","title":{"rendered":"DRA: Data Recovery Advisor"},"content":{"rendered":"<div style=\"background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font: normal normal normal 83%\/normal sans-serif; width: 100%; padding: 0px; margin: 0px;\">\n<div style=\"margin-bottom: 0.5em; margin-left: 5px; margin-top: 0.4em;\"><span style=\"line-height: 19px;\"><span style=\"font-size: small;\"><br \/>\nThe data recovery advisor makes it possible to detect corruption or loss of data, determines the actions to be carried out and suggests the actions to be taken to repair the database.<\/span><\/span><\/div>\n<div style=\"margin-bottom: 0.5em; margin-left: 5px; margin-top: 0.4em;\"><span style=\"line-height: 19px;\"><span style=\"font-size: small;\">This can saves you lots of hours if you are not sure what you can do.<br \/>\n<\/span><\/span><\/p>\n<div style=\"line-height: 1.5em;\"><\/div>\n<div><span style=\"line-height: 19px;\"><span style=\"font-size: x-large;\">LIST FAILURE<\/span><\/span><\/div>\n<div>The LIST FAILURE command allows you to display problems that are in OPEN status with different levels of criticality.<\/div>\n<div><span style=\"line-height: 19px;\"><span style=\"font-size: x-small;\">\u00a0<\/span><\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">RMAN&gt; LIST FAILURE;<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\nList of Database Failures<br \/>\n=========================<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\nFailure ID Priority Status \u00a0 \u00a0Time Detected Summary<br \/>\n&#8212;&#8212;&#8212;- &#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;-<br \/>\n48 \u00a0 \u00a0 \u00a0 \u00a0 HIGH \u00a0 \u00a0 OPEN \u00a0 \u00a0 \u00a022-FEB-12 \u00a0 \u00a0 One or more non-system datafiles are missing<\/span><\/p>\n<div style=\"font-family: 'Courier New', Courier, monospace; font-size: medium; line-height: 19px;\"><\/div>\n<p><span style=\"line-height: 19px;\"><span style=\"font-family: inherit; font-size: x-large;\">ADVISE FAILURE<\/span><\/span><\/p>\n<p>ADVISE FAILURE as its name indicates, allows you to give advice for repairing the problems listed by the LIST FAILURE command. If possible it will create a script to fix the problem.<br \/>\nIf another failure appears after the list failure, this will not be included in the advice given by the ADVISE FAILURE command. You must redo a FAILURE LIST for this to be taken into account.<br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: inherit; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">RMAN&gt; advise failure;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">List of Database Failures<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">=========================<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Failure ID Priority Status \u00a0 \u00a0Time Detected Summary<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">&#8212;&#8212;&#8212;- &#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;-<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">48 \u00a0 \u00a0 \u00a0 \u00a0 HIGH \u00a0 \u00a0 OPEN \u00a0 \u00a0 \u00a022-FEB-12 \u00a0 \u00a0 One or more non-system datafiles are missing<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">analyzing automatic repair options; this may take some time<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">using channel ORA_DISK_1<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">analyzing automatic repair options complete<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Mandatory Manual Actions<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">========================<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">no manual actions available<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Optional Manual Actions<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">=======================<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">1. If file \/oracle\/oradata\/orcl\/datafile\/o1_mf_users_7n6xprq9_.dbf was unintentionally renamed or moved, restore it<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Automated Repair Options<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">========================<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Option Repair Description<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">1 Restore and recover datafile 4<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Strategy: The repair includes complete media recovery with no data loss<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Repair script: \/oracle\/diag\/rdbms\/orcl\/ORCL\/hm\/reco_1941492637.hm<\/span><\/span><\/p>\n<div style=\"font-family: inherit;\"><span style=\"line-height: 19px;\"><span style=\"font-size: x-large;\"><b>REPAIR FAILURE<\/b><\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-size: x-large;\"><b><br \/>\n<\/b><\/span><\/span><\/div>\n<div style=\"font-family: inherit; font-size: medium;\">REPAIR FAILURE runs the script generated by the ADVISE FAILURE command. The preview option allows you to see the contents of the file without applying it.<\/div>\n<div style=\"font-family: inherit; font-size: medium;\"><span style=\"line-height: 19px;\">\u00a0<\/span><\/div>\n<p><span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">RMAN&gt; REPAIR FAILURE PREVIEW;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Strategy: The repair includes complete media recovery with no data loss<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Repair script: \/oracle\/diag\/rdbms\/orcl\/ORCL\/hm\/reco_1941492637.hm<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">contents of repair script:<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"># restore and recover datafile<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">sql &#8216;alter database datafile 4 offline&#8217;;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">restore datafile 4;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">recover datafile 4;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">sql &#8216;alter database datafile 4 online&#8217;;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\nBy default, the REPAIR FAILURE command requests confirmation to apply the corrections. This can be overridden with the NOPROMPT option.<br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">RMAN&gt; REPAIR FAILURE NOPROMPT;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Strategy: The repair includes complete media recovery with no data loss<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Repair script: \/oracle\/diag\/rdbms\/orcl\/orcl\/hm\/reco_1941492637.hm<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">contents of repair script:<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"># restore and recover datafile<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">sql &#8216;alter database datafile 4 offline&#8217;;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">restore datafile 4;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">recover datafile 4;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">sql &#8216;alter database datafile 4 online&#8217;;<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">executing repair script<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">sql statement: alter database datafile 4 offline<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Starting restore at 22-FEB-12<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">using channel ORA_DISK_1<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">channel ORA_DISK_1: starting datafile backup set restore<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">channel ORA_DISK_1: specifying datafile(s) to restore from backup set<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">channel ORA_DISK_1: restoring datafile 00004 to \/oracle\/oradata\/ORCL\/datafile\/o1_mf_users_7n6xprq9_.dbf<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">channel ORA_DISK_1: reading from backup piece \/oracle\/flash_recovery_area\/backups\/ORCL\/ORCL_db_gqn3uqh2.rmanbck<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">channel ORA_DISK_1: piece handle=\/oracle\/flash_recovery_area\/backups\/ORCL\/ORCL_db_gqn3uqh2.rmanbck tag=TAG20120222T095753<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">channel ORA_DISK_1: restored backup piece 1<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">channel ORA_DISK_1: restore complete, elapsed time: 00:00:01<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Finished restore at 22-FEB-12<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Starting recover at 22-FEB-12<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">using channel ORA_DISK_1<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\"><br \/>\n<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">starting media recovery<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">media recovery complete, elapsed time: 00:00:00<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">Finished recover at 22-FEB-12<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">sql statement: alter database datafile 4 online<\/span><\/span><br \/>\n<span style=\"line-height: 19px;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">repair failure complete<\/span><\/span><\/p>\n<div style=\"font-family: inherit; font-size: medium; line-height: 19px;\"><\/div>\n<div style=\"font-family: inherit; font-size: xx-large; line-height: 19px;\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The data recovery advisor makes it possible to detect corruption or loss of data, determines the actions to be carried out and suggests the actions to be taken to repair the database. This can saves you lots of hours if you are not sure what you can do. LIST FAILURE The LIST FAILURE command allows &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/oracledba.fr\/?p=26\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;DRA: Data Recovery Advisor&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,12,11],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-data-recovery-advisor","category-dra","category-rman"],"_links":{"self":[{"href":"https:\/\/oracledba.fr\/index.php?rest_route=\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oracledba.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oracledba.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oracledba.fr\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/oracledba.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":2,"href":"https:\/\/oracledba.fr\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":291,"href":"https:\/\/oracledba.fr\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions\/291"}],"wp:attachment":[{"href":"https:\/\/oracledba.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oracledba.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oracledba.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}