Oracle® TimesTen In-Memory Database Reference Release 11.2.1 Part Number E13069-03 |
|
|
View PDF |
Description
For all cache groups that cache data from the same Oracle instance, this procedure specifies a timeout value and recovery policies in the case that the Oracle Server is unreachable and the cache agent or data store is considered dead.
The automatic refresh state of the data store and cache groups can be determined from the procedure ttCacheDbCgStatus.
This procedure requires the CACHE_MANAGER privilege.
Syntax
ttCacheConfig(Param, tblOwner, tblName, Value)
Parameters
ttCacheConfig has these parameters:
Parameter | Type | Description |
---|---|---|
Param |
VARCHAR2(50) NOT NULL | Specifies the parameter to be set by Value :
|
tblOwner |
VARCHAR2(30) | Specifies the owner of the cached Oracle table.
This parameter is required if |
tblName |
VARCHAR2(30) | Specifies the name of the cached Oracle table.
This parameter is required if |
Value |
VARCHAR2(200) | Specifies the value to be set for Param .
|
Result set
ttCacheConfig returns no results when it is used to set parameter values. When it is used to return parameter settings, it returns these results:
Column | Type | Value |
---|---|---|
Param |
VARCHAR2(50) | Parameter name:
|
tblOwner |
VARCHAR2(30) | Owner of the cached Oracle table. |
tblName |
VARCHAR2(30) | Name of the cached oracle table. |
Value |
VARCHAR2(200) | Specifies the value set for Param .
|
Examples
To set the cache agent timeout to 600 seconds (10 minutes), enter:
CALL ttCacheConfig('AgentTimeout',,,'600');
To determine the current cache agent timeout setting, enter:
CALL ttCacheConfig('AgentTimeout'); < AgentTimeout, <NULL>, <NULL>, 600 > 1 row found.
To set the recovery method to Manual
for cache groups whose automatic refresh status is dead
, enter:
CALL ttCacheconfig('DeadDbRecovery',,,'Manual');
Configure the IMDB cache to prevent an automatic full refresh and receive an Oracle error when there is an update on a cached Oracle table while the cache administration user's tablespace is full. The Oracle table is terry.customer
.
CALL ttCacheConfig('TblSpaceFullRecovery','terry','customer','None');
To determine the current setting for TblSpaceFullRecovery
on the terry.customer
cached Oracle table, enter:
CALL ttCacheConfig('TblSpaceFullRecovery','terry','customer'); < TblSpaceFullRecovery, TERRY, CUSTOMER, none > 1 row found.
To configure a warning to be returned when the cache administration user's tablespace is 85 percent full and an update operation occurs on the cached Oracle table, enter:
CALL ttCacheConfig('TblSpaceThreshold',,,'85');
Notes
This procedure is available only for IMDB Cache.
See also