The <ora-table-hash-partitioning> database configuration element

The <ora-table-ddl> element in file database-config.xml contains, at most, a single occurrence of subelement <ora-table-hash-partitioning>. The use of the <ora-table-hash-partioning> element is optional. Use this element to add hash partitioning to a table in an Oracle database.

The <ora-table-hash-partitioning> element has the following syntax. The following code sample shows required attributes in bold font.

<database>
  <upgrade>
    <ora-db-ddl>
      <ora-table-ddl table-name="string">
        <ora-table-hash-partitioning hash-columns="string" num-partitions="integer"/>
      </ora-table-ddl>
    </ora-db-ddl>
  </upgrade>
</database>

The following list describes the attributes that you can configure on the <ora-table-hash-partitioning> element. All of these attributes are optional.

hash-column

Name of the column to use for the hash function:

  • For keyable entities, the default is the entity ID.
  • For non-keyable entities, you must provide a value.

num-partitions

The number of hash partitions to define. The default is 128.

The <ora-table-hash-partitioning> element does not contain additional subelements.