Session: I01 Data Modeling with Rational Data Architect

Anson Kokkat IBM

May 19, 2008 • 9:45 a.m. – 10:45 a.m. Platform: Multiplatform

Design your database in the context of the IBM Software Development Platform. Understand how to establish the bridge between software design and information design. Deploy the database and create and map your service interfaces to it. Learn how Service Oriented Architectures influence information design.

1 Agenda

• What is Rational Data Architect • Rational Data Architect Integrations • Application Modeling and Data Modeling • Logical and Physical Database Design • IBM Data Studio Roadmap • What do I do now? • Where do I get help • Demo

2

-understand SOA, XML, and information relationship

-learn to work with UML, logical and physical data models

-manage change at any level of you design and development process

-lessons to consider in information design for SOA

-learn to document your decisions

2 What is Rational Data Architect?

Rational Data Architect simplifies data modeling and integration design enabling architects to discover, model, visualize and relate diverse and distributed data assets. .

3

Rational Data Architect is more than a data modeling tool. -It is a truly homogeneous product. Supports most major database vendors like Oracle, SQL Server, MySQL, Teradata, etc. It is also a: -documentation tool. It helps you to create diagrams of existing database structures -Information Integration tool. Helps to define federation concepts -XML mapping tool. Map database schemas to SOA structures -Code Development tool. Create valid DB2 SQL code. IBM Data Studio is the product that does all this outside of RDA. -Traceability tool. Know why, what and when for every change.

3 Key Messages for RDA

• Create logical and physical data models. • Discover, explore and visualize the structure of data sources. • Discover potential relationships and identify relationships (through mapping) between disparate data sources. • Compare and synchronize the structure of two data sources/targets. • Analyze models and data sources for conformance to enterprise standards. • New release features: integrations with IBM Rational Software Architect, 3.2.2; IBM Information Server and Industry Models data models now built on top of RDA; additional mappings and expanded support for XML, DB2 V9, Informix, Oracle, Sybase, and MySQL.

4

4 Agenda

• What is Rational Data Architect • Rational Data Architect Integrations • Application Modeling and Data Modeling • Logical and Physical Database Design • IBM Data Studio Roadmap • What do I do now? • Where do I get help • Demo

5

5 Rational Data Architect Integrations

IBM Software Development Platform IBM WebSphere Business Platform IBM Data Studio Rational ƒ Transform data objects ƒ Physical Data Modeling ƒ Model transformation ƒ Project Reuse ƒ Runs in the same environment ƒ Provide controlled DB updates ƒ Dynamic link to/from requirements ƒ Manage deployment ƒ Team support Physical DB support ƒ Create data services ƒ Versioning

ƒ Physical database design ƒ Database SQL development ƒ Mapping between DBMS ƒ Synchronization with the DBMS IBM Industry Solutions ƒ Forward and reverse engineering ƒ IBM DB2 LUW ƒ IBM DB2 for z ƒ Reuse of data modeling ƒ IBM DB2 for i5 Rational Data Architect ƒ Generation of physical models ƒ IBM Informix DS ƒ Banking data model ƒ Microsoft SQL Server ƒ Insurance data model ƒ Oracle ƒ Retail data model ƒ Sybase ASE ƒ Healthcare data model ƒ Teradata ƒ Financial markets data model ƒ MySQL ƒ Telecommunication data model ƒ generic JDBC interface

IBM Information Server Open Source ƒ Glossary synchronization Other Vendor’s Tools ƒ Team support (CVS) ƒ Physical data model reuse ƒ Versioning (CVS) ƒ Data model generation ƒ Import and Export of data models ƒ Eclipse WTP/DTP ƒ Federation design ƒ CA ERwin ƒ Eclipse BIRT reporting ƒ Mapping of remote DB’s ƒ Sybase PowerDesigner ƒ MySQL support ƒ Embarcadero ER Studio

6

RDA integrates well with all major IBM platforms and many tools and databases from other vendors in addition to open source.

The IBM WebSphere Business Platform is a solution for business oriented application design. RDA understands data objects defined in business processes and is able to import them into data models where they can be further specified and transformed back into the business objects to be used by process architects.

Many databases are natively supported by RDA including all major IBM databases (DB2 and Informix, Cloudscape) and databases from Microsoft, Oracle, Sybase, Teradata, and My SQL. In addition RDA provides a generic JDBC interface for other database types. RDA understands federation concepts in databases.

RDA is not only based on open source, it provides many interfaces to it. For example reporting is based on the open source Eclipse BIRT technology giving RDA the benefit of many output formats available via the open source community.

IBM Data Studio combined with RDA is used as the tool for the design phase. It uses physically the same data models and the same projects as RDA and simplifies the deployment and management for IBM databases.

