C REDO Logs Audit Data Collection Reference

Topics

About the Recommended Settings for Collection from REDO Logs

This chapter describes recommendations for setting initialization parameters if you plan to use the TRANSACTION LOG audit trail type to collect audit data from the REDO logs of an Oracle Database secured target. After you change the initialization parameters described in these sections, you must restart the secured target database before configuring the TRANSACTION LOG audit trail to collect audit data.

See Also:

Oracle Database 11g Release 2 (11.2) and 12c Secured Target Audit Parameter Recommendations

For best results in a REDO collection environment, set the following initialization parameters at each participating database: COMPATIBLE, GLOBAL_NAMES, _job_queue_interval, SGA_TARGET, STREAMS_POOL_SIZE.

Note:

Oracle AVDF does not support Oracle 12c pluggable databases (PDBs) or multitenant container databases (CDBs).

Table C-1 lists the initialization parameters that you must configure for each secured target database that will use the TRANSACTION LOG audit trail.

Table C-1 Initialization Parameters for an Oracle 11.2 or 12c Secured Target Database

Parameter Mandatory or Recommended Parameter Default Value Description

COMPATIBLE

Mandatory

Default: 11.2.0

Range: 10.0.0 to default release

Modifiable? No

This parameter specifies the release with which the Oracle server must maintain compatibility. Oracle servers with different compatibility levels can interoperate.

To use the new Oracle Streams features introduced in Oracle Database 11g Release 2, this parameter must be set to 11.2.0 or higher.

GLOBAL_NAMES

Recommended

Default: false

Range: true or false

Modifiable? Yes

Specifies whether a database link is required to have the same name as the database to which it connects. Recommended value is TRUE.

Ensure that the global name for the secured target database is a fully qualified name (for example, orcl.example.com). If you must change the global database, then run the following ALTER statement in SQL*Plus:

ALTER DATABASE RENAME GLOBAL_NAME TO new_name;

To use Oracle Streams to share information between databases, set this parameter to true at each database that is participating in your Oracle Streams environment.

LOG_ARCHIVE_CONFIG

Recommended

Default: 'SEND, RECEIVE, NODG_CONFIG'

Range: Values:

  • SEND

  • NOSEND

  • RECEIVE

  • NORECEIVE

  • DG_CONFIG

  • NODG_CONFIG

Modifiable? Yes

Enables or disables the sending of redo logs to remote destinations and the receipt of remote redo logs, and specifies the unique database names (DB_UNIQUE_NAME) for each database in the Data Guard configuration

To use downstream capture and copy the redo data to the downstream database using redo transport services, specify the DB_UNIQUE_NAME of the secured target database and the downstream database using the DG_CONFIG attribute. This parameter must be set at both the secured target database and the downstream database.

LOG_ARCHIVE_DEST_n

Recommended

Default: None

Range: None

Modifiable? Yes

Defines up to 31 log archive destinations, where n is 1, 2, 3, ... 31.

To use downstream capture and copy the redo data to the downstream database using redo transport services, at least one log archive destination must be set at the site running the downstream capture process.

LOG_ARCHIVE_DEST_STATE_n

Recommended

Default: enable

Range: One of the following:

  • alternate

  • defer

  • enable

Modifiable? Yes

Specifies the availability state of the corresponding destination. The parameter suffix (1 through 31) specifies one of the corresponding LOG_ARCHIVE_DEST_n destination parameters.

To use downstream capture and copy the redo data to the downstream database using redo transport services, ensure that the destination that corresponds to the LOG_ARCHIVE_DEST_n destination for the downstream database is set to enable.

LOG_BUFFER

Recommended

Default: 5 MB to 32 MB depending on configuration

Range: Operating system-dependent

Modifiable? No

Specifies the amount of memory (in bytes) that Oracle uses when buffering redo entries to a redo log file. Redo log entries contain a record of the changes that have been made to the database block buffers.

If an Oracle Streams capture process is running on the database, then set this parameter properly so that the capture process reads redo log records from the redo log buffer rather than from the hard disk.

MEMORY_MAX_TARGET

Recommended

Default: 0

Range: 0 to the physical memory size available to Oracle Database

