NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
A-36
Considerations—ALTER TABLE
°
Changing the OWNER for a table automatically changes the OWNER of
indexes and protection views defined on the table.
°
Changing the SECURE attribute for a table automatically changes the SECURE
attribute of indexes defined on the table. In addition, changing the SECURE
attribute for a table automatically changes the SECURE attribute of protection
views defined on the table if such a change is necessary to meet the following
requirements:
°
Purge authority for the protection view must include the users authorized to
purge the underlying table.
°
The owner of a protection view must have authority to read and write to the
view and the underlying table unless the security string for the view
specifies the super ID (-) for the authority the owner lacks.
SQL issues a warning if it changes the security string of protection views as the
result of an ALTER TABLE.
°
Changing the SECURE attribute read authority for a table can effectively
change the read authority for a shorthand view defined on the table, because
authority to read a shorthand view depends on the authority to read the
underlying tables. (The read option in the SECURE value for a shorthand view
has no effect.)
°
Altering the AUDIT attribute of a table automatically changes the AUDIT
attribute value for dependent views and indexes to the same value. In addition,
altering the AUDIT attribute of a table automatically changes the BUFFERED
attribute for the table (but not for dependent views and indexes) as follows:
You can override the automatic change to the BUFFERED attribute by explicitly
setting BUFFERED in the ALTER TABLE.
If you change an indexed, unaudited table to an audited table, you can create
performance problems unless you also modify the BUFFERED attribute for the
indexes on the table in separate ALTER INDEX statements. The AUDIT and
BUFFERED attributes on a table and its indexes should be set to the same
value.
An ALTER TABLE that changes the AUDIT attribute to NO AUDIT cannot
execute in a user-defined TMF transaction.
°
ALTER TABLE changes file attributes for a table by changing information in
the file label for the table and in the catalog tables of the catalog that describes
the table.
Adding columns
AUDIT
Attribute
BUFFERED
Attribute
AUDIT BUFFERED
NO AUDIT NO BUFFERED