Default language.

Table updates when changing character field lengths


The following sections describe how each database changes the length of a character field.

Note

The operation of changing character field lengths logs the entire table that is modified. If this table is large, it consumes a large amount of log space. You might need to expand your system's log space.

Table updates for Microsoft SQL Server when changing character fields

In Microsoft SQL Server databases, if the field is created in BMC Remedy AR System 5.1 and later, the length of a character field is changed in one of these ways:

  • If the original size is <= 8000 bytes and you decrease the length, no change is made to the table.
  • If the original size is > 8000 bytes and the new length is > 8000 bytes, no change is made to the table.
  • For any other change in length, a column is created with the new length restriction. All data from the original column is copied to the new column, and the original column is deleted from the main table.

If the field is created in a version of BMC Remedy AR System earlier than 5.1, the length of a character field is changed in one of these ways:

  • If the original size is <= 255 bytes and the new length is <=8000 bytes, no change is made to the table.
  • If the original size is > 255 bytes and the new length is > 8000 bytes, no change is made to the table.
  • For any other change in length, a column is created with the new length restriction. All data from the original column is copied to the new column, and the original column is deleted from the main data table.

Note

In Microsoft SQL Server 2005, when the underlying database table is marked for database replication, you cannot change the field length. If you try to do so, the ALTER TABLE command returns this error: Cannot rename the table because it is published for replication. (SQL Server 15051). To resolve this, turn off database replication, change the field size, and then turn database replication on. For more information, see the Microsoft SQL Server documentation.

Table updates for Oracle when changing character fields

The following table shows the changes that BMC Remedy AR System makes to Oracle databases when you change the length of character fields. The way that field length changes are handled depends on the initial size of the field and whether the field was created in the current version or a previous version of BMC Remedy AR System.The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
 

Server actions when changing full text indexed fields

If the length of a full text indexed field is changed, the full text index might be restructured. The following table describes the server actions that can occur.The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
 

a The following warning appears after the length change is saved: A rebuilding of the corresponding full text index has been initiated due to the field length change (ARWARN 681)

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*