6.119 DBA_WORKLOAD_DIV_SUMMARY
DBA_WORKLOAD_DIV_SUMMARY
displays a summary of the replay divergence information in the DBA_WORKLOAD_REPLAY_DIVERGENCE
view. DBA_WORKLOAD_REPLAY_DIVERGENCE
may have duplicate entries, while DBA_WORKLOAD_DIV_SUMMARY
keeps only one entry and tracks the number of occurrences of each duplicate entry.
Starting with Oracle Database 12.2.0.1, the replay report is generated from DBA_WORKLOAD_DIV_SUMMARY
instead of from DBA_WORKLOAD_REPLAY_DIVERGENCE
, which results in faster generation of the replay report.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
ID (key) for the workload replay |
|
|
|
Reserved for future use |
|
|
|
Indicates whether the data divergence is from the number of rows fetched by SELECT queries ( |
|
|
|
Indicates whether the divergence is from the number of rows affected by INSERT, UPDATE, or DELETE SQL statements ( |
|
|
|
Indicates whether the divergence is from errors seen during capture or replay ( |
|
|
|
Indicates whether the divergence is from sessions that failed during replay ( |
|
|
|
Indicates whether the SQL call contains masked bind data ( If data masking technology is used at the replay database, the workload capture files need to be masked. Otherwise, SQL statements generated from capture files that contain sensitive bind data will not match the database. When the replay client sends masked bind data to the server, it turns on the |
|
|
|
Stream ID of the session that reported the divergence |
|
|
|
SQL ID of the SQL that reported the divergence |
|
|
|
Error number that was seen during capture ( |
|
|
|
Text of the error message whose number appears in the |
|
|
|
Actual error number seen during replay ( |
|
|
|
Text of the error message whose number appears in the |
|
|
|
Service name of the session that reported the divergence |
|
|
|
Module name of the session that reported the divergence |
|
|
|
Number of times the divergence occurred during replay |
Example
The following query prints the top 3 SQL statements that got error divergence during replay. This query shows the captured error number and the actual error number seen during replay.
SQL> SELECT * FROM (SELECT occurrences, sql_id, expected_error#, observed_error# FROM dba_workload_div_summary WHERE replay_id = 123 AND is_error_divergence = 'Y' ORDER BY occurrences DESC) WHERE ROWNUM <= 3; OCCURRENCES SQL_ID EXPECTED_ERROR# OBSERVED_ERROR# ----------- ------------- --------------- --------------- 8 0xrm2wjdqv17m 0 1 4 8bzwdnnznspjd 1422 0 3 6d8rwrac8dsk7 1 1400 SQL>
See Also: