The <upgrade> database configuration
element
The <database> element in file
database-config.xml contains, at most, a single occurrence
of subelement <upgrade>. The use of the
<upgrade> element is optional. This element specifies
various options related to database upgrade. One important area of configuration is
the degree of database parallelism to use in an Oracle database. Database
parallelism refers to the ability of an Oracle database to execute a database SQL
statement such as CREATE or INSERT using
simultaneous, parallel slave processes.
The <upgrade> element has the following syntax. The following
code sample shows required attributes in bold font.
<database>
<upgrade ... >
<mssql-db-ddl>
<!-- Sets SQL Server database options at the global, database level -->
<mssql-compression index-compression="NONE|PAGE|ROW" table-compression="NONE|PAGE|ROW/>
<mssql-filegroups admin="string" index="string" lob="string" op="string" staging="string"
typelist="string"/>
<!-- Set SQL Server options for the named table, overrides values set at database level -->
<mssql-table-ddl table-name="string">
<mssql-index-ddl filter-where="string"index-compression="NONE|PAGE|ROW"
index-filegroup="string" key-columns="string" partition-scheme="string"/>
<mssql-table-compression index-compression="NONE|PAGE|ROW" table-compression="NONE|PAGE|ROW"/>
<mssql-table-filegroups="string" index-filegroup="string" lob-filegroup
table-filegroup="string"/>
</mssql-table-ddl>
</mssql-db-ddl>
<ora-db-ddl>
<!-- Sets Oracle database options at the global, database level -->
<ora-compression index-compression="true|false" table-compression="ADVANCED|BASIC|NONE"/>
<ora-lobs caching="true|false" type="BASIC|SECURE|SECURE_COMPRESSED/>
<tablespaces admin="string" index="string" lob="string" op="string" staging="string"
typelist="string"/>
<!-- Sets Oracle options for the named table, overrides values set at the database level -->
<ora-table-ddl table-name="string">
<ora-index-ddl index-compression="true|false" index-tablespace="string" key-columns="string"/>
<ora-lobs caching="true|false" type="BASIC|SECURE|SECURE_COMPRESSED/>>
<ora-table-compression index-compression="true|false" table-compression="ADVANCED|BASIC|NONE">
<ora-table-date-interval-partitioning datecolumn="string"
interval="DAILY|MONTHLY|QUARTERLY|WEEKLY|YEARLY">
<ora-table-hash-partitioning hash-columns="string" num-partitions="integer"/>
<ora-table-tablespaces index-tablespace="string" lob-tablespace="string"
table-tablespace="string"/>
</ora-table-ddl>
</ora-db-ddl>
<versiontriggers dbmsperfinfothreshold="integer">
<!-- Sets override options for the named database version trigger -->
<versiontrigger extendedquerytracingenabled="true|false" name="string"
parallel-dml="true|false" parallel-query="true|false"
queryoptimizertracingenabled="true|false" recordcounters="true|false"
updatejoinorderedhint="true|false" updatejoinusemergehint="true|false"
updatejoinusenlhint="true|false"/>
</versiontriggers>
</upgrade>
</database>
The following list describes the attributes that you can configure on the
<upgrade> element. All of these attributes are optional.
|
|
Boolean. Whether to disable logging of certain SQL operations during the database upgrade. Valid values are:
The default is Note: If you run the upgrade with attribute
|
|
|
(Oracle) Boolean. Whether PolicyCenter collects tablespace usage and object size data before and after the upgrade. Valid values are:
The default is |
|
|
Boolean. Whether to defer creation of non-essential indexes during the upgrade process until the upgrade completes and the application server is back up. Creation of non-essential indexes can add significant time to the upgrade duration. Valid values are:
The default is Non-essential indexes are:
If you choose to defer creation of non-essential indexes,
PolicyCenter runs the Deferred
Upgrade Tasks batch process
( |
|
|
(Oracle) Boolean. Whether to drop table columns removed during upgrade immediately or leave their removal to a later time. The database upgrade removes some columns. For Oracle, you can configure whether the removed columns are dropped immediately or are marked as unused. Marking a column as unused is a faster operation than dropping the column immediately. However, as PolicyCenter does not physically drop the removed columns from the database, the space used by these columns is not released immediately to the table and index segments. Valid values are:
The default is |
|
|
(Oracle) Controls the degree of database parallelism that Oracle
uses for Valid values are:
The default is 4. |
|
|
(Oracle) Controls the degree of database parallelism that Oracle
uses to execute DDL (Data Definition Language) statements during
the database upgrade. Use to configure the degree of database
parallelism for commands such as Valid values are:
The default is 4. If you set the value of |
|
|
Sets the commit size for rows requiring encryption. If one or
more attributes use PolicyCenter
encryption, the PolicyCenter
database upgrade commits batches of encrypted values. The
upgrade commits The default value of
Test the upgrade on a copy of your production database before
attempting to upgrade the actual production database. If the
encryption process is slow, and you cannot attribute the
slowness to SQL statements in the database, try adjusting the
|
|
|
(Oracle) Controls database parallelism usage by Oracle in the execution of DML (Data Manipulation Language) operations. Valid values are:
The default is If you set the value of Note: The value of this attribute interacts with the
|
|
|
(Oracle) Controls parallel query usage by Oracle during a database upgrade. Valid values are:
The default is The value of this attribute interacts with the
|
|
|
(SQL Server) Boolean. Whether SQL Server stores temporary sort results in tempdb. By using tempdb for sort runs, disk input and output is typically faster, and the created indexes tend to be more contiguous. Valid values are:
The default is If you set Refer to the following web site for details on the requirements to use tempdb for sort results. |
|
|
(Oracle) Boolean. Whether to update table statistics during upgrade. The overall time that it takes to upgrade the database is shorter if the database upgrade does not update statistics. Valid values are:
If PolicyCenter does not update statistics during the upgrade:
If PolicyCenter does generate statistics during the upgrade, it updates the Upgrade and Versions screen to report the runs of the statistics batch process, including incremental runs. Note: Guidewire recommends that you run statistics in full mode after an upgrade to a major PolicyCenter version. |
|
|
Boolean. Whether PolicyCenter automatically performs a
verification of the database schema after a database upgrade. If the
verification process determines that the logical and physical data
model are not in agreement, the process generates schema
verification errors in the Upgrade Info report. The default value
for this attribute is It is also possible to initiate the database
schema verification process using the following
|
The <upgrade> element has the following subelements. Each of
these elements is optional. There is, at most, a single occurrence of each of these
subelements on the <upgrade> element.
|
|
Specifies options for SQL Server database DDL (Data Definition Language) statements. |
|
|
Specifies options for Oracle database DDL (Data Definition Language) statements. |
|
|
Specifies options for named version triggers. |