Modifiable? No

Specifies the maximum systemwide usable memory for an Oracle database.

If the MEMORY_TARGET parameter is set to a nonzero value, then set this parameter to a large nonzero value if you must specify the maximum memory usage of the Oracle database.

MEMORY_TARGET

Recommended

Default: 0

Range: 152 MB to MEMORY_MAX_TARGET setting

Modifiable? Yes

Specifies the systemwide usable memory for an Oracle database.

Oracle recommends enabling the autotuning of the memory usage of an Oracle database by setting MEMORY_TARGET to a large nonzero value (if this parameter is supported on your platform).

OPEN_LINKS

Recommended

Default: 4

Range: 0 to 255

Modifiable? No

Specifies the maximum number of concurrent open connections to remote databases in one session. These connections include database links, as well as external procedures and cartridges, each of which uses a separate process.

In an Oracle Streams environment, ensure that this parameter is set to the default value of 4 or higher.

PROCESSES

Recommended

Default: 100

Range: 6 to operating system-dependent

Modifiable? No

Specifies the maximum number of operating system user processes that can simultaneously connect to Oracle.

Ensure that the value of this parameter allows for all background processes, such as locks and slave processes. In Oracle Streams, capture processes, apply processes, XStream inbound servers, and XStream outbound servers use background processes. Propagations use background processes in combined capture and apply configurations. Propagations use Oracle Scheduler slave processes in configurations that do not use combined capture and apply.

SESSIONS

Recommended

Default: Derived from:

(1.1 * PROCESSES) + 5

Range: 1 to 231

Modifiable? No

Specifies the maximum number of sessions that can be created in the system.

To run one or more capture processes, apply processes, XStream outbound servers, or XStream inbound servers in a database, you might need to increase the size of this parameter. Each background process in a database requires a session.

SGA_MAX_SIZE

Mandatory

Default: Initial size of SGA at startup

Range: 0 to operating system-dependent

Modifiable? No

Specifies the maximum size of System Global Area (SGA) for the lifetime of a database instance.

If the SGA_TARGET parameter is set to a nonzero value, then set this parameter to a large nonzero value if you must specify the SGA size.

SGA_TARGET

Mandatory

Default: 0 (SGA autotuning is disabled)

Range: 64 MB to operating system-dependent

Modifiable? Yes

Specifies the total size of all System Global Area (SGA) components.

If MEMORY_MAX_TARGET and MEMORY_TARGET are set to 0 (zero), then Oracle recommends enabling the autotuning of SGA memory by setting SGA_TARGET to a large nonzero value.

If this parameter is set to a nonzero value, then the size of the Oracle Streams pool is managed by Automatic Shared Memory Management.

SHARED_POOL_SIZE

Recommended

Default:

When SGA_TARGET is set to a nonzero value: If the parameter is not specified, then the default is 0 (internally determined by Oracle Database). If the parameter is specified, then the user-specified value indicates a minimum value for the shared memory pool.

When SGA_TARGET is not set (32-bit platforms): 64 MB, rounded up to the nearest granule size. When SGA_TARGET is not set (64-bit platforms): 128 MB, rounded up to the nearest granule size.

Range: The granule size to operating system-dependent

Modifiable? Yes

Specifies (in bytes) the size of the shared pool. The shared pool contains shared cursors, stored procedures, control structures, and other structures.

If the MEMORY_MAX_TARGET, MEMORY_TARGET, SGA_TARGET, and STREAMS_POOL_SIZE initialization parameters are set to zero, then Oracle Streams transfers an amount equal to 10% of the shared pool from the buffer cache to the Oracle Streams pool.

STREAMS_POOL_SIZE

Mandatory

Default: 0

Range: 0 to operating system-dependent limit

Modifiable? Yes

Specifies (in bytes) the size of the Oracle Streams pool. The Oracle Streams pool contains buffered queue messages. In addition, the Oracle Streams pool is used for internal communications during parallel capture and apply.

If the MEMORY_TARGET or MEMORY_MAX_TARGET initialization parameter is set to a nonzero value, then the Oracle Streams pool size is set by Automatic Memory Management, and STREAMS_POOL_SIZE specifies the minimum size.

