...

I S D

by user

on
Category: Documents
61

views

Report

Comments

Description

Transcript

I S D
IMPORTING INFOSPHERE DATA
ARCHITECT MODELS
INFORMATION SERVER V8.7
Prepared by: March Haber, [email protected]
Last Updated: January, 2012
IBM MetaData Workbench Enablement Series
Table of Contents:
Table of Contents: ...................................................................................................................................... 2
Introduction .................................................................................................................................................. 3
Objective ...................................................................................................................................................... 3
Logical and Physical Models........................................................................................................................ 4
IBM InfoSphere Metadata Asset Manager ................................................................................................... 5
Importing Data Models................................................................................................................................. 6
IBM InfoSphere Data Architect Metabroker .......................................................................................... 6
Import InfoSphere Data Architect Models.............................................................................................. 7
Re-Import InfoSphere Data Model ....................................................................................................... 11
Command Line Import of InfoSphere Data Models ................................................................................... 14
Review and Publish Data Models............................................................................................................... 16
Understanding and Displaying Data Models .............................................................................................. 19
Browsing Physical Models from the Metadata Workbench.................................................................. 20
Viewing Data Model Implemented Relationships ................................................................................ 21
Managing Logical and Physical Models using IBM InfoSphere Metadata Workbench....................... 22
Deleting Logical Models, Physical Models and Database Systems ........................................................... 23
Defining Logical and Physical Model Implementation .............................................................................. 26
Summary .................................................................................................................................................... 28
Page 2 of 29
IBM MetaData Workbench Enablement Series
Introduction
The Metadata Workbench presents a 360˚ view of Data Models and Sources, their defined meaning
from Business Glossary and usage within DataStage ETL development.
Data is at the core of Information Server and therefore proper management and understanding of such
is essential and remains at the hub of the IBM Information Server. For purposes of understanding and
identification it becomes imperative that care be taken in how data structures are imported into the IBM
Information Server.
Following the steps outlined below will ensure proper display of Data Models and their implemented
Database Systems.
Objective
Learn how to import Logical and Physical Data Models, understanding their structures and
dependencies within the IBM Information Server applications.
Page 3 of 29
IBM MetaData Workbench Enablement Series
Logical and Physical Models
Logical or Physical Models may be assigned a Business Term, Business Label or a Data Steward via
InfoSphere Business Glossary or InfoSphere MetaData Workbench, in addition to allowing the
authoring of its Description or Business Name.
Logical Models include Entities and Attributes, and are implemented by Physical Models or Database
Schemas.
Physical Models include Design Tables and Columns, and are implemented by a Database Schema,
while they implement a Logical Model.
When imported, the following components and relationships are captured and defined:
Logical Model
Logical representation of data objects which relate to a business
domain and govern their associations in real-world applications.
Logical models consist of entities and relationships, and are
implemented by a physical model or database schema.
Logical Entity
Represent the data structures of the model. An entity defines
attributes, keys and constraints, and is implemented by a Design
Table or Database Table.
Logical Attribute
A unit of data or characteristic of an entity which defines purpose
and structure. An attribute is implemented by a Design Column or
by a Database Column.
Physical Model
A design schema for information assets which defines the data
structures and their relationships. A physical data model
implements a Logical Model and is implemented by a Database
Schema.
Design Table
Represents a table structure within the Physical Model. The design
table defines columns, candidate keys, and foreign key
relationships. A design table implements a Logical Entity and is
implemented by a Database Table.
Design Column
A property or characteristic of a design table that defines its
structure. A design column implements a Logical Attribute and is
implemented by a Database Column.
Subject Area
A focused business area or domain which associates and groups
Logical Entities. A Logical Entity may be included in more than
one subject area.
Page 4 of 29
IBM MetaData Workbench Enablement Series
IBM InfoSphere Metadata Asset Manager
The InfoSphere Metadata Asset Manager is installed as part of the IBM InfoSphere Information Server
and is accessed via a Web Browser. The default URL to access the application is:
http://ServerName:9080/ibm/imam/console.
The import process includes reading the InfoSphere Data Architect Logical or Physical Data Model file,
preview and publishing of the imported metadata to the Information Server Repository. The tool plays an
important role of satisfying the data quality, business and development requirements.
For the import of InfoSphere Data Architect Data Models, in addition to installing the Metadata Asset
Manager within the Services Tier, one must install the Metadata Interchange Agent on the Client Tier.
The Metadata Interchange Agent will install the underlying import bridges and brokers.
A user performing the import of Data Models must be assigned the role of Common Metadata Importer.
The Metadata Asset Manager must be configured to include an Interchange Server prior to starting the
import process. The Interchange Server designates the computers where the bridges and connectors have
been installed. Click here to view instructions on defining an Interchange Server.
Refer here for complete information on the Metadata Asset Manager.
Page 5 of 29
IBM MetaData Workbench Enablement Series
Importing Data Models
IBM InfoSphere Data Architect Metabroker
One may import InfoSphere Data Models using the import broker. The import of a Logical Model
utilizes the LDM file created within the modeling tool and will create Logical Models, Logical
Entities and Logical Attributes. The import of a Physical Model utilizes the DBM file created within
the modeling tool and will create Physical Models, Design Tables, Design Columns, Database
Schema, Database Table and Database Column artifacts and their relationships.
The import process will attempt to set the implementation relationship between the imported Logical
Model and Physical Model artifacts. Additionally, a user may set this relationship within the
Metadata Asset Manager; follow the Define Model Implementation steps below, to manually define
these relationsips.
Subsequent imports will synchronize the underlying metadata, to reflect any changes in the Model
artifacts, provided the names of the assets do not change.
Requirements
During the import process, the user will need to supply the following information:
•
InfoSphere Data Architect Logical Model file or InfoSphere Data Architect Physical Model
file
Page 6 of 29
IBM MetaData Workbench Enablement Series
Import InfoSphere Data Architect Models
Launch the Metadata Asset Manager
•
•
•
•
Launch the Metadata Asset Manager by browsing to the following default URL:
http://Server:9080/ibm/imam/console
Logon to the Metadata Asset Manager
Select the Import tab, to begin a new import process.
Click New Import Area to define a new area for the import of InfoSphere Data Architect
Models. The import area allows subsequent re-import and management of the imported
model.
o Enter a name for the import area. This name uniquely identifies the import
process for future re-import or administration.
o Optional: Enter a description for the import area to identify the model to be
imported or the import process.
o Select a previously defined metadata interchange server. The metadata
interchange server defines the connectivity between the Metadata Asset Manager
and the InfoSphere Data Model file.
o Browse and expand the IBM folder, and select the IBM InfoSPhere Data
Architect Metabroker.
o Click Next to proceed.
Page 7 of 29
IBM MetaData Workbench Enablement Series
•
Specify the values for the import parameters. The parameters identify the specific model
to import.
o
o
o
Browse and select the File Location.
• Select Metadata Interchange Server to browse the File System where
the Metadata Interchange Agent has been installed.
• Select Local Computer to browse the File System of the local
computer.
• Click the Browse icon to browse and select the InfoSphere Data
Architect Logical Model file (LDM) or the InfoSphere Data Architect
Physical Model file (DBM). This example selects a Logical Data
Model file.
Optional: Select Import Logical Data Model and Implementation
Relationships to automatically detect and associate the imported Logical Model
with previously imported Physical Model artifacts.
Click Next to proceed.
Page 8 of 29
IBM MetaData Workbench Enablement Series
•
Specify the values for the identity parameters. The identity parameters include the host
system, which helps a user identify and classify information within the IBM InfoSphere
Information Server.
o
o
o
o
o
o
o
Browse to select an existing host system or enter the name of the host system.
The host system must reflect the server where the implemented database has
been deployed.
Browse to select an existing database system or enter the name of the database
system which implements the Physical Model.
Optional: Select Use database name to override bridge value parameters or
select Use database name if bridge value is empty to determine how the
database name is applied to the imported information assets.
Enter the name of the database management system (DBMS) which hosts the
database system, for example, DB2.
Optional: Select Use DBMS name to override bridge value parameters or
select Use DBMS name if bridge value is empty to determine how the DBMS
name is applied to the imported information assets.
Optional: Enter the name of the database management system (DBMS) server
instance name, which hosts the database management system.
Click Next to proceed.
Page 9 of 29
IBM MetaData Workbench Enablement Series
•
Complete the import event. This step allows you to preview the imported assets prior to
publishing them to the IBM InfoSphere Information Server.
o
o
o
Optional: Enter a description for this specific Import Event.
Select Express Import to import the Data Model to the staging area and
automatically analyze and publish the imported metadata to the Information
Server Repository.
Optional: Select Managed Import to import the Data Model to the staging area,
from where the imported metadata may be analyzed and reviewed prior to
publishing to the Information Server Repository.
o
o
Click Import to complete the process.
The Summary Results displays. Click OK to close the import dialog.
o
If warnings occurred during the publication process, the Data Model will be
imported into the Staging Area only, and not published to the InfoSphere
Metadata Repository.
Follow the Review and Publication steps below, to
publish the Data Model.
Create a new Import Area for the import of the InfoSphere Physical Data Model
(DBM) file, following the same steps delineating above.
o
Page 10 of 29
IBM MetaData Workbench Enablement Series
Re-Import InfoSphere Data Model
This process allows for the re-import of a previously imported Logical or Physical Data Model. Each
import and re-import is identified as a unique event, allowing the user to track and analyze differences
of the imported metadata, and display import and asset summary information.
Launch the Metadata Asset Manager
•
•
•
Launch the Metadata Asset Manager by browsing to the following default URL:
http://Server:9080/ibm/imam/console
Logon to the Metadata Asset Manager
Select the Import tab, to select a previous import area. Import areas define a specific
import of a Data Model.
•
Click Open to open the import area, and re-import a Data Model. The Import Area
dialog appears.
•
•
Optional: Click More Actions | Delete Import Area to remove the selected import area.
Optional: Click More Actions | Edit Properties to edit the Name or Description of the
selected import area.
Page 11 of 29
IBM MetaData Workbench Enablement Series
•
Select the Staged Imports tab. Detailed information of the previous import is displayed,
including summary information, statistical information and asset details.
•
Click Reimport from the toolbar, to start the import process within the same Import
Area. The reimport dialog appears, displaying the import parameters of the previous
import.
o
o
Browse and select the File Location. The InfoSphere Data Architect Logical or
Physical Data File must be re-selected.
• Select Metadata Interchange Server to browse the File System where
the Metadata Interchange Agent has been installed.
• Select Local Computer to browse the File System of the local computer.
• Click the Browse icon to browse and select the Data Model file. This
example selects an InfoSphere Logical Data (LDM) file.
Click Next to proceed.
Page 12 of 29
IBM MetaData Workbench Enablement Series
•
The previously defined Identity Parameters are displayed. These parameters are readonly during a re-import. Click Next to proceed.
• Complete the re-import event. This step allows you to preview the report asset prior to
publishing it to the IBM InfoSphere Information Server.
o Optional: Edit the description for this specific Import Event.
o Select Express Import to import the Model to the staging area and
automatically analyze and publish the imported metadata to the Information
Server Repository.
o Optional: Select Managed Import to import the Model to the staging area, from
where the imported metadata may be analyzed and reviewed prior to publishing
to the Information Server Repository.
o Click Reimport to complete the process.
Page 13 of 29
IBM MetaData Workbench Enablement Series
Command Line Import of InfoSphere Data Models
Previously created Import Areas may be subsequently imported via the command line. The Import
Area contains the required import parameters and connection details to perform a re-import.
The command line support is available on Windows computers of the Client, Engine, and Services
tiers. The imam.bat file is located in the \ASBServer\bin folder for Services Tier installations and in
the \ASBNode\bin folder for Engine or Client tier installations.
Click here for further information.
The following instructions are for invoking a command line import from a Microsoft Windows
Client system:
•
•
Click Start | Run and type cmd to invoke the Command Shell
Browse to the following directory: \IBM\InformationServer\ASBNode\bin, where
\IBM\InformationServer is the default installation directory
• Type the following command to perform an import via the command line:
imam.bat –u USER –w PASSWORD –s MY_SERVER –p 9080 –a
reimport –i "IDA Model" –l "c:/tmp/IDA Model.ldm"
• The following parameters are required:
Parameter (Long)
Parameter (Short)
Description
username
u
Name of an Information Server user with the
required Command Metadata Importer role
assigned.
password
w
Password for the user specified above.
server
s
Name of the Information Server host computer,
the name referenced in the URL for the
Metadata Asset Manager
port
p
The communication port for the above specified
Information Server host computer.
authfile
authfile
Optional: specify the username and password
credentials within an encrypted authorization
file. If an authorization file is used, the
username and password are not required
parameters of the imam command.
action
a
The specific action to be performed, for
example reimport
.
The reimport action requires the Import Area
parameter.
importArea
i
The name of a previously created Import Area.
The name of the Import Area should be encased
in double-quotes if it contains blank spaces.
Page 14 of 29
IBM MetaData Workbench Enablement Series
localFile
•
l
The location and name of the Data Model file
for re-import. The name of the Data Model file
should be encased in double-quotes if it
contains blank spaces.
When successful, the resulting statistics are displayed.
Page 15 of 29
IBM MetaData Workbench Enablement Series
Review and Publish Data Models
This process allows for the review of previous imports, their analysis and publication to the InfoSphere
Metadata Repository.
Launch the Metadata Asset Manager
•
•
•
•
•
Launch the Metadata Asset Manager by browsing to the following default URL:
http://Server:9080/ibm/imam/console
Logon to the Metadata Asset Manager
Select the Import tab, to select a previous import area. Import areas define a specific
import of Data Models.
Click Open to open the import area, and view the history of previous imports.
The Overview area of the Import Area displays. The overview displays the Import Area
details, including description, selected import bridge and when it was created, and a
history of all import events.
Page 16 of 29
IBM MetaData Workbench Enablement Series
•
Click the Staged Imports tab, to view the specific details of any import event or to
publish an import event to the InfoSphere Metadata Repository.
o
Select the desired Import Area. Click the drop-down arrow, to select from the
previous import events associated with the Import Area.
Summary: Displays the details of the selected import event, including when the
import event was triggered and shared to the InfoSphere Metadata Repository.
o Statistics: Display the type and number of Assets identified during the import
process, including invalid or duplicated Assets.
o Browse: Display the specific Asset information captured during the Import
Event.
Click Preview, to analyze the selected Import Event prior to publishing its content to the
InfoSphere Metadata Repository. The analysis will detail which Assets will be created,
updated or deleted from the InfoSphere Metadata Repository.
o
•
Page 17 of 29
IBM MetaData Workbench Enablement Series
•
•
•
Click Share to Repository, to publish the content of the Import Event to the InfoSphere
Metadata Repository.
Click Close to close the Preview dialog, and return to the Staged Import display of the
Import Area.
Optional: Select More Actions | Compare with Previous to compare between two
Import Events. The comparison report allows for the visual display of changes, additions
or deletions, of the imported Data Model.
Page 18 of 29
IBM MetaData Workbench Enablement Series
Understanding and Displaying Data Models
Data Models assets may be viewed from within the IBM InfoSphere MetaData Workbench, as well as
IBM InfoSphere Business Glossary, including Logical Model, Logical Entity, Logical Attribute, Physical
Model, Design Table, Design Column and their relationships.
Browsing Logical Models from the Metadata Workbench
From the Left Navigation Pane of the Metadata Workbench, select the Asset Type "Logical Data
Models" to view a list of Models, their sub-Models and contained Entities.
Expand a Model to view its complete hierarchy, including Logical Entities and Logical
Attributes.
Select any Asset to view its details and understand the Asset meaning, owner or usage. A
Logical Model is implemented by a Physical Model or a Database Schema.
Right Click any Asset to view a menu of actionable items, including Model View Report and
Editing functionality.
Page 19 of 29
IBM MetaData Workbench Enablement Series
Browsing Physical Models from the Metadata Workbench
From the Left Navigation Pane of the Metadata Workbench, select the Asset Type "Physical
Data Models" to view a list of Models and their contained Design Tables.
Expand a Model to view its complete hierarchy, including Design Tables and Design Attributes.
Select any Asset to view its details and understand the Asset meaning, owner or usage. A
Physical Model implements a Logical Model and is implemented by a Database Schema.
Right Click any Asset to view a menu of actionable items, including Model View Report and
Editing functionality.
Page 20 of 29
IBM MetaData Workbench Enablement Series
Viewing Data Model Implemented Relationships
When viewing the details of a Logical or Physical Model, one may invoke a Model Viewer to
display a hierarchal view of the Model relationship. Select Model View from the Asset action
item menu. Model Viewer may also be displayed for Logical Entities, Logical Attributes,
Design Tables or Design Columns.
When invoking Data Lineage analysis reports on a Database Table, one may view the Logical or
Physical Model which implements the Table.
Page 21 of 29
IBM MetaData Workbench Enablement Series
Managing Logical and Physical Models using IBM InfoSphere Metadata Workbench
When viewing a Logical or Physical Model from the Metadata Workbench, the following
management tasks are available from the Action Menu or from the Right Navigation Pane.
Edit
Supports the ability to edit the Description or Custom
Attribute properties of the Asset.
Additionally allows for the upload of a static image to be
displayed and associated with the Model.
Edit Alias (Business Name)
Supports the ability to define a Business Name or Alias for
the Asset.
Business Name appears prominently within Business Lineage
Analysis Reports.
Assign Term
Supports the ability to assign an existing Business Glossary
Term to the Asset, thus extending the meaning of the Asset to
the Enterprise Definition.
Assign Label
Support the ability to assign an existing Business Label to the
Asset, thus tagging the Database Asset.
Assign Steward
Support the ability to assign an existing Steward to the Asset,
thus defining an owner for the Database Asset.
Add Note
Support the ability for a User to author a remark or notation
for any purpose, including informative information, task
details or reference.
Page 22 of 29
IBM MetaData Workbench Enablement Series
Deleting Logical Models, Physical Models and Database Systems
Models, Host Systems and Database Systems may be removed from the IBM InfoSphere Metadata Asset
Manager application.
•
•
Browse to the Metadata Asset Manager: http://ServerName:9080/ibm/imam/console, and logon
to the application with the appropriate credentials, which must include Common Metadata
Administrator.
Select the Repository Management Tab.
Logical Data Models
• Expand Browse Assets from the left navigation pane. Select Logical Data Models. A list of
Models will display.
• Select a Logical Model to view the Asset details. Expand a specific Model to view its contained
Entities and Attributes.
• Optional: Expand the Usage section of the Asset details, to view the dependency upon the
Database by other components. Click Retrieve Usage to update the list of dependencies.
•
•
Select Delete from the toolbar menu item to remove the selected Asset. Click Yes to confirm
the removal of the selected Asset. Deletion of a Model will additionally remove the contained
Entities, Attributes and Subject Areas.
Optional: Select More Actions from the toolbar menu to view the Asset within the IBM
InfoSphere Metadata Workbench.
Page 23 of 29
IBM MetaData Workbench Enablement Series
Physical Data Models
• Expand Browse Assets from the left navigation pane. Select Physical Data Models. A list of
Models will display.
• Select a Physical Model to view the Asset details. Expand a specific Model to view its
contained Design Tables and Columns.
• Optional: Expand the Usage section of the Asset details, to view the dependency upon the
Database by other components. Click Retrieve Usage to update the list of dependencies.
•
•
Select Delete from the toolbar menu item to remove the selected Asset. Click Yes to confirm
the removal of the selected Asset. Deletion of a Model will additionally remove the contained
Entities, Attributes and Subject Areas.
Optional: Select More Actions from the toolbar menu to view the Asset within the IBM
InfoSphere Metadata Workbench.
Page 24 of 29
IBM MetaData Workbench Enablement Series
Host System and Database Systems
• Expand Browse Assets from the left navigation pane. Select Implemented Data Resources. A
list of Host Systems will display.
• Select and expand a specific Host System to view its contained Database Systems.
• Select a Database System to view the Asset details.
• Optional: Expand the Usage section of the Asset details, to view the dependency upon the
Database by other components. Click Retrieve Usage to update the list of dependencies.
•
•
Select Delete from the toolbar menu item to remove the selected Asset. Click Yes to confirm
the removal of the selected Asset. Deletion of a Database will additionally remove the
contained Schema, Table, View and Columns.
Optional: Select More Actions from the toolbar menu to view the Asset within the IBM
InfoSphere Metadata Workbench.
Page 25 of 29
IBM MetaData Workbench Enablement Series
Defining Logical and Physical Model Implementation
Logical Models are implemented by a Physical Model or Database Schema. Whereas this relationship is
typically set during the import process, there may be a need to set this relationship manually.
A user may set or remove an Implementation Relationship between Logical Models, Physical Models and
Database Schemas within the Metadata Asset Manager application. The implementation relationship
is additionally set for all contained assets, based on their names and type.
A user performing this task must have the Common Metadata Administrator.
•
•
•
•
Browse to the Metadata Asset Manager: http://ServerName:9080/ibm/imam/console, and logon
to the application with the appropriate credentials, which must include Common Metadata
Administrator.
Select the Repository Management Tab.
Select a Logical Model to view the Asset details. Expand a specific Model to view its contained
Entities and Attributes.
Expand the Implemented By section of the Asset details, to view the defined implementation
relationship to a Physical Model or Database Schema.
Page 26 of 29
IBM MetaData Workbench Enablement Series
•
Click New Implementation Relationship to manually set an implementation relationship
between a Logical Model, Physical Model or Database Schema. All contained Model or
Schema Assets will additionally set their implementation relationship only in cases where the
Name of the Asset matches.
Select the Asset Type, Physical Data Model or Database Schema, which is the target of
the implementation relationship.
o Browse and select a specific Asset.
o Click OK to set the implementation relationship.
Click Remove Relationship to remove a previously defined implementation relationship.
Click View Contained Relationships to manually set the implementation relationship for
contained Assets, for example a Logical Entity and Database Table.
o
•
•
o
o
o
o
o
The list of contained Assets display.
Optionally: Select Matching Criteria, to filter the list of contained Assets.
Click and select a specific candidate Asset from the list of Sources, and drag it onto the
target Asset for which you wish to create the implementation relationship. For
example, selecting a Logical Entity and dropping it onto a Database Table.
Optional: Click to Enable one-to-many matching to map a candidate Asset to
multiple target Assets.
Review the implementation relationships which have been defined. Click Save to save
the newly defined relationships and close the dialog.
Page 27 of 29
IBM MetaData Workbench Enablement Series
Summary
It is good practice to import the data structures of all sources into the IBM Information Server. This
allows for a single point of reference for governance, development, definition and reporting. Models
may be classified within Business Glossary; enriching their understanding, analyzed within
Information Analyzer or depicted within a Data Lineage report or Model View report from the
Metadata Workbench.
Page 28 of 29
IBM MetaData Workbench Enablement Series
Page 29 of 29
Fly UP