ALTER CACHE GROUP
The ALTER CACHE GROUP
statement modifies the state, interval and mode of AUTOREFRESH
for a cache group.
Updates on the Oracle Database tables can be propagated back to the TimesTen cache group with the use of AUTOREFRESH
. AUTOREFRESH
can be enabled when the cache group is a user managed cache group or is defined as READONLY
with an AUTOREFRESH
clause.
Any values or states set by ALTER CACHE GROUP
are persistent. They are stored in the database and survive daemon and cache agent restarts.
Required Privilege
No privilege is required for the cache group owner.
ALTER ANY CACHE GROUP
for another user's cache group.
Usage with TimesTen Scaleout
This statement is supported with TimesTen Scaleout.
SQL Syntax
This statement changes the AUTOREFRESH
mode of the cache group, which determines which rows are updated during an autorefresh operation. You cannot use the ALTER
CACHE
GROUP
...SET AUTOREFRESH MODE
clause in TimesTen Scaleout.
ALTER CACHE GROUP [Owner.]CacheGroupName SET AUTOREFRESH MODE {INCREMENTAL | FULL}
This statement changes the AUTOREFRESH
interval on the cache group. You cannot use the ALTER
CACHE
GROUP
...SET AUTOREFRESH INTERVAL
clause in TimesTen Scaleout.
ALTER CACHE GROUP [Owner.]CacheGroupName SET AUTOREFRESH INTERVAL IntervalValue {MINUTE[S] | SECOND[S] | MILLISECOND[S]}
This statement alters the AUTOREFRESH
state:
ALTER CACHE GROUP [Owner.]CacheGroupName SET AUTOREFRESH STATE {ON | OFF | PAUSED}
Parameters
Parameter | Description |
---|---|
|
Name assigned to the new cache group. |
|
Indicates that changes to the Oracle Database tables should be automatically propagated to TimesTen. |
|
Determines which rows in the cache are updated during an autorefresh. If the |
|
An integer value that specifies how often If the specified interval is not long enough for an |
|
Specifies whether |
|
|
|
A scheduled |
|
A scheduled |
Description
-
A refresh does not occur immediately after issuing
ALTER CACHE GROUP...SET AUTOREFRESH STATE
. This statement only changes the state ofAUTOREFRESH
. When the transaction that contains theALTER CACHE GROUP
statement is committed, the cache agent is notified to schedule anAUTOREFRESH
immediately, but the commit goes through without waiting for the completion of the refresh. The scheduling of the autorefresh operation is part of the transaction, but the refresh itself is not. -
If you issue an
ALTER CACHE GROUP... SET AUTOREFRESH STATE OFF
statement and there is an autorefresh operation currently running, then:-
If
LockWait
interval is 0, theALTER
statement fails with a lock timeout error. -
If
LockWait
interval is nonzero, then the current autorefresh transaction is rolled back, and theALTER
statement continues. This affects all cache groups with the same autorefresh interval.
-
-
Replication cannot occur between cache groups with
AUTOREFRESH
and cache groups withoutAUTOREFRESH
. -
If the
ALTER CACHE GROUP
statement is part of a transaction that is being replicated, and if the replication scheme has theRETURN TWOSAFE
attribute, the transaction may fail. -
You cannot execute the
ALTER CACHE GROUP
statement when performed under the serializable isolation level. An error message is returned when attempted.
See Also