You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

You can create a schema comparison job to capture, compare, and synchronize database schemas. In addition, you can compare a schema against an archived version of a schema. For more information, see Creating a schema archive.

The following tasks step you through creating and running a schema comparison job:

After comparing the data, you can synchronize it to match; see Synchronizing Data Repositories.

Create or Open a Schema Comparison Job

You create, modify, and run a schema comparison job in the Schema Comparison Job editor.

To create a new schema comparison job

  • Select File > New > Schema Comparison Job. The Schema Comparison Job editor opens.

To open an existing schema comparison job

  • Select File > Open Job. Select a job from the list, and then click OK. The Schema Comparison Job editor opens.

Describe and Save the Schema Comparison Job

The Job Name and Description pane shows where the job is stored in Project Explorer. When you click the Details button, you can see the project’s file directory path.

If the job is used to monitor compliance against company standards or policies, you can add it to the Compliance Explorer list. This list lets you quickly see all the jobs that have recently passed or failed the compliance criteria you set.

To describe and save a job

  1. Type a new name for the job in the Name field. Enter a meaningful name that will quickly and uniquely identify the job in other views and dialogs.
  2. Add relevant information in the Notes field.
  3. Click Track Results in Compliance Explorer if you want the job to be listed in the Compliance Explorer.
  4. Click File > Save or File > Save All, or highlight the editor window, and then press Ctrl+S.

Specify a Schema Comparison Source and Targets

The Schema Comparison Source and Schema Comparison Target panes identify what data sources or schema archives are compared when the job runs. The Schema Comparison Job editor displays the Name, Type, and Host of the source and target.

You can also use a schema archive in a schema comparison job, to compare an older schema against a new one. For more information, see Creating a schema archive.

In addition, you can use the following radio buttons to specify whether to compare the current properties of the live data source, or an archived set of properties previously stored in DB Change Manager.

  • Select Use Live Sources to compare the current properties of the data source when the job is executed.
  • Select Use an Archive, and then select the schema archive and version from the pulldown menu.

To add a data source to a schema comparison job

  • Click and drag a data source from Data Source Explorer to the Schema Comparison Source or Schema Comparison Target box, or click Change Data Source, and then choose a data source from the dialog box.

To add a schema archive to a schema comparison job

  • Click and drag a schema archive from Data Source Explorer to the Schema Comparison Source or Schema Comparison Target box.

To change a schema archive or data source in a schema comparison job

  • Click Change Data Source in the appropriate box, and then select a new data source from the dialog; or drag a different data source from Data Source Explorer to the box.

Cross-Platform Schema Comparisons Supported by DB Change Manager

DB Change Manager supports cross-platform schema comparisons. However, such jobs are limited to the following DBMS combinations and data source objects:

DBMS Source/TargetObjects Compared
Sybase / SQL ServerTables, Unique Keys, Check Constraints, Foreign Keys, Indexes, Primary Keys, Views
Oracle / SQL ServerTables, Unique Keys, Check Constraints, Foreign Keys, Indexes, Primary Keys, Views

If you attempt to compare two data sources that are not compatible, the Schema Comparison Job editor does not let you place objects in the Source or Target panes.

Add Multiple Schema Comparison Job Targets

You can add more targets to compare a source schema against multiple target schemas.

To add multiple targets to a schema comparison job

Drag and drop additional data sources or schema archives from Data Source Explorer to the Schema Comparison Target box, or click the Add Archive or Add Data Source buttons beneath the table and select the appropriate target from the dialog box.

Refine Schema Comparisons

You can refine the schema comparison to use only the schema objects you want to include using the Refinements tab in the Schema Comparison Job editor.

  • The Object Refinement pane lists the database objects of the comparison source. Objects are listed by owner (if applicable to the database platform) or by object type.
  • The Filter by Owner and Filter by Type panes let you add or remove objects from the Object Refinement pane by owner (if applicable to the database platform) or by object type.

To specify the objects used in a schema comparison job

  1. In the Refinements tab, select or deselect objects in the Filter by Owner and/or Filter by Type panes to add or remove objects from the Object Refinement pane.
  2. Select or deselect the objects in the Object Refinement pane.

Customize Schema Mapping

The mapping process pairs objects between the job source and target so that the objects can be compared. You can see and modify pairs using the Mapping tab of the Schema Comparison Job editor.

DB Change Manager automatically maps schema objects based on its interpretation of both schemas. Elements that do not match are initially excluded; you can manually map them prior to running the job.

The Refinements Mapping table lists schema elements for the job source and target.

Cloning a schema comparison job



IDERA |  Products | Purchase | Support |  Community |  Resources |  About Us  | Legal
  • No labels