If the SGA_TARGET initialization parameter is set to a nonzero value, then the Oracle Streams pool size is set by Automatic Shared Memory Management, and STREAMS_POOL_SIZE specifies the minimum size.

This parameter is modifiable. If this parameter is reduced to zero when an instance is running, then Oracle Streams processes and jobs might not run.

Ensure that there is enough memory to accommodate the Oracle Streams components. The following are the minimum requirements:

  • 15 MB for each capture process parallelism

  • 10 MB or more for each buffered queue. The buffered queue is where the buffered messages are stored.

  • 1 MB for each apply process parallelism

  • 1 MB for each XStream outbound server

  • 1 MB for each XStream inbound server parallelism

For example, if parallelism is set to 3 for a capture process, then at least 45 MB is required for the capture process. If a database has two buffered queues, then at least 20 MB is required for the buffered queues. If parallelism is set to 4 for an apply process, then at least 4 MB is required for the apply process.

You can use the V$STREAMS_POOL_ADVICE dynamic performance view to determine an appropriate setting for this parameter.

TIMED_STATISTICS

Recommended

Default:

If STATISTICS_LEVEL is set to TYPICAL or ALL, then true

If STATISTICS_LEVEL is set to BASIC, then false

The default for STATISTICS_LEVEL is TYPICAL.

Range: true or false

Modifiable? Yes

Specifies whether statistics related to time are collected.

To collect elapsed time statistics in the dynamic performance views related to Oracle Streams, set this parameter to true. The views that include elapsed time statistics include: V$STREAMS_CAPTURE, V$STREAMS_APPLY_COORDINATOR, V$STREAMS_APPLY_READER, V$STREAMS_APPLY_SERVER.

UNDO_RETENTION

Recommended

Default: 900

Range: 0 to 232 - 1

Modifiable? Yes

Specifies (in seconds) the amount of committed undo information to retain in the database.

For a database running one or more capture processes, ensure that this parameter is set to specify an adequate undo retention period.

If you run one or more capture processes and you are unsure about the proper setting, then try setting this parameter to at least 3600. If you encounter "snapshot too old" errors, then increase the setting for this parameter until these errors cease. Ensure that the undo tablespace has enough space to accommodate the UNDO_RETENTION setting.


Oracle Database 11g Release 1 (11.1) Secured Target Audit Parameter Recommendations

For best results in a REDO collection environment, set the following initialization parameters at each participating database: compatible, GLOBAL_NAMES, _job_queue_interval, SGA_TARGET, STREAMS_POOL_SIZE.

Table C-2 describes the hidden parameter that you must configure for each secured target database that will use the TRANSACTION LOG audit trail.

Table C-2 Hidden Initialization Parameters for aA Release 11.1 Secured Target Database

Parameter Name and Recommendation Mandatory or Recommended Parameter Default Value Description

_job_queue_interval=1

Recommended

5

Scan rate interval (seconds) of job queue


Table C-3 lists the initialization parameters that you must configure for each secured target database that will use the TRANSACTION LOG audit trail. Enable autotuning of the various pools within the SGA, by setting SGA_TARGET to a large nonzero value. Leave the STREAMS_POOL_SIZE value set to 0. The combination of these to parameters enables autotuning of the SGA and the Streams Pool size will be automatically adjusted to meet the workload requirements.

Table C-3 Initialization Parameters for a Release 11.1 Secured Target Database

Parameter Name and Recommendation Mandatory or Recommended Parameter Default Value Description

COMPATIBLE= 11.1.0

Mandatory

Default: 11.1.0

Range: 10.1.0 to Current Release Number

Modifiable? No

This parameter specifies the release with which the Oracle server must maintain compatibility. Oracle servers with different compatibility levels can interoperate.

To use the new Streams features introduced in Oracle Database 10g release 1, this parameter must be set to 10.1.0 or higher. To use downstream capture, this parameter must be set to 10.1.0 or higher at both the secured target database and the downstream database.

To use the new Streams features introduced in Oracle Database 10g release 2, this parameter must be set to 10.2.0 or higher.

To use the new Streams features introduced in Oracle Database 11g release 1, this parameter must be set to 11.1.0 or higher.

