IBM Tivoli Netcool/OMNIbus Version 8.1

Adding and editing table columns

You can add new columns to ObjectServer tables or edit existing columns. The maximum number of columns in a table is 512, excluding the system-maintained columns. The maximum row size for a table, which is the sum of the length of the columns in the row, is 64 KB. You cannot add PRIMARY KEY columns to existing tables.

Procedure

To add or edit a table column:

  1. From the Netcool/OMNIbus Administrator window, select the System menu button.
  2. Click Databases. The Databases, Tables and Columns pane opens.
  3. In the Databases, Tables and Columns pane, select the table in which you are adding or editing the column. Then, click the Column Definitions tab.
  4. Add or edit a column:
    • To add a column, click Add Column in the toolbar.
    • To edit a column, select the column to edit and then click Edit Column in the toolbar.
    The Column Details window opens, in which you specify the details of the column.
  5. Complete this window as follows:
    Column Name
    Type the column name. If you are editing the column, you cannot change the name.
    Tip: When creating ObjectServer objects, their names must begin with an uppercase or lowercase letter, followed by uppercase or lowercase letters, numbers, or underscore (_) characters, up to 40 characters in length. User, group, and role names can be any text string up to 64 characters in length and can include spaces. Names of ObjectServer objects are case-sensitive.
    Data Type
    Select a data type for the column. The data type determines how the ObjectServer processes the data in the column. If you are editing the column, you cannot change the data type. You can select from the following data types:
    • Integer: 32-bit signed integer
    • UTC: Time, stored as the number of seconds since midnight January 1, 1970
    • VarChar: Variable size character string, up to 8192 Bytes in length
    • Incr: 32-bit unsigned auto-incrementing integer that can only be updated by the system
    • Char: Fixed size character string, up to 8192 Bytes in length
    • Unsigned: 32-bit unsigned integer
    • Boolean: TRUE or FALSE
    • Real: 64-bit signed floating point number
    • Integer64: 64-bit signed integer
    • Unsigned64: 64-bit unsigned integer
    Length
    This field is available only when you select VarChar or Char from the Data Type list. Specify the column length.
    Primary Key
    Select this check box to indicate that the column is a primary key. The primary key column or columns uniquely identify each row. A primary key column must have a default value.
    No Modify
    Select this check box to indicate that users cannot modify data in this column.
    No Default
    Select this check box to indicate that a value must be specified for this column in any INSERT command.
  6. Save or cancel your changes as follows:
    Apply
    If you want to add multiple columns without exiting the Column Details window, click this button to save the column details after adding each set of entries.
    OK
    After entering the values for the last column that you want to add at the present time, click this button to save the column details and close the window. New columns are added to the Databases, Tables and Columns pane.
    Cancel
    Click this button to close the window without saving your changes.

What to do next

You can use the Data View tab on the Databases, Tables and Columns window to view the table data.


Library | Support |