您好,欢迎访问三七文档
GettingStartedwithERwin(Erwin入门)byDr.PeterWolcottDepartmentofInformationSystemsandQuantitativeAnalysisCollegeofInformationScienceandTechnologyUniversityofNebraskaatOmaha(由内布拉斯加州的奥马哈大学信息科学与技术学院门的信息系统和定量分析博士彼得著)Introduction(介绍)ERwinisapopulardatamodelingtoolusedbyanumberofmajorcompaniesinOmahaandthroughouttheworld.(Erwin是受奥马哈和世界各地的一些主要的公司欢迎的数据模型工具)Theproductiscurrentlyowned,developed,andmarketedbyComputerAssociates,aleadingsoftwaredeveloper.(该产品是由具有领导地位的CA软件开发公司拥有、开发和销售)Theproductsupportsavarietyofaspectsofdatabasedesign,includingdatamodeling,forwardengineering(thecreationofadatabaseschemaandphysicaldatabaseonthebasisofadatamodel),andreverseengineering(thecreationofadatamodelonthebasisofanexistingdatabase)forawidevarietyofrelationalDBMS,includingMicrosoftAccess,Oracle,DB2,Sybase,andothers.该软件为多种多样的关系型数据库管理系统,包括MicrosoftAccess,甲骨文,Sybase,DB2,和其他人提供支持数据库设计的各个方面,包括数据建模、正向工程(在现有的数据模型的基础上创建数据模式和物理数据库)和逆向工程(在现在的数据库基础上创建数据模型)ThisbrieftutorialstepsyouthroughtheprocessofcreatingadatamodelusingERwin.(你可以通过这个简单教程中的步骤运用Erwin来创建数据模型)ItwillnotexplainallaspectsofERwin,butwillshowyoutheminimumnecessarytocreateandusedatamodelsforthisclass.(这个课程不可能全面地讲解Erwin,但它向你展示了必要的最基本的创建和使用数据模型的知识)Itconsistsofthreemajorsegments,whichcorrespondtotheproject-relatedassignmentsinyourclass:(这个课程由三个主要部分组成,它与有关项目任务相符)1.Creationofabasicdatamodel(Conceptualdatamodel)创建一个基本的数据模型(概念数据模型)2.Creationofadatabaseschema建立数据库模式3.Creationofthedatabase创建数据库Thistutorialisastaticone,suitableforprinting.本教程是一个静态的,适合印刷Atutorialusingscreencapturesandnarrationisalsoavailable.一个指南使用屏幕捕捉和叙述是可用的。Section1.CreationofabasicdatamodelYouwillbecreatingadatamodelsimilartothatcreatedfortheHeartlandPropertiescasestudyusedinclass.教程中你将创建一个和研究心脏地带个案相似的数据模型TheEntitiesinvolvedinthismodelinclude:Employee,Office,Property,andInspection.参与本次的实体模型包括:员工、办公、财产、及检验。First,invokeERwinfromStart-Programs-ComputerAssociates-AllFusion-ERwinDataModeler-Erwin首先,从开始——程序——CA——所有程序——ERwinDataModelerYouwillfirstencounteradialogboxentitledModelMartConnectionManager(经理ModelMart连接).SimplyclickonCancel.将首先遇到一个对话框题为“ModelMartConnectionManager”。只需点击“取消”。Youwillbeaskedtochoosebetweencreatinganewmodel,andopeninganexistingmodel,asshowninFigure1你将被要求之间作出选择,创造了一种新的模式,开放一个现有的模型,如图1所示.Forthisexercise,createanewmodel.通过这个练习,创建一个新的模型Figure1:CreateanewmodelThenextdialogbox,showninFigure2,willaskyoutochoosethetemplatetobeusedtocreatethenewmodel.下一个对话框,如图2所示,会让你选择的模板可以被用来创造新的模型Atthispoint,youmayassociatethemodelwithatargetDBMSproduct,suchasMicrosoftAccess,Oracle,DB2,etc.在这一点上,你可以把这个模型与如MicrosoftAccess,甲骨文,DB2等目标数据库产品联系在一起Youwillhavetheopportunitytochangethischoicelater,butfornowchooseMicrosoftAccess.你之后将有机会改变这种选择,但是现在选择MicrosoftAccess。Also,chooseLogical/Physicalasthenewmodeltype.同时,选择的逻辑或者物理作为新模型形式Thischoicewillallowustoswitchbackandfortheasilybetweenalogicalmodel(ERDiagram)andaphysicalmodel(databaseschema).这个选择将让我们轻易之间来回切换逻辑模型(ER图)和物理模型(资料库)Figure2:SelectingamodeltypeERwinwillnowdisplaythemainwindowfromwhichmostofyourERdiagramdevelopmentwillbedone,asshowninFigure3.ERwin现在将显示在主窗口大部分你ER图发展来完成,如图3。Figure3:TheERwinWorkplaceERwin工作场所TheERwinworkplaceconsistsoftwomainparts.OntheleftistheModelNavigator,whichdisplaysahierarchyofitemsofimportance,suchasentities,domains,andsubjectareas.左面是模型的领航员,显示某一层次的物品的重要性,如实体、领域和课题。OntherightistheDisplayWindow,whichwillshowtheERdiagramitself.右边是显示窗口,它能够显示ER图本身Asyoucreateobjects,theywillappearinthedisplaywindow(iftheyarevisualinnature,likeentities),andappearinthehierarchywithintheModelNavigator.当你创建对象时,他们将会出现在显示器窗口(如果它们是视觉的自然属性,就像实体),并将出现在层级模型导航器。SettingPreferences偏好设置AtoollikeERwincanaccomodateanumberofdatamodelingnotationsandconventions.像ER这样工具可以容纳大量的数据建模的符号和对话Inmyclasspleasemakethefollowingchangestothepreferencesbeforeyoubegintocreateyourmodel在我的课上请完成下面的改变的偏好,在你开始之前,创造你的模型:1.FromtheFormat-EntityDisplaymenu,makesurethatPrimaryKeyDesignatorischecked从格式-实体显示菜单,确保主键栏进行检查2.FromtheFormat-EntityDisplaymenu,makesurethatForeignKeyDesignator(FK)isunchecked.从格式-实体显示菜单,确保外国关键指示器(FK)是不能检查3.FromtheFormat-EntityDisplaymenu,makesurethatShowMigratedAttributesisunchecked.从格式-实体显示菜单,确保显示属性迁移到unchecked4.FromtheFormat-RelationshipDisplay,makesurethatVerbPhraseischecked.从格式-关系显示、确保动词短语进行检查Inaddition,youmaychoosebetweentwodifferentE-Rdiagrammingnotations.另外,你可以选择两种不同的e-r种画图符号InERwin,clickonModel-ModelPropertiestoseethewindowshowninFigure3b:点击模型-窗口模型属性看到如图3b.Figure3b:ChoiceofnotationThistutorialisbasedontheInformationEngineering(CrowsFoot)notation.YoumayalsouseIDEF1X,ifyouwish.本教程是基于信息工程(“乌鸦脚”)的符号。你也可以使用IDEF1X,如果你愿意的话。CreatinganEntity创造一个实体Tocreateanewentity,clickontheentityicon()onthetoolbar,orright-clickonthewordEntityintheModelNavigator.创建一个新的实体,点击实体工具栏上的图标(),或者以右键点击这个词中的实体模型导航器Ifyouclickontheentityicon,youthenshouldclickontheDisplayWindowwhereyouwouldliketheentitytoappear,asshowninFigure4.如果你点击了实体图标,那么你应该点击显示窗口,在那里你会喜欢这个实体出现的各位朋友,如图4所示Figure4:AnewentityNoticethatthedefaultnamefortheentityisE/x,wherexissomenumber(2inthiscase).注意,默认的名字因为实体是E/x,那里的x是一些数字(2在这种情况下)ClickontheTabkeyseveraltimesandno
本文标题:ERwin使用说明
链接地址:https://www.777doc.com/doc-5362044 .html