如何使用 Oracle SQL Developer 生成实体关系 (ER) 图
我想使用 Oracle SQL Developer 为我的数据库表生成 ER 图,但我对 Oracle 和这个工具还不熟悉。
在 SQL Developer 中创建 ER 图的过程是什么?
I want to use Oracle SQL Developer to generate an ER diagram for my DB tables but I am new to Oracle and this tool.
What is the process for creating an ER diagram in SQL Developer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
有一个名为 Oracle Data Modeler 的配套工具,您可以看一下。该网站提供在线演示,帮助您入门。它曾经是一个额外的成本项目,但我注意到它再次是免费的。
从数据建模器概述页面:
There is a companion tool called Oracle Data Modeler that you could take a look at. There are online demos available at the site that will get you started. It used to be an added cost item, but I noticed that once again it's free.
From the Data Modeler overview page:
对于使用 Oracle SQL Developer 的实体关系图:
文件→数据建模器→导入→数据字典→选择数据库连接→下一步→选择模式/数据库(选中所有选定的)→下一步→选择要导入的对象(如果未选中所有选定的) → 下一步 → 完成
For a Entity Relationship Diagram using Oracle SQL Developer:
File → Data Modeler → Import → Data Dictionary → Select database connection → Next → Select schema/database (Check All Selected) → Next → Select object to import(if All Selected was not checked) → Next → Finish
Oracle 过去在 SQL Developer 中有一个名为
Data Modeler
的组件。至少自 3.2.20.10 起,它不再存在于产品中。现在,您可以在这里找到它:
http:// www.oracle.com/technetwork/developer-tools/datamodeler/overview/index.html
Oracle used to have a component in SQL Developer called
Data Modeler
. It no longer exists in the product since at least 3.2.20.10.It's now a separate download that you can find here:
http://www.oracle.com/technetwork/developer-tools/datamodeler/overview/index.html
我正在运行 SQL Developer 17.2.0.188 build 188.1159,它确实包含数据建模功能。我刚刚通过菜单创建了一个关系模型图:文件->数据建模器->导入->数据字典...。
我还有独立的数据建模器,它可以做同样的事情。
正如数据建模器教程所述:
图 4:HR 的关系模型和图表
您生成的图表不是 ERD。逻辑模型是更高的抽象。 ERD 表示实体及其属性和关系,而关系或物理模型表示表、列和外键。”
I'm running SQL Developer 17.2.0.188 build 188.1159 which does indeed contain data modeling capability. I just created a relational model diagram via the menu: File->Data Modeler->Import->Data Dictionary....
I also have the stand-alone Data Modeler, which does the same thing.
As the Data Modeler tutorial states:
Figure 4: Relational model and diagram for HR
The diagram you’ve generated is not an ERD. Logical models are higher abstractions. An ERD represents entities and their attributes and relations, whereas a relational or physical model represents tables, columns, and foreign keys."
很容易转到文件 - 数据建模器 - 导入 - 数据字典 - 数据库连接 - 确定
Its easy go to File - Data Modeler - Import - Data Dictionary - DB connection - OK
为现有数据库架构或其子集创建图表,如下所示:
显示 ERD。
导出图表如下:
图表已导出。要以矢量格式导出,请改用至 PDF 文件。这样可以使用 Inkscape (或其他矢量图像编辑器)进行简化编辑。
这些说明可能适用于 SQL Developer 3.2.09.23 至 4.1.3.20。
Create a diagram for existing database schema or its subset as follows:
The ERD is displayed.
Export the diagram as follows:
The diagram is exported. To export in a vector format, use To PDF File, instead. This allows for simplified editing using Inkscape (or other vector image editor).
These instructions may work for SQL Developer 3.2.09.23 to 4.1.3.20.
从 SQL Developer 3 开始,它就非常简单了(他们本可以让它变得更容易)。
Untitled_1
),右键单击“关系模型”并选择 “新关系模型”。。Relational_1
)并选择«显示»。Since SQL Developer 3, it's pretty straightforward (they could've made it easier).
Untitled_1
), right-click «Relational Models» and select «New Relational Model».Relational_1
) and select «Show».Relational_1
tab (or whatever name) is the active one in the rhs before you drag them over, because it has probably switched to one of the tables you clicked in the lhs.Jeff Smith 的 Oracle 杂志 中描述了在 Oracle SQL Developer 中生成实体关系图的过程 (链接)。
摘抄:
文章链接:
The process of generating Entity-Relationship diagram in Oracle SQL Developer has been described in Oracle Magazine by Jeff Smith (link).
Excerpt:
Article link:
对于使用 Oracle 数据库的类图,请使用以下步骤:
文件 → 数据建模器 → 导入 → 数据字典 → 选择数据库连接 → 下一步 → 选择数据库 -> 选择表格 -> 数据库连接。结束
For a class diagram using Oracle database, use the following steps:
File → Data Modeler → Import → Data Dictionary → select DB connection → Next → select database->select tabels -> Finish