GLOBAL_NAMES=true

Recommended

Default: false

Range: true or false Modifiable? Yes

Specifies whether a database link is required to have the same name as the database to which it connects.

To use Streams to share information between databases, set this parameter to true at each database that is participating in your Streams environment.

JOB_QUEUE_PROCESSES=4

Mandatory

Default: 0

Range: 0 to 1000

Modifiable? Yes

Specifies the number of Jnnn job queue processes for each instance (J000 ... J999). Job queue processes handle requests created by DBMS_JOB.

This parameter must be set to at least 2 at each database that is propagating events in your Streams environment, and should be set to the same value as the maximum number of jobs that can run simultaneously plus two.

LOG_ARCHIVE_DEST_n

Recommended

Default: None

Range: None

Modifiable? Yes

Defines up to ten log archive destinations, where n is 1, 2, 3, ... 10.

To use downstream capture and copy the redo log files to the downstream database using log transport services, at least one log archive destination must be at the site running the downstream capture process.

See Also: Oracle Data Guard Concepts and Administration

LOG_ARCHIVE_DEST_STATE_n

Recommended

Default: enable

Range: One of the following: alternate

reset

defer

enable

Modifiable? Yes

Specifies the availability state of the corresponding destination. The parameter suffix (1 through 10) specifies one of the ten corresponding LOG_ARCHIVE_DEST_n destination parameters.

To use downstream capture and copy the redo log files to the downstream database using log transport services, ensure that the destination that corresponds to the LOG_ARCHIVE_DEST_n destination for the downstream database is set to enable.

OPEN_LINKS

Recommended

Default: 4

Range: 0 to 255

Modifiable? No

Specifies the maximum number of concurrent open connections to remote databases in one session. These connections include database links, as well as external procedures and cartridges, each of which uses a separate process.

In a Streams environment, ensure that this parameter is set to the default value of 4 or higher.

PROCESSES

Recommended

Default: Derived from PARALLEL_MAX_SERVERS

Range: 6 to operating system dependent limit

Modifiable? No

Specifies the maximum number of operating system user processes that can simultaneously connect to Oracle.

Ensure that the value of this parameter allows for all background processes, such as locks, job queue processes, and parallel execution processes. In Streams, capture processes and apply processes use background processes and parallel execution processes, and propagation jobs use job queue processes.

SESSIONS

Recommended

Default: Derived from: (1.1 * PROCESSES) + 5

Range: 1 to 231

Modifiable? No

Specifies the maximum number of sessions that can be created in the system.

To run one or more capture processes or apply processes in a database, then you may need to increase the size of this parameter. Each background process in a database requires a session.

SGA_MAX_SIZE

Increase by at least 200M

Mandatory

Default: Initial size of SGA at startup

Range: 0 to operating system dependent limit

Modifiable? No

Specifies the maximum size of SGA for the lifetime of a database instance.

To run multiple capture processes on a single database, you may need to increase the size of this parameter.

See the STREAMS_POOL_SIZE initialization parameter for more specific recommendations.

SGA_TARGET >0

Increase this parameter by at least 200M.

Mandatory

Default: 0 (SGA autotuning is disabled)

Range: 64 to operating system-dependent

Modifiable? Yes

Specifies the total size of all System Global Area (SGA) components.

If this parameter is set to a nonzero value, then the size of the Streams pool is managed by Automatic Shared Memory Management.

See the STREAMS_POOL_SIZE initialization parameter for more specific recommendations.

SHARED_POOL_SIZE=0

Recommended

Default: 32-bit platforms: 32 MB, rounded up to the nearest granule size

64-bit platforms: 84 MB, rounded up to the nearest granule size

Range: Minimum: the granule size

Maximum: operating system-dependent

Modifiable? Yes

Specifies (in bytes) the size of the shared pool. The shared pool contains shared cursors, stored procedures, control structures, and other structures.

If the SGA_TARGET and STREAMS_POOL_SIZE initialization parameters are set to zero, then Streams transfers an amount equal to 10% of the shared pool from the buffer cache to the Streams pool.

