Dormevilly Tertius
dtertius@embarcadero.com.br
ER/Studio EcoSistema
AppWave
ER/Repository
ER/Portal
License Server
AD, DBA
Analista
Agenda
Day 1
Day 2
§ Entity–Relationship Modeling
§ The Naming Standards Template
§ Introducing ER/Studio Data Architect
§ Exporting and Importing a Model
§ ER/Studio Installation
using XML
§ Getting Started with ER/Studio DA
§ Working with Universal Mappings
Enterprise Level Modeling
§ Logical and Physical Modeling
§
§ Impact Analysis
§ Creating a New Data Model
§ Importing from External Metadata
§ Working with ER/Studio Repository
§ Reverse Engineering an Existing Database
§ Establishing Security for the Repository
§ Entities, Attributes and Relationships
§ Using Enterprise Data Dictionaries
Working with the Data Dictionary
§
§ Automating ER/Studio Data Architect
§ Generate Physical Models
§ Macros
§ Using the Compare and Merge Utility
§ COM Automation
§ Generating RTF and HTML Model Reports
§ Advanced Modeling Capabilities
A Embarcadero Technologies
GPS?
• Todo mundo já viu um GPS?
• Entity, relationship and the cardinality are the three main components of an
ERD (Entity–Relationship Diagram)
Introducing ER/Studio DA
What is ER/Studio?
• ER/Studio Data Architect (ER/Studio DA) is a visual modeling application used
for platform-independent logical data architecture analysis and design, in
addition to platform-specific physical database design and construction.
ER/Studio Data Architect Requirements
Hardware Processor
RAM
Pentium III, 600 MHz or higher
1 GB
Disk Space 340 MB
175 MB in the System TEMP directory for temporary file storage during
installation.
DVD Reader
Operating System Any of the following:
• Windows 8
• Windows 7 (32-bit and 64-bit modes)
• Windows Server 2008
• Windows Vista
• Windows XP Professional
• Windows 2003 (32-bit mode)
• Windows 2000 Pro Server
• Advanced Server with Service Pack 2
Software To use an Open Data Base Connectivity (ODBC) database as a data source, install the ODBC
driver on your client computer.
To connect to the DBMS using native connectivity, install the native client libraries available from
the DBMS vendor.
Privileges Local administrator privileges (required for installation only).
ER/Studio Repository Requirements
Repository Database Server Repository Server
Hardware As required for your database platform
Processor Pentium 4 or higher
ER /S TUDI O REPO SI TO RY I N STALLATION > DATABASE SE RVER RE QUIRE M ENTS
RAM 2 GB
Disk Space 50 MB
• Installation
Important Notes
NOTE: The
process: Installing the Repository (page 13)
hardware requirements are based on an ER/Studio Repository installation with five
to 10 users. For more than 10 users, ensure your hardware surpasses the previously
• ER/Studio Repository has been certified to work with the above database platforms using
stated hardware requirements to accommodate the number of transactions that
ER /S TUDI O REPO SI TO RY ADMI NIS T RATI ON > UNDE R S T A N D I N G A N D M A I N T A I N I N G T H E R E P O S I T O R Y
Repository Architecture
REPOSITORY ARCHITECTURE AND DESIGN
ER/Studio Portal Installation
When you purchase an upgrade, Embarcadero support sends you an email that includes the
download link for the product and instructions for obtaining the new license. Review that email
ER/Studio DBMS Support
• Hitachi® HiRDB
• Microsoft Visual FoxPro® 3, 5
• IBM® DB2® for LUW: 5.x, 6.x, 7.x, 8.x, • MySQL® 3.x, 4.x, 5.x
9.x
• Netezza 4.6, 5.0, 6.0
• IBM® DB2® for z/OS: 5.x, 6.x, 7.x, 8.x, • Teradata® V2R4, V2R5, V2R6, 12.0,
9.x, 10.x
13.0
• IBM® DB2® for iSeries: V4R5 and • Oracle® 7.3.x, 8.x, 9i, 10g, 11g
V5R2
• PostgreSQL 8.x, 9.x
• IBM® DB2® for Common Server
• Sybase® Adaptive Server® Enterprise
• Informix® OnLine, SE and 9.x
(ASE) 11.9.2, 12.x, 12.5, 15.0
• Greenplum 4.2
• Sybase Adaptive Server Anywhere
• InterBase® 4, 2007, 2009
(ASA) 5, 6, 7, 8, 9, 10
• Microsoft® Access 2.0, 95, 97, 2000
• Sybase IQ 12.5
• Microsoft SQL Server 7, 2000, 2005, • Sybase Watcom SQL
2008, 2012
• Sybase SQL Anywhere 5
• ODBC/AINSI SQL
ER/Studio Licensing
•
set of licenses that is tied to a
Workstation licenses: A license or
particular workstation. The product can only be used on that
workstation
• Networked licenses: Networked licenses are administered and
distributed by a central License Server (AppWave)
• Concurrent licensing: Users on different machines take turns using
licenses from a shared pool
• Networked Named User licensing: Licenses are pre-assigned to
specific users that are setup on the license server's user list
Getting Started with
ER/Studio DA
• Windows 8, Windows 7, and Windows Vista:
ER/Studio DA Overview
C:\ProgramData\Embarcadero\ERStudioDA_X.X\Sample Models
1. Toolbars
2. Active Project
3. Active Model
4. Data Model tab
5. Schema Objects
6. Overview Window
7. Zoom Window
Configuring ER/Studio DA
• Customizing the Display of Diagrams and Objects
• View > Diagram and Object Display Options
• Defining Model Options for the Selected Model
• Right-click the target model and then click Model Options
• Customizing Standard Model Features for New Models
• Tools > Options
• Specifying the Default File Locations
• Tools > Options > Directories
• Changing Cursor Popup Help Options
• View > Cursor Popup Help Options
Logical and Physical Modeling
Creating a new data model
•
up by drawing a new data model.
Build a new design from the ground TUT O RIA L S > G E T T I N G S T A R T E D W I T
• Build a data model from an existing database through live reverse
engineering.
STARTING TO DATA MODEL WITH ER/STUDIO DA
• Import designs1 On from other Start
the Windows modeling products
> Programs menu,such as Embarcadero
choose ERwin or SQL> ERStudi
Architect.
files.
2 Choose File > New > Draw a new data model.
As you can see in the Create a New Model dialog, there are a number of wa
PROPERTIES TAB
• Relationship Type > Identifying Relationships: Identifying relationsh
mandatory. A foreign key value must exist in the child entity and the fo
7 • Below Create Submodel, enter Address Components as the name for the s
Finding out How an Entity Maps to the Physical Model
8 Click OK. the Compare and Merge Utility
§ Using
§ Generating
ER/Studio RTF and
DA creates HTML
the Model
Address Reports
submodel.
Components
Advanced Modeling Capabilities
• Promoting Data Integrity Through Rules
• UPPER(CURRENT_CUSTOMER) in (‘Y’, ‘N’)
• Create and Edit Defaults
• Working with Attachments
• Customizing Datatype Mappings
• Denormalizing the Physical Model
• Validating the Model
The Naming Standards Template
Enforcing Naming Standards
• Case
• Prefix and Suffix
• Prime, Qualifier and Class
• Considering a attribute called Customer First Name ID
• Customer is the Prime (also Employee, Account, etc.)
• ID is the Class (also date, code, document, etc.)
• First and Name are the Qualifiers
• Illegal: Words that are not allowed in names (these will mainly be
used during the validation process)
• Delimiter Options
• Special Characters
Enforcing Naming Standards
Case
Size
Abbreviations
Exporting and Importing
a Model using XML
Exporting Data Model to XML
• The eXtensible Markup Language (XML) is a document format
supported by many applications and platforms, allowing the data
modelers and application developers to collaborate SOA initiatives
• ER/Studio DA allows you to generate the following XML-type files:
• Schema Definition (XSD)
• The XSD formally describes the elements in an XML document. It is an abstract
representation of an object’s characteristics and how the object relates to other
objects. The XSD is used to verify that each element in an XML document conforms
to the element rules described in the XSD.
U S I N G E R / S T UD I O D A TA ARC H I T E CT > D EV E L O P I N G T H E L O G I C A L MO D E L
• Existing Mappings: You can see which objects are already mapped, as well as the
description and any other data associated with the mapping.
U S I N G E R / S T UD I O D A TA ARC H I T E C T > D EV E L O P I N G T H E L O G I C A L MO D E L 1 In the diagram window, right-click the object you want to map or change the mapp
and select Universal Mappings.
6 Deselect or select the target object’s Mapped checkbox to remove or add a mapping.
You can also see the mappings of an object by right-clicking the object and selecting Where
Working with ER/Studio
Repository
ER/S Repository Options
• Specifying Repository and Portal Connection Details
• Logging In and Out of the Repository and Portal
• Establishing Security for the Repository
• Creating and Managing Roles
• Creating and Managing Users
• Creating and Managing Groups
• Granting and Prohibiting User Access to Repository
Working with Objects
in the Repository
• Exploring the Repository
• Adding a Diagram or Data Dictionary to the Repository
• Retrieving a Repository Diagram or a Named Release
• Checking in to the Repository
• Checking Out Repository Items
• Determining Who has an Object Checked Out
• Working with Named Releases of Repository Diagrams
• Branching and Merging Diagrams
• Rolling Back a Diagram to a Previous Version
Enterprise Data Dictionaries
• Creating an Enterprise Data Dictionary
• Promote Local Data Dictionary to Enterprise Data
Dictionary
• Create a New, Empty Data Dictionary
• Associating a Data Dictionary with a Diagram
• Determining Where an Enterprise Data Dictionary is Used
• Associating the Enterprise Data Dictionary with Repository
Diagrams
Automating ER/Studio
Data Architect
ER/S Macros and Automation
• Automation Interface objects are scriptable controls for most ER/
Studio Data Architect (ER/ Studio DA) functions
• You can create macros to automate repetitive tasks or to extend the
functions already found in the application
• A number of example macros are included. To see them, open any
ER/Studio DA *.dm1 file, switch to the Macro tab in the Data Model
Explorer, and double-click any sample macro. The macro will open in
the Macro Editor.
• You can use macros within ER/Studio DA as well run your own COM
application external to ER/Studio DA
functions already found in the application. A few days coding can save m
resources in the long run as described in Why Use Automation Objects?
This section is intended for programmers with a working knowledge of
using ER/Studio DA’s macro editor, but you’ll also need a textbook devo
• Further Information
• Automation Interface Reference
Guide, accessible from the Help
menu
• Programming SAX Basic tutorial:
Programming SAX Basic.pdf
ER/Studio Training
Questions ?
Dormevilly Tertius
dtertius@embarcadero.com.br