Powerdesigner 16.6 Data Modeling
Total Page:16
File Type:pdf, Size:1020Kb
SAP® PowerDesigner® Document Version: 16.6 – 2016-02-22 Data Modeling Content 1 Building Data Models ...........................................................8 1.1 Getting Started with Data Modeling...................................................8 Conceptual Data Models........................................................8 Logical Data Models...........................................................9 Physical Data Models..........................................................9 Creating a Data Model.........................................................10 Customizing your Modeling Environment........................................... 15 1.2 Conceptual and Logical Diagrams...................................................26 Supported CDM/LDM Notations.................................................27 Conceptual Diagrams.........................................................31 Logical Diagrams............................................................43 Data Items (CDM)............................................................47 Entities (CDM/LDM)..........................................................49 Attributes (CDM/LDM)........................................................55 Identifiers (CDM/LDM)........................................................58 Relationships (CDM/LDM)..................................................... 59 Associations and Association Links (CDM)..........................................70 Inheritances (CDM/LDM)......................................................77 1.3 Physical Diagrams..............................................................82 Tables (PDM)...............................................................84 Columns (PDM).............................................................101 Primary, Alternate, and Foreign Keys (PDM).........................................117 Indexes (PDM)............................................................. 121 Views (PDM)...............................................................125 Triggers (PDM).............................................................132 Stored Procedures and Functions (PDM).......................................... 150 Users, Groups, and Roles (PDM).................................................166 Synonyms (PDM)...........................................................176 Defaults (PDM).............................................................178 Domains (CDM/LDM/PDM)....................................................181 Sequences (PDM)...........................................................188 Abstract Data Types (PDM)....................................................190 References (PDM)...........................................................193 View References (PDM)...................................................... 202 Business Rules (CDM/LDM/PDM)...............................................205 Lifecycles (PDM)...........................................................209 Data Modeling 2 © 2016 SAP SE or an SAP affiliate company. All rights reserved. Content Tablespaces and Storages (PDM)................................................219 Web Services (PDM).........................................................221 1.4 Multidimensional Diagrams...................................................... 234 Identifying Fact and Dimension Tables............................................236 Generating Cubes...........................................................237 Facts (PDM)...............................................................238 Dimensions (PDM).......................................................... 241 Associations (PDM)......................................................... 246 Operational to Warehouse Data Mappings..........................................247 Generating Data Warehouse Extraction Scripts......................................248 Generating Cube Data........................................................250 1.5 Checking a Data Model..........................................................251 Abstract Data Type Checks (PDM)...............................................252 Abstract Data Type Procedure Checks (PDM).......................................253 Association Checks (CDM).................................................... 254 Association Checks (PDM).................................................... 255 Column Checks (PDM).......................................................256 Cube Checks (PDM).........................................................258 Database Checks (PDM)......................................................259 Database Package Checks (PDM)...............................................260 Database Package Sub-Object Checks (PDM).......................................261 Data Format Checks (CDM/LDM/PDM)...........................................262 Data Item Checks (CDM)......................................................262 Data Source Checks (PDM)....................................................263 Default Checks (PDM)........................................................264 Dimension Checks (PDM).....................................................265 Domain Checks (CDM/LDM/PDM).............................................. 266 Entity Attribute Checks (CDM/LDM)............................................. 268 Entity Identifier Checks (CDM/LDM)............................................. 269 Entity Checks (CDM/LDM)....................................................270 Fact Checks (PDM)..........................................................271 Fact Measure, Dimension Hierarchy, and Attribute Checks (PDM).........................272 Horizontal and Vertical Partitioning and Table Collapsing Checks (PDM)....................273 Index and View Index Checks (PDM)..............................................274 Inheritance Checks (CDM/LDM)................................................ 275 Join Index Checks (PDM)......................................................276 Key Checks (PDM)..........................................................277 Lifecycle and Lifecycle Phase Checks (PDM)........................................278 Package Checks (CDM/LDM/PDM)..............................................279 Procedure Checks (PDM)..................................................... 281 Reference and View Reference Checks (PDM).......................................282 Data Modeling Content © 2016 SAP SE or an SAP affiliate company. All rights reserved. 3 Relationship Checks (CDM/LDM)............................................... 283 Sequence Checks (PDM)......................................................284 Synonym Checks (PDM)......................................................285 Table and View Checks (PDM)..................................................285 Tablespace and Storage Checks (PDM)...........................................288 Trigger and DBMS Trigger Checks (PDM)..........................................289 User, Group, and Role Checks (PDM).............................................289 View Checks (PDM).........................................................290 Web Service and Web Operation Checks (PDM)......................................291 1.6 Generating and Reverse-Engineering Databases........................................292 Writing SQL Code in PowerDesigner..............................................292 Previewing SQL Statements................................................... 296 Connecting to a Database.....................................................300 Generating a Database from a PDM..............................................302 Generating an SAP BusinessObjects Universe.......................................313 Generating Test Data to a Database..............................................317 Estimating Database Size.....................................................320 Modifying a Database........................................................322 Displaying Data from a Database................................................325 Reverse Engineering a Database into a PDM........................................326 Reverse-Engineering an SAP BusinessObjects Universe................................337 Archive PDMs..............................................................339 1.7 Generating Other Models from a Data Model..........................................339 Generating Other Models from a CDM............................................ 340 Generating Other Models from an LDM............................................344 Generating Other Models from a PDM............................................ 344 1.8 Migrating from ERwin to PowerDesigner.............................................350 Importing Individual ERwin Files.................................................351 Importing Multiple ERwin Files..................................................352 Post-Import...............................................................354 PowerDesigner vs ERwin Terminology............................................354 Getting Started Using PowerDesigner for Former ERwin Users...........................356 2 DBMS Definition Reference.....................................................359 2.1 Hadoop Hive.................................................................359 Partitions and Partition Values (Hadoop Hive).......................................361 2.2 HP Neoview................................................................. 362 Materialized View Groups (Neoview)............................................. 366 2.3 IBM