The STREAMS_POOL_SIZE initialization parameter should be set to 200 MB and, if necessary, increment the SGA_TARGET and SGA_MAX initialization parameters appropriately. For example, if the SGA_TARGET initialization parameter is already set to 2 GB, setting STREAMS_POOL_SIZE=200 MB would not require that the SGA_TARGET initialization parameter be increased. However, if the SGA_TARGET initialization parameter is set to 600 MB and the STREAMS_POOL_SIZE initialization parameter is increased to 200 MB, then it is recommended that the SGA_TARGET initialization parameter value be increased similarly.

STREAMS_POOL_SIZE=200

Mandatory

Default: 0

Range: Minimum: 0 Maximum: operating system-dependent

Modifiable? Yes

Specifies (in bytes) the size of the Streams pool. The Streams pool contains captured events. In addition, the Streams pool is used for internal communications during parallel capture and apply.

If the SGA_TARGET initialization parameter is set to a nonzero value, then the Streams pool size is set by Automatic Shared memory management, and STREAMS_POOL_SIZE specifies the minimum size.

This parameter is modifiable. If this parameter is reduced to zero when an instance is running, then Streams processes and jobs will not run.

You should increase the size of the Streams pool for each of the following factors:

10 MB for each capture process parallelism

10 MB or more for each buffered queue. The buffered queue is where the Logical Change Records (LCRs) are stored.

1 MB for each apply process parallelism

You can use the V$STREAMS_POOL_ADVICE dynamic performance view to determine an appropriate setting for this parameter.

For example, if parallelism is set to 3 for a capture process, then increase the Streams pool by 30 MB. If parallelism is set to 5 for an apply process, then increase the Streams pool by 5 MB.

TIMED_STATISTICS

Recommended

Default: If STATISTICS_LEVEL is set to TYPICAL or ALL, then true

If STATISTICS_LEVEL is set to BASIC, then false

The default for STATISTICS_LEVEL is TYPICAL.

Range: true or false

Modifiable? Yes

Specifies whether statistics related to time are collected.

To collect elapsed time statistics in the data dictionary views related to Stream, set this parameter to true. The views that include elapsed time statistics include:

V$STREAMS_CAPTURE

V$STREAMS_APPLY_COORDINATOR

V$STREAMS_APPLY_READER

V$STREAMS_APPLY_SERVER

UNDO_RETENTION=3600

Recommended

Default: 900

Range: 0 to 2^32-1 (max value represented by 32 bits)

Modifiable? Yes

Specifies (in seconds) the amount of committed undo information to retain in the database.

For a database running one or more capture processes, ensure that this parameter is set to specify an adequate undo retention period.

If you are running one or more capture processes and you are unsure about the proper setting, then try setting this parameter to at least 3600. If you encounter "snapshot too old" errors, then increase the setting for this parameter until these errors cease. Ensure that the undo tablespace has enough space to accommodate the UNDO_RETENTION setting.

See Also: Oracle Database Administrator's Guide for more information about the UNDO_RETENTION parameter


Oracle Database 10g Release 2 (10.2) Secured Target Audit Parameter Recommendations

For best results in a REDO collection environment, set the following initialization parameters at each participating database: COMPATIBLE, GLOBAL_NAMES, _job_queue_interval, SGA_TARGET, STREAMS_POOL_SIZE.

Table C-4 describes the hidden parameter that you must configure for each secured target database that will use the TRANSACTION LOG audit trail.

Table C-4 Hidden Initialization Parameters for a Release 10.2 Secured Target Database

Parameter Name and Recommendation Mandatory or Recommended Parameter Default Value Description

_job_queue_interval=1

Recommended

5

Scan rate interval (seconds) of job queue


Table C-5 lists the initialization parameters that you must configure for each secured target database. Enable autotuning of the various pools within the SGA, by setting SGA_TARGET to a large nonzero value. Leave the STREAMS_POOL_SIZE value set to 0. The combination of these to parameters enables autotuning of the SGA and the Streams Pool size will be automatically adjusted to meet the workload requirements.

Table C-5 Initialization Parameters for a Release 10.2 Secured Target Database

Parameter Name and Recommendation Mandatory or Recommended Parameter Default Value Description

