How to generate an entity-relationship (ER) diagram using Oracle SQL Developer

后端 未结 8 1619
清酒与你
清酒与你 2020-11-29 14:32

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

相关标签:
8条回答
  • 2020-11-29 14:47

    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."

    0 讨论(0)
  • 2020-11-29 14:56

    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

    0 讨论(0)
  • 2020-11-29 14:58

    Create a diagram for existing database schema or its subset as follows:

    1. Click File → Data Modeler → Import → Data Dictionary.
    2. Select a DB connection (add one if none).
    3. Click Next.
    4. Check one or more schema names.
    5. Click Next.
    6. Check one or more objects to import.
    7. Click Next.
    8. Click Finish.

    The ERD is displayed.

    Export the diagram as follows:

    1. Click File → Data Modeler → Print Diagram → To Image File.
    2. Browse to and select the export file location.
    3. Click Save.

    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.

    0 讨论(0)
  • 2020-11-29 15:00

    Its easy go to File - Data Modeler - Import - Data Dictionary - DB connection - OK

    0 讨论(0)
  • 2020-11-29 15:06

    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:

    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.

    0 讨论(0)
  • 2020-11-29 15:08

    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

    0 讨论(0)
提交回复
热议问题