READONLY Cache Table Attribute
The READONLY cache table attribute can be specified only for cache
tables in a user managed cache group.
READONLY specifies that the cache table cannot be updated
directly. By default, a cache table in a user managed cache group is updatable.
Unlike a read-only cache group where all of its cache tables are read-only, in a user managed cache group individual cache tables can be specified as read-only using the READONLY cache table attribute.
The following restrictions apply when using the READONLY cache table attribute:
-
If the cache group uses the
AUTOREFRESHcache group attribute, theREADONLYcache table attribute must be specified on all or none of its cache tables.See Automatically Refreshing a Cache Group for more information about using the
AUTOREFRESHcache group attribute. -
You cannot use both the
READONLYandPROPAGATEcache table attributes on the same cache table.See PROPAGATE Cache Table Attribute for more information about using the
PROPAGATEcache table attribute. -
A
FLUSH CACHE GROUPstatement cannot be issued on the cache group unless one or more of its cache tables use neither theREADONLYnor thePROPAGATEcache table attribute.See Flushing a User Managed Cache Group for more information about the
FLUSH CACHE GROUPstatement. -
After the
READONLYcache table attribute has been specified on a cache table, you cannot change this attribute unless you drop the cache group and re-create it.