COMPATIBLE= 10.2.0

Mandatory

Default: 10.0.0

Range: 10.0.0 to Current Release Number

Modifiable? No

This parameter specifies the release with which the Oracle database must maintain compatibility. Oracle databases with different compatibility levels can interoperate.

To use the new Streams features introduced in Oracle Database 10g release 1, set this parameter to 10.1.0 or higher. To use downstream capture, set this parameter 10.1.0 or higher for both the secured target database and the downstream database.

To use the new Streams features introduced in Oracle Database 10g release 2, set this parameter to 10.2.0 or higher.

GLOBAL_NAMES=true

Recommended

Default: false

Range: true or false Modifiable? Yes

Specifies whether a database link is required to have the same name as the database to which it connects.

To use Streams to share information between databases, set this parameter to true for each database that participates in your Streams environment.

JOB_QUEUE_PROCESSES=4

Mandatory

Default: 0

Range: 0 to 1000

Modifiable? Yes

Specifies the number of job queue processes for each instance (J000 ... J999). Job queue processes handle requests created by the DBMS_JOB PL/SQL package.

Set this parameter to at least 2 for each database that propagates events in your Streams environment, and then set it to the same value as the maximum number of jobs that can run simultaneously, plus 2.

LOG_ARCHIVE_DEST_n

Recommended

Default: None

Range: None

Modifiable? Yes

Defines up to ten log archive destinations, where n is 1, 2, 3, ... 10.

To use downstream capture and copy the redo log files to the downstream database using log transport services, at least one log archive destination must be at the site running the downstream capture process.

See Also: Oracle Data Guard Concepts and Administration

LOG_ARCHIVE_DEST_STATE_n

Recommended

Default: enable

Range: One of the following: alternate

reset

defer

enable

Modifiable? Yes

Specifies the availability state of the corresponding destination. The parameter suffix (1 through 10) specifies one of the ten corresponding LOG_ARCHIVE_DEST_n destination parameters.

To use downstream capture and copy the redo log files to the downstream database using log transport services, ensure that the destination that corresponds to the LOG_ARCHIVE_DEST_n destination for the downstream database is set to enable.

OPEN_LINKS

Recommended

Default: 4

Range: 0 to 255

Modifiable? No

Specifies the maximum number of concurrent open connections to remote databases in one session. These connections include database links, external procedures, and cartridges, each of which uses a separate process.

In a Streams environment, set this parameter to the default value of 4 or higher.

PARALLEL_MAX_SERVERS

Set this parameter to at least 20.

Mandatory

Default: Derived from the values of the following parameters: CPU_COUNT

PARALLEL_ADAPTIVE_MULTI_USER

PARALLEL_AUTOMATIC_TUNING

Range: 0 to 3599

Modifiable? Yes

Specifies the maximum number of parallel execution processes and parallel recovery processes for an instance. As demand increases, Oracle Database increases the number of processes from the number created at instance startup up to this value.

In a Streams environment, each capture process and apply process can use multiple parallel execution servers. Set this initialization parameter to an appropriate value to ensure that there are enough parallel execution servers.

PROCESSES

Recommended

Default: Derived from PARALLEL_MAX_SERVERS

Range: 6 to operating system dependent limit

Modifiable? No

Specifies the maximum number of operating system user processes that can simultaneously connect to an Oracle database.

Ensure that the value of this parameter allows for all background processes, such as locks, job queue processes, and parallel execution processes. In Streams, capture processes and apply processes use background processes and parallel execution processes, and propagation jobs use job queue processes.

SESSIONS

Recommended

Default: Derived from: (1.1 * PROCESSES) + 5

Range: 1 to 231

Modifiable? No

Specifies the maximum number of sessions that can be created in the system.

To run one or more capture processes or apply processes in a database, then you may need to increase the size of this parameter. Each background process in a database requires a session.

SGA_MAX_SIZE

Increase by at least 200M

Mandatory

Default: Initial size of SGA at startup

Range: 0 to operating system dependent limit

Modifiable? No

Specifies the maximum size of SGA for the lifetime of a database instance.

To run multiple capture processes on a single database, you may need to increase the size of this parameter.

