Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Chapter 18:  Creating a WAM for Sybase Adaptive Server IQ [Table of Contents] Chapter 20:  Reverse Engineering

WarehouseArchitect - User's Guide

[-] Part 3 WarehouseArchitect Model
[-] Chapter 19: Managing WarehouseArchitect Models

Chapter 19
Managing WarehouseArchitect Models

About this chapterThis chapter describes how to manage objects in a WarehouseArchitect Model (WAM) with users and object owners. It also describes checking the validity of a WAM and merging WAM.

Managing users and owners

The user is a name that identifies a person or group working with objects in a WAM, which has the ability to own other objects in the WAM. You can create a user and either attach an object to the user, or select a user to attach to an object.

OwnersWhen a user is attached to an object, it becomes the owner of that object. Each object can only have one owner at a time. Only an object owner has the right to modify the object. In a WAM, you use the owner relationship to help to organize and keep track of modifications to objects in the model.

ExampleWhen you create a table, by default the object has no owner. You can select your user name from a list of users, and attach it to the table. You then become the table's owner.

Owners for tables and viewsIn a WAM, the following objects can have owners:

Each table or view in a WAM, can have only one owner at a time.

Owner usesYou can use object owners for the following purposes:

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



Creating a user

You need to create a user before you can attach that user to an object.

Attaching an object to a user

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:

Selecting an object owner

There are two approaches for selecting an owner for a table or view:

Selecting an owner for a table or view

Selecting a table or view for an owner

Checking a WAM

You can check the validity of a WAM at any time.

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.

WAM check options

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



You choose what types of messages to display for the following WAM objects:


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.


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



Checking a global WAM

Checking a WAM submodel

You can restrict checks to the current submodel. This allows you to verify your own submodels independently of those belonging to other designers.

Making corrections based on WAM check results

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



Automatic correction fixes the following types of errors and warnings:

You must always correct other errors manually.

Making manual corrections to a WAM

Simulating automatic corrections to a WAM

Making automatic corrections to the WAM

raster

The Description textbox describes automatic correction for this error or warning.

  1. Click OK to return to the WAM workspace.

Displaying errors and warnings

If you close the message window by clicking OK, all error and warning messages are stored in memory.

Merging two WAM

You can merge two WAM. The merge makes it possible to form a single model that combines design efforts performed independently by several team members.

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.

Importing an ERwin model into a WAM

Objects importedYou can import a model built with ERwin into a WAM.

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



* Imported as a table if object was in automatic mode in ERwin.

You can retrieve the original fact and dimension tables by selecting Retrieve Multidimensional objects in the WAM menu.

Objects not importedYou cannot import User-Defined Properties, Rules, ERwin triggers, ERwin reports, or ER1 files. If you are using ERwin/SQL, generate a database from your ER1 file and then reverse engineer that database into a WAM.

ERwin external databasesWhen you import external databases, they are not displayed in the workspace. You can make them visible by selecting the Display checkbox in the List of External Tables.


Chapter 18:  Creating a WAM for Sybase Adaptive Server IQ [Table of Contents] Chapter 20:  Reverse Engineering