![]() | ![]() |
Home |
|
|
WarehouseArchitect - User's Guide |
|
| Part 3 WarehouseArchitect Model |
|
| Chapter 19: Managing WarehouseArchitect Models |
Each table or view in a WAM, can have only one owner at a time.
| Use
| Description
|
|---|---|
| Managing object modifications in a WAM
| In a model where many users have access to the same objects, you can control object modifications by attaching owners to objects
|
| Generating a database for owner specific objects
| In a model where many users have access to the same objects, you can generate a database only for the objects that belong to a particular owner
|
You need to create a user before you can attach that user to an object.
The List of Users appears.
or
Click the New button.
or
Type a user name and click the Equals button in the code column.
You can attach one or more objects in a WAM to a user. When you attach an object to a user, the user becomes the owner of that object. You can attach the following objects to a user:
The List of Users appears.
The Attach Objects to the User dialog box appears.
There are two approaches for selecting an owner for a table or view:
or
Double-click a view in the model with the Pointer tool.
The table property sheet or the View property sheet appears.
or
Select Dictionary-->Views-->List of Views.
The List of Tables or the List of Views appears.
or
Select one or more views.
The following general rules apply to WAM:
The procedure that generates a database starts by checking the validity of the WAM. If an error is found, the database (or database generation script) is not generated.
When you check a WAM, two types of messages can result:
| Message
| Description
|
|---|---|
| Error
| Major problem that impedes database generation
|
| Warning
| Minor problem or recommendation
|
| Database constraint
| Problem linked to incompatibility with target database
|
| Old model specific checks S-Designor detected certain errors which you cannot recreate with PowerDesigner. If you are using a model created with S-Designor, you can detect these errors by selecting the Old Model Specific Checks checkbox.
|
| Option
| Description
|
|---|---|
| Manual correction
| Displays error and warning messages
|
| Simulate automatic correction
| Displays error and warning messages Displays description of automatic correction
|
| Automatic correction
| Displays error and warning messages Corrects certain errors automatically
|
The Check a Data Warehouse Model dialog box appears.
The Check Model Messages dialog box displays errors and warnings, based on your choice of check options.
If there are no errors in the model, the last message indicates that the model is correct. If any errors are found, the last message indicates that the model is incorrect.
You can restrict checks to the current submodel. This allows you to verify your own submodels independently of those belonging to other designers.
A confirmation box appears.
The Check a Data Warehouse Model dialog box appears.
The Check Model Messages dialog box displays errors and warnings, based on your choice of check options.
If there are no errors in the model, the last message indicates that the model is correct. If any errors are found, the last message indicates that the model is incorrect.
You can use the check procedure to locate problems in the WAM. The check results include suggestions for correcting problems.
You must choose one of the following correction options:
| Option
| Description
|
|---|---|
| Manual correction
| Displays error and warning messages
|
| Simulate automatic correction
| Displays error and warning messages Displays description of automatic correction
|
| Automatic correction
| Displays error and warning messages Corrects certain errors automatically
|
| Divergence in auto-migrated foreign keys Divergence in domain values, check parameters, validation rules, and extended attribute values for an auto-migrated foreign key, are only corrected if you have selected the corresponding auto-migrate options in Model options
|
You must always correct other errors manually.
The Check a Data Warehouse Model dialog box appears.
The Check Model Messages dialog box displays errors and warnings, based on your choice of check options.
The Description textbox indicates the object that is the source of the error or warning. The Suggestion textbox explains the reason for the error or warning and suggests a way to correct it.
A dialog box in which you can correct the problem appears.
You return to the Check Model Messages dialog box.
or
Click OK to return to the WAM workspace.
The Check a Data Warehouse Model dialog box appears.
The Check Model Messages dialog box displays errors and warnings, based on your choice of check options.
The Description textbox describes automatic correction for this error or warning.
The Check a Data Warehouse Model dialog box appears.
The Check Model Messages dialog box displays errors and warnings, based on your choice of check options.
The Description textbox describes automatic correction for this error or warning.
If you close the message window by clicking OK, all error and warning messages are stored in memory.
When the merge process finds two objects have the same code, you indicate whether or not the definition of the object in the second model should replace the definition in the current model.
A file selection dialog box displays.
A confirmation message box appears:
| Button
| Action
|
|---|---|
| Yes
| Replace model properties in current WAM with model properties from second WAM
|
| Yes to All
| Replace model properties in current WAM with model properties in second WAM and replace all objects in current WAM with objects from the second WAM, if objects have the same code
|
| No
| Do not replace model properties in current WAM with model properties from second WAM
|
| No to All
| Do not replace model properties in current WAM with model properties in second WAM and do not replace any objects in current WAM with objects from the second WAM, if objects have the same code
|
| Interrupt
| Discontinue merge
|
| Button
| Action
|
|---|---|
| Yes
| Replace object in current WAM with object from second WAM
|
| Yes to All
| Replace all objects in current WAM with objects from the second WAM, if objects have the same code
|
| No
| Do not replace object in current WAM with object from second WAM
|
| No to All
| Do not replace any objects in the current WAM with objects from the second WAM
|
| Interrupt
| Discontinue merge
|
| Merging unique codes with a non-unique codes If you selected the model option Unique Code for the current WAM and did not select this model option in the second WAM, the merge process assigns unique codes automatically. An information box displays a message telling you that a reference will be assigned a new code.
|
The following objects are imported directly:
| Annotation |
| Business rule |
| Column |
| Description |
| Domain |
| External column |
| External database |
| External table |
| Index |
| Key |
| PowerBuilder extended attribute |
| Reference |
| Referential integrity constraint |
| Table |
| Tablespace |
| Target database |
| Text |
In addition, the import process translates ERwin objects into WAM objects as follows:
| Object in an Erwin model
| Imported object in a WAM
|
|---|---|
| Fact
| Fact table or table*
|
| Dimension
| Dimension table or table*
|
| Outrigger
| Dimension table or table*
|
| Stored display and subject area
| Submodel
|
| Relationship and subtype relationship
| Reference
|
| Valid value
| Check parameter
|
| Segment
| Storage
|
You can retrieve the original fact and dimension tables by selecting Retrieve Multidimensional objects in the WAM menu.
A standard file selection dialog box displays.
A message box lists all imported objects.
|
|