| Oracle® TimesTen In-Memory Database Reference Release 11.2.1 Part Number E13069-03 |
|
|
View PDF |
Description
Defines the policy used to determine when a data store is loaded into memory. The policy can be either always, manual, or inUse.
This procedure requires the ADMIN privilege.
Syntax
ttRamPolicySet('ramPolicy', ramGrace)
Parameters
ttRamPolicySet has the parameters:
| Parameter | Type | Description |
|---|---|---|
ramPolicy |
TT_VARCHAR (10) NOT NULL | The policy used to determine when the data store is loaded into system RAM. Valid values are:
|
ramGrace |
TT_INTEGER | Sets the number of seconds the data store is kept in RAM after the last application has disconnected. This number is only effective if ramPoliy is inUse. This parameter is optional, and when omitted or set to NULL, the existing ramGrace period is left unchanged. |
Result set
ttRamPolicySet returns no results.
Examples
To set the policy for loading a data store into RAM to be inUse and for the data store to kept in RAM for 10 seconds after the last application has disconnected, use:
CALL ttRamPolicySet('inUse', 10);
See also