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

Oracle SQL Developer is a free and fully-featured integrated development environment (IDE) specifically designed for working with Oracle databases. It provides various database development tools, including generating an entity-relationship (ER) diagram.
Here's an example of how to generate an ER diagram using Oracle SQL Developer:
  1. Open Oracle SQL Developer and connect to your database.
  2. Go to the "Database" menu, then select "Data Modeler" and "Open Data Modeler."
  3. In the Data Modeler window, select "New Diagram" from the "File" menu or click the "New Diagram" button in the toolbar.
  4. In the "New Diagram" dialog box, select "Entity Relationship" as the diagram type, then click "OK."
    • To add tables to the ER diagram, you have two options:
    • Drag and drop tables from the "Connections" pane on the left side of the window to the diagram area.
  5. Click the "Add Tables" button in the toolbar, then select the tables you want to add to the diagram.
  6. Once you've added the tables, you can use the "Reverse Engineer" option to create relationships between the tables based on the foreign key constraints defined in the database.
  7. Once the relationships are established, you can use the various options in the "Diagram" menu or the context menu to customize the appearance of the ER diagram, such as changing the font size, adding labels, or adjusting the diagram's layout.
  8. You can also use the "Print" option from the "File" menu or the context menu to generate a report of the ER diagram.
It's worth noting that Oracle SQL Developer Data Modeler is a separate download from the Oracle SQL Developer IDE, and it's not included with the standard installation. Also, the data modeler is not available on all versions of Oracle SQL Developer.