Everyone implementing custom applications will welcome integrations between RDA and the IBM Software Development Platform that provide every software developer with direct views to the database design. The Software Development Platform also provides common tools for all team members for requirement management, version control, and team support.

IBM Information Server provides market leading capabilities for any kind of data migration and integration. RDA is the link between the definition of business terms in glossary and physical implementation of source and target models.

Most vertical industries have a big portion of data models common between companies satisfying the core needs for data structures. IBM provides such solutions for many industries based on RDA data modeling.

We understand that very few customers start with new solutions and provide import and export functionality from and to tools of many other vendors. We provide about 50 interfaces and tools mentioned are just some representatives we get asked about very often.

6 Agenda

• What is Rational Data Architect • Rational Data Architect Integrations • Application Modeling and Data Modeling • Logical and Physical Database Design • IBM Data Studio Roadmap • What do I do now? • Where do I get help • Demo

7

7 Enterprise information infrastructure Understand Architect Construct Deploy Manage

Visual Studio 6 IBM Rational JBuilder Rose WebSphere Process IBM WebSphere Server Integr. Developer

IBM Rational IBM Rational RequisitePro Software Modeler Transform data objects to UML objects Transform data objects IBM WebSphere to business objects Business Modeler Create/import agnostic IBM Rational Models with RDA Data Architect

IBM Information Server Relate models IBM WebSphere to each other IBM WebSphere Business Glossary DataStage

WAS, J2EE, WebSphere Portal, IBM Rational Tomcat, BEA WebLogic Software Architect System z IBM WebSphere System i Developer for z

DB2 IBM Data Studio Informix IBM pureQuery

8

Any implementation of governance requires in the first step knowledge of the current situation. This is where IBM Rational Data Architect provides capabilities to create models from existing data structures that can be relational structures or XML based structures (in addition to many other formats like COBOL Copybooks, etc.) and in the second step build understanding of relationships between those data structures before you can join them into a common enterprise data model.

Because models are useful only if they are understood, models can be transformed into UML often better suitable for software developers.

Transformation to the abstraction level of business objects and automatic use of physical naming to logical naming glossaries during transformations provide simplified view for business users.

8 Logical Data Model to UML (and vice versa)

Rational Data Architect Rational Software Architect

LDM to UML Logical Data Class Model Diagram UML to LDM

Transformation

9

Logical Data Models, or LDM’s are used to explore the domain concepts, and their relationships, of the problem domain. LDM’s depict the logical entity types, typically referred to simply as entity types, the data attributes describing those entities, and the relationships between the entities.

Class diagrams show the classes of the system, their interrelationships (including inheritance, aggregation, and association), and the operations and attributes of the classes. Class diagrams are used for a wide variety of purposes, including both conceptual/domain modeling and detailed design modeling.

A transformation configuration allows for a LDM to be transformed into a Class Diagram, or UML, in RSA. Conversely, a class diagram can be transformed into a Logical Data Model.

9 LDM vs. Class Diagram (UML)

Logical Data Model Class Diagram (UML) Modeling Rational Data Rational Software Tool Architect (RDA) Architect (RSA) Notation Information UML Engineering Perspective Data Modeling Collection Entity Class Object Relationshi ƒ Identifying ƒ Association ps ƒ Non-identifying ƒ Aggregation ƒ Generalization ƒ Composition ƒ Dependency

10

LDM’s are data models that are part of RDA. LDM’s use the Information Engineering notation and their collection object is called an Entity. RDA can be opened in the Software Development Platform by opening the Data perspective. The relationships between entities are identifying, non-identifying, and generalization.

Class diagrams are UML models in RSA. RSA is opened by opening the Modeling perspective in the Software Development Platform. Collection objects in class diagrams are called classes and they can have association, aggregation, composition, and dependency relationships between them.

10 Transformation

• Create a Transformation Configuration file: • In either Data or Modeling Perspective, Select .ldm • File-Æ New-Æ Transformation Configuration • Give the .tc a name and select type (LDM to UML or UML to LDM) of transformation and destination • Select a PACKAGE as a source and also a target project • Next, next and Finish • In Modeling Perspective, right-click on .tc file and select “Transform”

Logical Data Model Class Diagram Transform

11

To transform a LDM into a class diagram, a transformation configuration needs to be built. The transformation configuration wizard provides the ability to create the transformation configuration file. Once the transformation configuration file is created, it is Run to transform the LDM into a class diagram. The picture illustrates the transformation from a Logical Data Model (on the left) in RDA into a class diagram (on the right) in RSA.

11 Agenda

• What is Rational Data Architect • Rational Data Architect Integrations • Application Modeling and Data Modeling • Logical and Physical Database Design • IBM Data Studio Roadmap • What do I do now? • Where do I get help • Demo

