StatementCache

Description

Specifies whether statement caching is enabled and the maximum number of statements to cache.

Applies to

Syntax

StatementCache='value'

Parameter

Description

value

Specifies whether statement caching is enabled and the maximum number of statements to cache. Values are:

Default

StatementCache=0

Usage

Statement caching in Oracle provides and manages a cache of statements for each session. On the server, cursors are ready to be used without the need to parse the statement again before execution. Statement caching can be used with connection or session pooling to improve performance and scalability.

Examples

Example 1

To enable statement caching and specify that five statements can be cached:

See also