How to generate an entity-relationship (ER) diagram using Oracle SQL Developer
我想使用Oracle SQL Developer为我的数据库表生成ER图,但是我是Oracle和该工具的新手。
在SQL Developer中创建ER图的过程是什么? >
为现有数据库架构或其子集创建图,如下所示:
将显示ERD。 按如下所示导出图: 将导出该图。要以矢量格式导出,请改用"到PDF文件"。这允许使用Inkscape(或其他矢量图像编辑器)进行简化的编辑。
这些说明可能适用于SQL Developer 3.2.09.23至4.1.3.20。
自SQL Developer 3开始,它非常简单(它们本来可以使它更容易)。
Oracle杂志中的Jeff Smith(链接)已经描述了在Oracle SQL Developer中生成实体关系图的过程。
摘录:
Entity relationship diagram
Getting Started
To work through the example, you need an Oracle Database instance with the sample HR schema that’s available in the default database installation. You also need version 4.0 of Oracle SQL Developer, in which you access Oracle SQL Developer Data Modeler through the Data Modeler submenu [...] Alternatively, you can use the standalone Oracle SQL Developer Data Modeler. The modeling functionality is identical in the two implementations, and both are available as free downloads from Oracle Technology Network.
In Oracle SQL Developer, select View -> Data Modeler –> Browser. In the Browser panel, select the Relational Models node, right-click, and select New Relational Model to open a blank model diagram panel. You’re now starting at the same place as someone who’s using the standalone Oracle SQL Developer Data Modeler.
Importing Your Data DictionaryImporting Your Data Dictionary
A design in Oracle SQL Developer Data Modeler consists of one logical model and one or more relational and physical models. To begin the process of creating your design, you must import the schema information from your existing database. Select File -> Data Modeler -> Import -> Data Dictionary to open the Data Dictionary Import wizard.
Click Add to open the New -> Select Database Connection dialog box, and connect as the HR user. (For detailed information on creating a connection from Oracle SQL Developer, see"Making Database Connections," in the May/June 2008 issue of Oracle Magazine.)
Select your connection, and click Next. You see a list of schemas from which you can import. Type HR in the Filter box to narrow the selection list. Select the checkbox next to HR, and click Next.
Read more...
对于使用Oracle数据库的类图,请执行以下步骤:
文件→Data Modeler→导入→数据字典→选择数据库连接→下一步→选择数据库->选择表格->完成
有一个名为Oracle Data Modeler的配套工具,您可以看一下。该站点上有在线演示,可帮助您入门。它曾经是增加的成本项目,但我再次注意到它是免费的。
在Data Modeler概述页面中:
SQL Developer Data Modeler is a free
data modeling and design tool, proving
a full spectrum of data and database
modeling tools and utilities,
including modeling for Entity
Relationship Diagrams (ERD),
Relational (database design), Data
Type and Multi-dimensional modeling,
with forward and reverse engineering
and DDL code generation. The Data
Modeler imports from and exports to a
variety of sources and targets,
provides a variety of formatting
options and validates the models
through a predefined set of design
rules.
Oracle以前在SQL Developer中有一个名为
现在是单独的下载,您可以在这里找到:
http://www.oracle.com/technetwork/developer -tools / datamodeler / overview / index.html
我正在运行SQL Developer 17.2.0.188构建188.1159,它确实包含数据建模功能。我只是通过菜单创建了一个关系模型图:File-> Data Modeler-> Import-> Data Dictionary ....
我也有独立的Data Modeler,它具有相同的功能。
如Data Modeler教程所述:
图4:HR
的关系模型和关系图您生成的关系图不是ERD。逻辑模型是更高的抽象。 ERD表示实体及其属性和关系,而关系或物理模型表示表,列和外键。"
很容易转到文件-数据建模器-导入-数据字典-数据库连接-确定