Step 1: Open your data model in CA ERwin Data Modeler and switch from the Logical view to Physical or Dimensional view. Enter the business description for each column into the corresponding “Comment” column property as shown below.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2qsnKzpzKC8lT0kLu26bGmrzqx4yD15AlQzU6wzuvawZ9oWZZ50n4TCP9vVFgQ-rL9WH_EtEd2OzLnK0lwv1Y46kq-IX4edTbIIPxZUL0Qbzjyur73wP9hQhzxadhDTnQkoSGxUFiSg8d/s400/blog+1.bmp)
Step 2: If your target database server supports comments, ERwin can generate comments in the schema DDL script. In order to demonstrate this functionality, we will use ERwin’s Forward Engineer functionality to push our data model to an Oracle 11g database server. Make sure to check the “Comments” check-box under “Other Options” in the Forward Engineer Schema Generation wizard.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFLYfMJXPbnR8FNNM7hNG-CqZhZCknCsqi_94ddgvqSAdo1Y-ojrnpxH62bxtQB4JxMh8Sr1QqAxim7XW5Chj58fY76FhttcB1bATNQsQj3U-ixUPxM5XQZ9Ib6r4kB7kq4KtFGRvhx8JS/s400/blog+2.bmp)
Step 3: The comments are now available in the database. The screenshot below shows that the comments are visible in Oracle’s SQL Developer. Thus, the data dictionary and all its business descriptions are now fully integrated into the meta data of the database objects.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi02EJLUEPCcJkaowKdTcEKOAF3SCqGvRyZVcmCnt1amTclVLU8nnnse6brmELNFjeO0qUUcrNhQFIxBv2cW5qc4AbxN68WTo2u2oFZuBi470aajCvoEicjuEMFpoZlUZ-LJf66t8-JPvVi/s400/blog+3.bmp)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTwBAuibNVci228jJC1SzkTPYuj8RwtlETxsKKJzJtjp9lRLByz6iQhggNukaEN_bZ2UTAN-VgSvEJCPa5dwJPR9iAmGs5RkOXs7HtXPyl2SPBEqbINCauJdG2sJnzCBYTi5uqc-cascCF/s400/blog+4.bmp)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk2wtPVQ4i21SXr8QBkvSkjQflZFygk63JMzpfMls_3eWYnWBTUmWefcs2mBFA41JmdLL264oOBrTXHfm-ZiQhvI1tBQViSbpyn2BPhV4M5yWwsdkg-2XKzhq4ZXIUC-vMNgsn5AalElSn/s400/blog+4.5.bmp)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2J_vuUI3jyKHW_TXyJc0uHIFDwS20VzX3M28H9I6jRG4_zLxWyyNdSL8g9QG9dqzLmO7wSUKboEPMda_W9nfV2_o-g2hO0GgT_0wWY5RpCJ0TcXkLvLgzCpH2PQDT4LbdBO25I5VEl-fc/s400/blog+5.bmp)
In summary, maintaining the business descriptions for data elements within the data modeling tool has the following advantages:
- The business descriptions will only have to be maintained in one place (i.e. in the data modeling tool).
- The data dictionary is fully integrated into the meta data for database objects (if supported by the RDBMS).
- An official data dictionary document or web page can easily be created by the data modeling tool.
No comments:
Post a Comment