12

12 Logical Data Models

• Logical and Physical data modeling capability is not just for IBM databases • Logical Data Models • Logical Data Models in RDA • Domain models

13

13 Logical Data Models • Define business relevant entities and relationships between them ¾Using entity relationship model (ERM) ¾Data Entities with attributes ¾Capturing dependencies between business relevant objects ¾Describe relevant details of attributes ¾Independent of implementation technology • Specify the information infrastructure in business terms

14

14 Logical Data Models in RDA • Part of a Data Design Project • Can be created using ¾Main menu ¾Main toolbar ¾Main toolbar with wizard

15

• Recognizable by “.ldm” extension. To create a new Logical Data Model, click File>New>Logical Data Model from the main menu. The logical data model will be part of a Data Design project.

There are multiple ways of creating a Logical Data Model. You can use whichever method is easiest and most convenient for you.

15 Logical Data Modeling Structure

16

This is the Data Project Explorer where you can see the Data Design Project and the data models and entities associated with a data model. You can also see such attributes, constraints, and packages as well.

16 Logical Data Models In RDA

17

Diagrams contain the entities and relationships between the entities. The palette is used to simply drag and drop elements onto the diagram.

17 Domains

• Define business data types for attributes ¾In the logical data model ¾In a separate domain model • Specify constraints for all attributes of selected domain • Used by transformations to the physical model

18

Domains are business data types for attributes that are used by transformations to the physical data model. Domains are used to maintain consistency in the data model between data types.

You can also specify constraints for all attributes of the selected domain.

18 Domain Constraints

• Enumeration – valid values • Length – total length • Minimum and Maximum Length • Pattern – specify pattern (like phone number) • Fraction Digit – number of digits after delimiter • Total Digit – number of total digits allowed • Minimum and Maximum Inclusive or Exclusive values

19

You can set several constraints for your domain using the Properties view. These are some of the constraints that you can use for domains.

19 Physical Data Models • Transform Logical Data Model(LDM) to Physical Data Model(PDM) • Reverse Engineering • Generate DDL • Model Analysis • Synchronize models with the database

20

20 Logical to Physical Models

21

The first step in the transformation is to transform from a logical data model to a physical data model.

These are the databases that are supported.

• DB2 UDB LUW V8.1, V8.2 • DB2 iSeries V5R1,2,3,4 • DB2 zSeries V7, V8 (compatibility mode), V8 (new function mode) • IBM Cloudscape V10.0 • Informix V7.3, V9.2, V9.3, V9.4 • Oracle V8, V9, V10 • SQL Server 2000, SQL2005 (Certified) • Sybase ASE V12

21 Model Analysis

22

Once you have created constraints, MQT’s, views, and indexes, etc. run analyze model for syntax check and correct any syntax errors if there is any. Comments: • Uses a rule-based analyzer for both syntax checking and best practice analyzer. • Can be invoked at schema or diagram level. • Problems are displayed in the Problem View and you can navigate to the elements to fix the problems.

22 LDM TO PDM Transformation

23

To transform from a Logical data model:

1. Select logical data model 2. Click on Data from the menu 3. Select Transform 4. Select Physical Data Model

23 Object Mapping between LDM and PDM

24

Here is the object-mapping summary between a logical data model and a physical data model.

For instance, an entity in a logical data model is a table in a physical data model and attribute in an entity is a column for a table in a physical data model.

24 Physical Model Reverse Engineering

25

As with most data modeling tools when you start off with a database model you usually start with information that is already in your database. You can take a DDL file and create a data model from that or else you can directly connect to the database and create a data model by dragging and dropping the needed information from the tables into your project. Either way RDA makes it simple for you to get started and in your modeling efforts.

25 Generate DDL

• At any level (element, schema, diagram, multi- select) • Options ¾Exclude certain types of elements ¾Drop and/or Create ¾Statements ¾Qualifier and/or quoted identifier • Save the DDL (into the Script folder) or execute DDL directly

26

Use the Generate DDL wizard to export data objects from a data model or database to a script file in your workspace.

To generate DDL: 1. Right-click one or more supported data objects, and click Generate DDL from the pop-up menu. The Generate DDL wizard opens. 2. Complete the steps of the wizard. The DDL script is saved in the project that you specified in the wizard.

26 Compare with Original Source

• Use Compare with Original Source to compare and sync the model with the database

27

You can use Compare with Original Source to compare with a physical data model to a database to sync the model. We will look at this option further later in the presentation.

27 Agenda

• What is Rational Data Architect • Rational Data Architect Integrations • Application Modeling and Data Modeling • Logical and Physical Database Design • IBM Data Studio Roadmap • What do I do now? • Where do I get help • Demo

28

28 Enterprise Data Management The Data Life Cycle

