> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# admin_verify_db

<div className="kinetica-pydoc">
  <div className="dl py method">
    <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_verify_db"> <span className="sig-name descname"><span className="pre">admin\_verify\_db</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span><a href="https://github.com/kineticadb/kinetica-api-python/blob/master/gpudb/gpudb.py#L15709"><span className="viewcode-link"><span className="pre">\[source]</span></span></a></div>

    <div className="dd">
      <p>Verify database is in a consistent state. When inconsistencies or errors are found, the verified\_ok flag in the response is set to false and the list of errors found is provided in the error\_list.</p>
      <p><strong>Parameters</strong></p>

      <div className="blockquote">
        <div>
          <div className="dl">
            <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Optional parameters. Allowed keys are:</p>

              <ul>
                <li>
                  <p><strong>rebuild\_on\_error</strong> – \[DEPRECATED] Use the Rebuild DB feature of GAdmin instead. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>

                <li>
                  <p><strong>verify\_nulls</strong> – When <span className="em">true</span>, verifies that null values are set to zero. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>

                <li>
                  <p><strong>verify\_persist</strong> – When <span className="em">true</span>, persistent objects will be compared against their state in memory and workers will be checked for orphaned table data in persist. To check for orphaned worker data, either set <span className="em">concurrent\_safe</span> in input parameter <span className="em">options</span> to <span className="em">true</span> or place the database offline. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>

                <li>
                  <p><strong>concurrent\_safe</strong> – When <span className="em">true</span>, allows this endpoint to be run safely with other concurrent database operations. Other operations may be slower while this is running. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘true’.</p>
                </li>

                <li>
                  <p><strong>verify\_rank0</strong> – If <span className="em">true</span>, compare rank0 table metadata against workers’ metadata. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>

                <li>
                  <p><strong>delete\_orphaned\_tables</strong> – If <span className="em">true</span>, orphaned table directories found on workers for which there is no corresponding metadata will be deleted. It is recommended to run this while the database is offline OR set <span className="em">concurrent\_safe</span> in input parameter <span className="em">options</span> to <span className="em">true</span>. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>

                <li>
                  <p><strong>verify\_orphaned\_tables\_only</strong> – If <span className="em">true</span>, only the presence of orphaned table directories will be checked, all persistence and table consistency checks will be skipped. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>

                <li>
                  <p><strong>table\_includes</strong> – Comma-separated list of table names to include when verifying table consistency on wokers. Cannot be used simultaneously with <span className="em">table\_excludes</span>.</p>
                </li>

                <li>
                  <p><strong>table\_excludes</strong> – Comma-separated list of table names to exclude when verifying table consistency on wokers. Cannot be used simultaneously with <span className="em">table\_includes</span>.</p>
                </li>
              </ul>

              <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
            </div>
          </div>
        </div>
      </div>

      <p><strong>Returns</strong></p>

      <div className="blockquote">
        <div>
          <p>A dict with the following entries–</p>

          <div className="dl simple">
            <div className="dt">verified\_ok (<span className="em">bool</span>) –</div>

            <div className="dd">
              <p>True if no errors were found, false otherwise. The default value is False.</p>
            </div>

            <div className="dt">error\_list (<span className="em">list of str</span>) –</div>

            <div className="dd">
              <p>List of errors found while validating the database internal state. The default value is an empty list ( \[] ).</p>
            </div>

            <div className="dt">orphaned\_tables\_total\_size (<span className="em">long</span>) –</div>

            <div className="dd">
              <p>If <span className="em">verify\_persist</span> is <span className="em">true</span>, <span className="em">verify\_orphaned\_tables\_only</span> is <span className="em">true</span> or <span className="em">delete\_orphaned\_tables</span> is <span className="em">true</span>, this is the sum in bytes of all orphaned tables found. Otherwise, -1.</p>
            </div>

            <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Additional information.</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
