{"id":243,"date":"2021-09-20T11:48:44","date_gmt":"2021-09-20T09:48:44","guid":{"rendered":"https:\/\/oracledba.fr\/?p=243"},"modified":"2021-09-20T11:48:44","modified_gmt":"2021-09-20T09:48:44","slug":"dbv-00201-block-dba-nnnnnn-marked-corrupt-for-invalid-redo-application","status":"publish","type":"post","link":"https:\/\/oracledba.fr\/?p=243","title":{"rendered":"DBV-00201: Block, DBA nnnnnn, marked corrupt for invalid redo application"},"content":{"rendered":"\n<p>The DBV-201 error is a new error due to &#8216;soft corruption&#8217; which is caused by invalid redo application (eg: after application of NOLOGGING redo).<\/p>\n\n\n\n<p>To find the object related to the corruption:<\/p>\n\n\n\n<p>Take one of the DBV outputs and find block and file number with DBA block specified:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">exec dbms_utility.data_block_address_file(37754116); -- block number\nexec dbms_utility.data_block_address_block(37754116); -- file number<\/code><\/pre>\n\n\n\n<p>Using the file and block number, you can execute the query:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">SELECT tablespace_name, segment_type, owner, segment_name\nFROM dba_extents\nWHERE file_id = &lt;file#>\nand &lt;block#> between block_id AND block_id + blocks - 1;<\/code><\/pre>\n\n\n\n<p>use file and block number from previous step.<\/p>\n\n\n\n<p>This will give you the segment\/object name.<\/p>\n\n\n\n<p>From the object(s) returned in previous query, if they are tables:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">select owner, table_name, logging\nfrom dba_tables\nwhere table_name in\n('&lt;list of tables from previous query>');<\/code><\/pre>\n\n\n\n<p>If indexes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">select owner, index_name, logging, table_owner, table_name\nfrom dba_indexes\nwhere index_name in ('&lt;list of indexes from previous query>');<\/code><\/pre>\n\n\n\n<p>The LOGGING=NO means the object is using the NOLOGGING feature and as expected, the recovery performed on the objects led to the DBV-201 output.<\/p>\n\n\n\n<p>If you were to query the objects, you would get something like:<\/p>\n\n\n\n<p>ORA-01578: ORACLE data block corrupted (file #9 , block # 121658)<br>ORA-26040: Data block was loaded using the NOLOGGING option<\/p>\n\n\n\n<p>Solution: The object will need to be recreated.<\/p>\n\n\n\n<p>If you want to ensure the soft corruption does not occur again, ensure tables or indexes are altered so that LOGGING=YES .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The DBV-201 error is a new error due to &#8216;soft corruption&#8217; which is caused by invalid redo application (eg: after application of NOLOGGING redo). To find the object related to the corruption: Take one of the DBV outputs and find block and file number with DBA block specified: Using the file and block number, you &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/oracledba.fr\/?p=243\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;DBV-00201: Block, DBA nnnnnn, marked corrupt for invalid redo application&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-243","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"_links":{"self":[{"href":"https:\/\/oracledba.fr\/index.php?rest_route=\/wp\/v2\/posts\/243","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oracledba.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=243"}],"version-history":[{"count":2,"href":"https:\/\/oracledba.fr\/index.php?rest_route=\/wp\/v2\/posts\/243\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/oracledba.fr\/index.php?rest_route=\/wp\/v2\/posts\/243\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/oracledba.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oracledba.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oracledba.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}