Enterprise Data Architecture Design Establish Create Manage Test Change

Retain Monitor Retrieve Maintain Sunset Optimize

29

Similar to the software lifecycle, this chart shows all activities from the initial data design right through to development, deployment, administration and archiving. Typically all these activities were done in separate silos and were independent of each other. The reality is that all these activities should go hand in hand to give the optimal benefits from the data life cycle. IBM Data Studio gives you the foundation to integrate all of your enterprise data architecture exercises. We are building a community to encompass all actions from design of the data to the sunset of the data.

29 Who will use IBM Data Studio Who will Use IBM Data Studio?

30

IBM Data Studio is the foundation on which it encompasses all aspects of the data management lifecycle. It has something for everyone from the Data Architect who is responsible for the design of the data models, to the application developer who uses , .NET, Ruby, or wants to create web services. The database developer can create SQL, or use Xquery for XML specific databases. The Database administrator can manage administration and performance using the many features of the product. And finally data governance is accomplished by allowing for data stewardship and security enhancements. All of this is accomplished by one environment and no need to switch to other products to manage your data life cycle.

30 IBM Data Studio Announced at IOD 2007

• Empowering developers and database administrators • Support for IDS and DB2 on all platforms including i5/OS • Free and available now

Common Features for DB2 and IDS Common Features for DB2 LUW, z/OS, i5/OS • Physical Data Diagramming • SQL Routine Editor and Debugger • Data Distribution Viewer • Java Routine Editor and Debugger • Integrated Query Editor • SQL Builder Common Features for DB2 LUW, z/OS • XML Editor • Update Statistics • XML Schema Editor • Visual Explain • pureQuery for Java* (without Static SQL) • Data Web Services Special Technical Preview for DB2 LUW • Object Management • Data Management • Health Monitoring • Security Access Controls • Project Management

31

31 What is New in IBM Data Studio?

IBM Data Studio Developer IBM Data Studio pureQuery Runtime • Everything in the free download, plus • Accelerates performance of Java applications • Enhanced tools for binding pureQuery • Simplifies deployment for Java application servers applications • Improves data server management, governance, • Advanced pureQuery runtime for static and application response for IBM Data Servers SQL development and test • More to come in 2008… • More to come in 2008… • Priced at $22/Processor Value Unit* • Priced at $795/Authorized User

IBM Data Studio Rational Data Architect • Free non-warranted download (as • Robust data modeling, plus shown on chart 10) • Heterogeneous support of databases • Includes standard pureQuery beyond the DB2 family. runtime and tools • Mapping, compare and synchronize • Does not include advanced • Naming Standards, Integration with pureQuery tools/runtime for static existing Rational suite of products. SQL binding • Priced at $5,300/Authorized User

Pluggable Component New 32

The green highlights the new functionality that was announced at IOD with respect to IBM Data Studio.. The yellow highlights the existing offering that was already available via IBM Rational Data Architect. These products are complimentary of each other since they are both built off the eclipse platform. IBM Data Studio is free non-warranted download IBM Data Studio Developer IBM Data Studio pureQuery Runtime Rational Data Architect

32 Agenda

• What is Rational Data Architect • Rational Data Architect Integrations • Application Modeling and Data Modeling • Logical and Physical Database Design • IBM Data Studio Roadmap • What do I do now? • Where do I get help • Demo

33

33 What do I do Now? Rational Data Architect • For customers that have a data modeling solution • Remember IBM is a major player in the data modeling and integration world. Customers often don’t know about it. • Check your needs. Are you open to switching tools? • Play with the tool. Import your models into RDA. • For new customers • Download Rational Data Architect trial • Read the articles available on developerworks pertaining to RDA. • For all • Continue to promote DB2 tools for LUW and z/OS. • Look at IBM Data Studio and other Rational tools. • Check out Rational Data Architect and see if you are interested in other database tools.

34

34 Agenda

• What is Rational Data Architect • Rational Data Architect Integrations • Application Modeling and Data Modeling • Logical and Physical Database Design • IBM Data Studio Roadmap • What do I do now? • Where do I get help • Demo

35

35 Where do I get help?

• developerWorks • Public tutorials, white papers • Rational Data Architect web page • http://www-306.ibm.com/software/data/integration/rda/ • Product Data Sheets • Product Download • Data Studio Team • Anson Kokkat – Product Manager for Data Server Tools – Rational Data Architect • [email protected]

36

36 Agenda

• What is Rational Data Architect • Rational Data Architect Integrations • Application Modeling and Data Modeling • Logical and Physical Database Design • IBM Data Studio Roadmap • What do I do now? • Where do I get help • Demo

37

37 Session I01 Data Modeling with Rational Data Architect

Anson Kokkat IBM [email protected]

38

38