create compareset

Creates a compareset, which includes the database connection profile, and the source and target tables to be compared.

Syntax

create compareset compareset_name
[set desc [{to|=}] description]
with source source_connection_name  owner_name 
source_table_name source_alias [where “constraint”]
target target_connection_name owner_name 
target_table_name target_alias [where “constraint”]
[and target target_connection_name owner_name 
target_table_name target_alias [where “constraint”]...] 
 map {all [set strict_column [{to|=}] {true|false}]
[and set strict_key [{to|=}] {true|false}]
[and set strict_type [{to|=}] {true|false}] 
[and set keep_computed [{to|=}] {true|false}]
[and set keep_encrypted [{to|=}] {true|false}]|
source_table_alias.column_name = target_table_alias.column_name
[ = target_table_alias.column_name ...] 
[set key=true ], 
[and source_table_alias.column_name = 
target_table_alias.column_name [ = 
target_table_alias.column_name ...] 
[set key=true]…] }

Parameters

Examples

Usage

  • All targets must have same number of map columns.

  • At least one key column is required. Multiple key columns are allowed.

Related reference
create connection
create job