Reversing Databases

You can import tables from databases of other data sources to a specified ER model (except the OBS type).

Prerequisites

Before reversing databases, collect data assets from databases in DGC Data Assets so that the system can synchronize tables to DGC Data Assets later. Otherwise, the synchronization tasks may fail. See Task Management for details.

Importing a Table to a Specified Model by Reversing the Database

  1. On the DGC Data Design console, choose Dimensional Modeling from the left navigation bar.
  2. Click the Dimensions tab or the Fact Tables tab. Then, click Reverse Database above the list.

    Figure 1 Selecting an object

  3. In the Reverse Database dialog box, set the parameters as prompt.

    Figure 2 Reversing a database
    Table 1 Parameters

    Parameter

    Description

    Subject

    Click Select to select a subject.

    Data Connection Type

    If you reverse tables to a logical model, select a required data connection type from the drop-down list.

    If you reverse tables to a physical model, the data connection type of the current model is displayed.

    Data Connection

    The name of the data connection. Select the required data connection.

    If you want to reverse a database from other data sources to an ER model, you need to create a data connection in the DGC Management Center to connect to the data source. For details on how to create data connections, see Creating Data Connections.

    Database

    The name of the database. Select a database from the drop-down list.

    Queue

    This parameter is displayed only for the DLI data connections. Select a DLI queue.

    Schema

    This parameter is displayed only for DWS data connections. You need to set Data Connection Type to DWS.

    Update Existing Table

    Whether to update the existing table if the table to be imported already exists in the ER model. When a table is imported, the system checks whether the table exists according to its code. During the import, only table creation and update are allowed.

    • No: If you select this option, the existing tables will not be updated.
    • Yes: If you select this option, the existing tables will be updated. If a table is in the Published state, you need to publish the table again after updating it so that the updated table can take effect.

    Data Table

    If you select All, all tables in the database are imported to the ER model.

    If you select Partial, not all tables in the database are imported to the ER model.

  4. Click Yes to start reversing the database.