<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – CRC and sort order check</title>
    <link>/en/admin/operating-db/crc-and-sort-order-check/</link>
    <description>Recent content in CRC and sort order check on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/operating-db/crc-and-sort-order-check/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: Evaluating CRC errors</title>
      <link>/en/admin/operating-db/crc-and-sort-order-check/evaluating-crc-errors/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/operating-db/crc-and-sort-order-check/evaluating-crc-errors/</guid>
      <description>
        
        
        &lt;p&gt;The database evaluates the CRC values in each ROS data block each time it fetches data disk to process a query. If CRC errors occur while fetching data, the following information is written to the &lt;code&gt;vertica.log&lt;/code&gt; file:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CRC Check Failure Details:File Name:
File Offset:
Compressed size in file:
Memory Address of Read Buffer:
Pointer to Compressed Data:
Memory Contents:
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The Event Manager is also notified of CRC errors, so you can use an SNMP trap to capture CRC errors:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;#34;CRC mismatch detected on file &amp;lt;file_path&amp;gt;. File may be corrupted. Please check hardware and drivers.&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you run a query from vsql, ODBC, or JDBC, the query returns a &lt;code&gt;FileColumnReader ERROR&lt;/code&gt;. This message indicates that a specific block&#39;s CRC does not match a given record as follows:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;hint: Data file may be corrupt.  Ensure that all hardware (disk and memory) is working properly.
Possible solutions are to delete the file &amp;lt;&lt;span class=&#34;code-variable&#34;&gt;pathname&lt;/span&gt;&amp;gt; while the node is down, and then allow the node
to recover, or truncate the table data.code: ERRCODE_DATA_CORRUPTED
&lt;/code&gt;&lt;/pre&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Evaluating sort order errors</title>
      <link>/en/admin/operating-db/crc-and-sort-order-check/evaluating-sort-order-errors/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/operating-db/crc-and-sort-order-check/evaluating-sort-order-errors/</guid>
      <description>
        
        
        &lt;p&gt;If ROS data is not sorted correctly in the projection&#39;s order, query results that rely on sorted data will be incorrect. You can use the Index tool to check the ROS sort order if you suspect or detect incorrect query results. The Index tool evaluates each ROS row to determine whether it is sorted correctly. If the check locates a row that is not in order, it writes an error message to the log file with the row number and contents of the unsorted row.&lt;/p&gt;
&lt;h2 id=&#34;reviewing-errors&#34;&gt;Reviewing errors&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open the &lt;code&gt;indextool.log&lt;/code&gt; file. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ cd VMart/v_check_node0001_catalog
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Look for error messages that include an OID number and the string &lt;code&gt;Sort Order Violation&lt;/code&gt;. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;lt;INFO&amp;gt; ...on oid 45035996273723545: Sort Order Violation:
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Find detailed information about the sort order violation string by running &lt;code&gt;grep&lt;/code&gt; on &lt;code&gt;indextool.log&lt;/code&gt;. For example, the following command returns the line before each string (&lt;code&gt;-B1&lt;/code&gt;), and the four lines that follow (&lt;code&gt;-A4&lt;/code&gt;):&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[15:07:55][vertica-s1]: &lt;span class=&#34;code-input&#34;&gt;grep -B1 -A4 &#39;Sort Order Violation:&#39;&lt;/span&gt; /my_host/databases/check/v_check_node0001_catalog/indextool.log
2012-06-14 14:07:13.686 unknown:0x7fe1da7a1950 [EE] &amp;lt;INFO&amp;gt; An error occurred when running index tool thread on oid 45035996273723537:
Sort Order Violation:
Row Position: 624
Column Index: 0
Last Row: 2576000
This Row: 2575000
--
2012-06-14 14:07:13.687 unknown:0x7fe1dafa2950 [EE] &amp;lt;INFO&amp;gt; An error occurred when running index tool thread on oid 45035996273723545:
Sort Order Violation:
Row Position: 3
Column Index: 0
Last Row: 4
This Row: 2
--
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Find the projection where a sort order violation occurred by querying system table 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/storage-containers/#&#34;&gt;STORAGE_CONTAINERS&lt;/a&gt;&lt;/code&gt;. Use a &lt;code&gt;storage_oid&lt;/code&gt; equal to the OID value listed in &lt;code&gt;indextool.log&lt;/code&gt;. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM storage_containers WHERE storage_oid = 45035996273723545;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;


      </description>
    </item>
    
  </channel>
</rss>
