10 Performance
10.1 Improving the Performance of Oracle GoldenGate Veridata
You can use the following parameters and configurations to improve the performance of Oracle GoldenGate Veridata, when processing large volumes of data.
Adding Primary Key Columns
Refer Specifying Primary Key (PK) Columns section to know how adding primary key can help improve the performance.
Partitioning
Refer Partitioning section to know how dividing data into comparable units chunks can help improve performance.
Delta Comparison
Refer Delta Comparison section to know how delta compare can help improve performance.
Excluding Columns
Refer Exclude Columns section to know how and when to remove columns to help improve performance.
Server Configurations
COOS join
Refer Server Configurations to know when to use COOS join and other server configurations that can improve performance.
Agent Configurations
-
COOS Batch Fetch
You can use COOS Batch Fetch instead of fetching data individually, so that the agent fetches data in batches. Refer Coos Batch Fetch.
-
ROWSCN
You can use ROWSCN to skip full table comparison and compare data after a particular SCN value.
Refer ROWSCN to know how to set the ROWSCN value. - Change the Database Transaction Isolation Level
Each Oracle GoldenGate Veridata agent has an agent.properties file in the root of its installation folder that contains environment parameters. One of those parameters is database.transaction.isolation. This property controls the transaction isolation level that is used during the initial comparison step.
The default value for SQL Server and Teradata is READ_UNCOMMITTED. This means that the query that is issued to select rows can read rows that have been modified by other transactions but not yet committed. It does not issue shared locks to prevent other transactions from modifying the data, nor is it blocked by the locks of other transactions.
The advantage of using the READ UNCOMMITTED option is that the initial reads of the data are faster because they are not affected by locking. The disadvantage is that more records could be labelled as possibly out-of-sync, because the data can change over the course of the transaction, and will be compared again during the confirmation step.
If there are too many rows being compared in the COOS step, you can edit the properties file and set
database.transaction.isolation
to COMMITED, which only permits the fetching of committed records. You must weigh any improvement against the possibility that the initial comparison step becomes slower due to the effect of locks to preserve read consistency.Note:
The only value that is supported for Oracle is READ_COMMITTED, and the COOS step always uses READ_COMMITTED, because at this stage uncommitted records reads are not accepted.
Profile Configurations
- Sorting Configurations
Server Sort
The following factors affect the performance of the sorting mechanism:- The number of rows in the tables being compared
- The indexes that are defined on the tables
- The keys that are being used
- The way that the database is tuned
Refer Sorting Configuration, to know how to use server-side sorting.
- Initial Comparison Configurations
- Max Concurrent Comparison Threads: Refer Max Concurrent Comparison Threads , to know how to use comparison threads.
- Optimizer Hints: Refer Source and Target Optimizer Hint to know how to use optimizer hints.
- Limit Number of Input Rows: Limit the number of
rows that are compared, by using this parameter. You can constrain
the number of rows that are fetched for processing, for a specific
job profile. This enables you to process a smaller number of rows to
find out how out-of-sync (or not) the entire table is. Based on the
results, you can run a complete comparison or just resynchronize the
data. This parameter is a general parameter for the initial
comparison process.
To set this parameter:
- In the Oracle GoldenGate Veridata UI, click Profiles and select a profile.
- Click the Initial Compare tab and then update value for Limit Number of Input Rows
-
Increase process priority (NonStop only): Assign the Oracle GoldenGate Veridata Agent the highest process priority possible on a NonStop system. You can assign a priority and a process name and CPU number, by using the NonStop settings of the initial and confirmation steps in the job profile.
- Out-of-Sync Configurations
-
COOS Batch Size: Refer COOS Batch Size, to know how to use COOS batching.
-
Optimizer Hints Refer Optimizer Hints , to know how to use optimizer hints.
-
Run COOS in Parallel with Initial Compare
By default, Oracle GoldenGate Veridata runs the initial compare and confirm-out-of-sync processes concurrently. If you run them in sequence, fewer system resources are used, but it will take longer to get results.
To verify this:
In the Veridata UI, click Profiles and select a profile.
Click Confirm-Out-of-Sync. Check the value for Run Concurrently With Initial Compare. This option should be selected (checked).
-
Skip COOS step
The default setting is to always perform a COOS step. You can skip this step if the database is quiesced or if replication is not actively replicating data changes.
To skip COOS step:- In the Oracle GoldenGate Veridata UI, click Profiles and select a profile.
- Click the Confirm-out-of-sync tab and then uncheck the Use Default and Value for Perform Confirm Out-of-Sync Step.
-
Increase process priority (NSK)
Assign the Oracle GoldenGate Veridata Agent the highest process priority possible on a NonStop system. Use the NonStop Process Setting under Initial compare and Confirm-out-of-sync in Profile Configuration.
-
Refer Out-of-Sync Configuration section to know other COOS configurations that can help improve performance.
Connection Configurations
Compare Fetch Size
Increase the batch size of fetched rows to increase throughput. Refer Compare Fetch Size to know how to increase fetch size.
Repair Configurations
- Number of Concurrent Repair Operations
- Repair Batch
Parent topic: Performance