See the STREAMS_POOL_SIZE initialization parameter for more specific recommendations.

SGA_TARGET >0

Increase this parameter by at least 200M.

Mandatory

Default: 0 (SGA autotuning is disabled)

Range: 64 to operating system-dependent

Modifiable? Yes

Specifies the total size of all System Global Area (SGA) components.

If you set this parameter to a nonzero value, then the size of the Streams pool is managed by Automatic Shared Memory Management.

See the STREAMS_POOL_SIZE initialization parameter for more specific recommendations.

SHARED_POOL_SIZE=0

Recommended

Default: 32-bit platforms: 32 MB, rounded up to the nearest granule size

64-bit platforms: 84 MB, rounded up to the nearest granule size

Range: Minimum: the granule size

Maximum: operating system-dependent

Modifiable? Yes

Specifies (in bytes) the size of the shared pool. The shared pool contains shared cursors, stored procedures, control structures, and other structures.

If you set the SGA_TARGET and STREAMS_POOL_SIZE initialization parameters to zero, then Streams transfers an amount equal to 10 percent of the shared pool from the buffer cache to the Streams pool.

STREAMS_POOL_SIZE=200

Mandatory

Default: 0

Range: Minimum: 0 Maximum: operating system-dependent

Modifiable? Yes

Specifies (in bytes) the size of the Streams pool. The Streams pool contains captured events. In addition, Oracle Database uses the Streams pool for internal communications during parallel capture and apply.

If you set the SGA_TARGET initialization parameter to a nonzero value, then the Streams pool size is set by Automatic Shared memory management, and STREAMS_POOL_SIZE specifies the minimum size.

You should set the STREAMS_POOL_SIZE initialization parameter to 200 MB and, if necessary, increment the SGA_TARGET and SGA_MAX initialization parameters appropriately. For example, if the SGA_TARGET initialization parameter is already set to 2 GB, setting STREAMS_POOL_SIZE=200 MB does not require you to increase the SGA_TARGET initialization parameter setting. However, if the SGA_TARGET initialization parameter is set to 600 MB and the STREAMS_POOL_SIZE initialization parameter is increased to 200 MB, then you should increase the SGA_TARGET initialization parameter value similarly.

This parameter is modifiable. If you reduce this parameter setting to zero when an instance is running, then Streams processes and jobs cannot run.

You should increase the size of the Streams pool for each of the following factors:

  • 10 MB for each capture process parallelism

  • 10 MB or more for each buffered queue. The buffered queue is where the Logical Change Records (LCRs) are stored.

  • 1 MB for each apply process parallelism

You can use the V$STREAMS_POOL_ADVICE dynamic performance view to determine an appropriate setting for this parameter.

For example, if you set parallelism to 3 for a capture process, then increase the Streams pool by 30 MB. If you set parallelism to 5 for an apply process, then increase the Streams pool by 5 MB.

TIMED_STATISTICS

Recommended

Default: If STATISTICS_LEVEL is set to TYPICAL or ALL, then true

If STATISTICS_LEVEL is set to BASIC, then false

The default for STATISTICS_LEVEL is TYPICAL.

Range: true or false

Modifiable? Yes

Specifies whether statistics related to time are collected.

To collect elapsed time statistics in the data dictionary views related to Stream, set this parameter to true. The following views include elapsed time statistics:

V$STREAMS_CAPTURE

V$STREAMS_APPLY_COORDINATOR

V$STREAMS_APPLY_READER

V$STREAMS_APPLY_SERVER

UNDO_RETENTION=3600

Recommended

Default: 900

Range: 0 to 2^32-1 (max value represented by 32 bits)

Modifiable? Yes

Specifies (in seconds) the amount of committed undo information to retain in the database.

For a database running one or more capture processes, set this parameter to specify an adequate undo retention period.

If you are running one or more capture processes and you are unsure about the proper setting, then try setting this parameter to at least 3600. If you encounter "snapshot too old" errors, then increase the setting for this parameter until these errors cease. Ensure that the undo tablespace has enough space to accommodate the UNDO_RETENTION setting.

See Also: Oracle Database Administrator's Guide for more information about the UNDO_RETENTION parameter