ttDBConfig

The ttDBConfig built-in enables users to set or view the value of a TimesTen database system parameter.

Required Privilege

This procedure requires ADMIN privilege.

Usage in TimesTen Scaleout and TimesTen Classic

This procedure is supported in TimesTen Classic.

This procedure is supported in TimesTen Scaleout, but it runs locally on the element from which it is called.

Related Views

This procedure has these related views.

SYS.GV$DB_CONFIG

SYS.V$DB_CONFIG

Syntax

ttDBConfig(['param'[,'value']])

Parameters

ttDBConfig has the parameters:

Parameter Type Description

param

VARCHAR2(50)

A system parameter for which you either want to set a value or see the current value. Accepted values for this argument are:

CacheAgentCommitBufSize

CacheAwtMethod

CacheParAwtBatchSize

DynamicLoadReduceContention

ParReplMaxDrift

PLSQL_OPEN_CURSORS

PLSQL_SESSION_CACHED_CURSORS

RepAgentCommitBufSize

value

VARCHAR2(200)

The value of the system parameter.

If you do not specify a value, this procedure returns the current value of the specified parameter.

Parameter / Value Pairs

These name/value pairs can be returned in the result set:

Name Value Description

CacheAgentCommitBufSize

Size in MB

Specifies the reclaim buffer maximum size for the cache agent. The cache agent periodically checks to see if the value has changed. The size cannot be greater than the temporary partition size.

For more details, see Improving Performance When Reclaiming Memory During Autorefresh Operations in Oracle TimesTen In-Memory Database Cache Guide.

CacheAwtMethod

0 - SQL array method

1 - PL/SQL execution method

Determines whether PL/SQL or SQL array method is used for AWT propagation to apply changes to the Oracle database server.

Setting this parameter with ttDBConfig overrides the connection attribute value.

Default: 1

See the description of the CacheAWTMethod connection attribute for details.

CacheParAwtBatchSize

Number of rows in a batch

Configures a threshold value for the number of rows included in a single batch. Once the maximum number of rows is reached, TimesTen includes the rest of the rows in the transaction (TimesTen does not break up any transactions), but does not add any more transactions to the batch.

Note:

You should not change the value of this parameter unless advised by Oracle TimesTen technical support.

DynamicLoadReduceContention

0 - Disabled

1 - Enabled

If enabled, changes the way that autorefresh and dynamic load operations coordinate, which results in reduced contention between autorefresh and dynamic load operations.

  • Dynamic load operations are never blocked by autorefresh operations (due to additional synchronization).

  • Autorefresh operations are not completely delayed by dynamic load operations.

Default: 0

For more details, see Reducing Contention on TimesTen for Dynamic Read-Only Cache Groups with IncrementalAautorefresh in Oracle TimesTen In-Memory Database Cache Guide.

ParReplMaxDrift

Number of seconds

Specifies the number of seconds of drift to allow between the parallel replication tracks. When you use automatic parallel replication with disabled commit dependencies, some of the tracks may move ahead of the others. Once this threshold is passed, TimesTen synchronizes all replication tracks so that they catch up to each other. By default, this is set to zero, which means that checking for drift between tracks is disabled.

PLSQL_OPEN_CURSORS

Maximum number of PL/SQL cursors

Specifies the maximum number of PL/SQL cursors that can be open in a session at one time, a value from 1 to 65535, inclusive. Use this to prevent a session from opening an excessive number of cursors. Setting this parameter with ttDBConfig provides a default value for future connections.

Default: 50 PL/SQL cursors.

For more details see the description of the PLSQL_OPEN_CURSORS connection attribute.

PLSQL_SESSION_CACHED_CURSORS

Number of session cursors to cache

Specifies the number of session cursors to cache. A user may adjust the setting to free up space not currently needed in the cache.

PLSQL_SESSION_CACHED_CURSORS can be modified by an ALTER SESSION SQL statement, described in Oracle TimesTen In-Memory Database SQL Reference. Setting this parameter with ttDBConfig provides a default value for future connections.

Default: 50 PL/SQL cursors.

For more details, see the description of the PLSQL_SESSION_CACHED_CURSORS connection attribute.

RepAgentCommitBufSize

Size in MB

Specifies the reclaim buffer maximum size for the replication agent. The replication agent periodically checks to see if the value has changed. The size cannot be greater than the temporary partition size.

For more details, see Improving Performance When Reclaiming Memory During Autorefresh Operations in Oracle TimesTen In-Memory Database Cache Guide.

Result Set

ttDBConfig returns the result set:

Column Type Description

param

VARCHAR2(50)

The name of the specified parameter.

value

VARCHAR2(200)

The current value of the specified parameter.

This is the new value, if you specified a value.

Examples

To retrieve the current value of the CacheParAwtBatchSize, use:

CALL ttDBConfig('CacheParAwtBatchSize');
<CACHEPARAWTBATCHSIZE, 125>
1 row found.

To set the value of the RepAgentCommitBufSize to 50 MB, use:

CALL ttDBConfig('RepAgentCommitBufSize', '50');
 <REPAGENTCOMMITBUFSIZE, 50>
 1 row found.

To set the current value of the CacheAgentCommitBufSize to 100, use:

CALL ttDBConfig('CacheAgentCommitBufSize', '100');
 < CACHEAGENTCOMMITBUFSIZE, 100 >
1 row found.

The following example sets DynamicLoadReduceContention=1:

CALL ttDbConfig('DynamicLoadReduceContention','1');

Notes

  • After using this built-in procedure to set a parameter value, initiate a checkpoint to ensure the persistence of the parameter change. See details about the ttCkpt procedure in Checkpoint Operations in Oracle TimesTen In-Memory Database Operations Guide. For details about the checkpoint built-in procedure, see ttCkpt in this chapter.

  • Changes to parameter values made by ttDBConfig cannot be rolled back.

  • If you call ttDBConfig without an input parameter, it will return names and values of all supported parameters.