1

How can I extract (reverse engineering) a graphical (schema) representation of an Oracle database (tables and their relationships; with colums and datatypes....). Are there (free) tools, which can do this?

I think the Oracle SQL Developer has no such feature...

Elmex
  • 3,331
  • 7
  • 40
  • 64

5 Answers5

3

There is a related Oracle tool, SQL Developer Data Modeler which does reverse engineering and it is free. Find out more.

APC
  • 144,005
  • 19
  • 170
  • 281
1

Sql Developer does this (check the SQL Modeller option) and lots lots more. An amazingly good tool !

user1048271
  • 141
  • 1
  • 4
1

For a free tool I recommend schema spy, http://schemaspy.sourceforge.net/. It needs Java Runtime. Look to http://schemaspy.sourceforge.net/sample/relationships.html to see diagrams it generate.

This tool is also more suitable to automatic build scripts.

simple usage with oracle hr template is given below.

SET JDBC_ORACLE_JAR=C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar
SET CONNECTION_USERNAME=hr
SET CONNECTION_PASSWORD=hr
SET TNS_DATABASE_NAME=orcl
SET SCHEMA_NAME=HR
SET TABLE_NAME='EMP'
SET OUTPUT_NAME=HR_EMP

java -jar schemaSpy_5.0.0.jar -dp %JDBC_ORACLE_JAR% -db %TNS_DATABASE_NAME% -o     schemaOutput%OUTPUT_NAME% -u %CONNECTION_USERNAME% -p %CONNECTION_PASSWORD% -i %TABLE_NAME%.* -schemas %SCHEMA_NAME% -hq -noviews -loglevel severe

java -jar schemaSpy_5.0.0.jar -dp %JDBC_ORACLE_JAR% -db %TNS_DATABASE_NAME% -o     schemaOutput%OUTPUT_NAME% -u %CONNECTION_USERNAME% -p %CONNECTION_PASSWORD%  -schemas %SCHEMA_NAME% -hq -noviews -loglevel severe

First one will give you diagram with tables starting with EMP . Second one will give you diagram with all tables in hr schema .

Atilla Ozgur
  • 14,339
  • 3
  • 49
  • 69
0

Adminer is an awesome PHP single file that should be able to do what you request. I tried only with MySQL, but Oracle it's supported as well.

CapelliC
  • 59,646
  • 5
  • 47
  • 90
0

I'm not aware of any free tools: MS Visio can reverse engineer (professional/Premium) TOAD an expensive tool but well worth it IMO

xQbert
  • 34,733
  • 2
  • 41
  • 62