< Previous | Next >

Transforming the logical data model to a physical data model

You can use the workbench to transform a logical data model to a physical data model.
There are several ways to specify transformation options:

In this exercise you will simply transform the sample HR.ldm logical data model to a physical data model without changing any transformation settings in the Preferences window or the Properties view. In a later exercise, you will change the transformation properties of some of the objects in the logical data model, then transform again to see how these properties affect the transformation.

To transform the logical data model to a physical data model:

  1. Optional: Right-click the HR package in the HR.ldm logical data model, and select Analyze Model. Keep the default model analysis rules and click Finish.

    You should always analyze a data model before you transform it to avoid unexpected results. The HR.ldm model by default contains some warnings, but it should not contain any errors.

  2. In the Data Project Explorer, select the HR.ldm logical data model.
  3. Click Data > Transform > Physical Data Model from the main menu. You can also use the Transform To Physical Data Model Transform to Physical Data Model toolbar icon toolbar button. The Transform to Physical Data Model wizard opens.
  4. On the Target Physical Data Model page, keep the Create new model check box checked. In this case, you do not have an existing physical data model. However, if you were working in a team environment where you wanted to partition a large logical data model, you could use the Update existing model option to transform multiple logical data models into one physical data model. You can also use this feature to modify a logical data model and propagate the changes to an existing physical data model.
  5. Click Next.
  6. On the Physical Data Model File page, type HR_physical in the File name field, and keep the default settings in the other fields.
    Screen capture showing the transform wizard, as described.
  7. Click Next.
  8. On the Options page, type HR_schema in the Schema name field. This will create a schema named HR_schema in your physical data model after the transformation. Keep the defaults for the other fields on this page, and click Next. On the Output page, you will see a message indicating that the transformation to physical model is complete.
  9. Click Finish to save the physical data model. The HR_physical.dbm physical data model file is created and displayed in the Data Models folder under the Design project in the Data Project Explorer. The physical data model file opens in the physical data model editor.

  10. Expand the HR_physical.dbm node, the Database node, and the HR_schema node.
  11. Right-click the Diagrams folder, and select New Overview Diagram.
  12. In the window that opens, click the check box next to HR_schema in the Include selected elements list. This highlights the HR_schema object and all objects that are contained in the schema. You can use diagrams to work with a subset of elements that are contained in a model. In this case the diagram will contain all elements in the HR_schema object.
  13. Keep all other defaults and click OK. The new HR_schema diagram is displayed in the Data Project Explorer and opens in the diagram editor.
  14. Click the HR_schema tab in the editor area to see the diagram.
  15. Click in a blank area of the diagram.
  16. In the Properties view, verify that diagram properties are set so that column objects are displayed in the editor:
    1. Select Show key.
    2. Select Show non-key.
  17. Double-click the HR_schema tab to maximize the diagram editor view. Notice that the transformation created four tables, mapping closely to the four entities in the HR.ldm logical data model.
    Screen capture showing the HR_schema diagram, as described.
  18. Save and close the HR_schema diagram and the HR_physical physical data model.
< Previous | Next >

Feedback