I have the most typical problem. My new company has an age old oracle database. The tables are defined with primary keys only (no foreign keys or unique keys or ..). Now, the creator of the schema was retired. It is now getting difficult to reverse engineer to know the connection between tables.
To add more to this problem, we identified an sql join between two tables (A,B) columns which have different names. It was found the the column of table A is a foreign key of table B column. These column names are quite different.
My question is, is there a way to generate ERD based on the content of the columns?
For e.g. I would like to search the content across database to see if there are tables with columns having the similar content and suggest that it could be a foreign key to the table. I know this is really bad situation but just to give a try.
There are more than 40 tables as such the relations has to be identified. Doing a manual reverse engineering is time taking and need more efforts.
Just want to know a way if we can identify the relationship between tables in this kind of database efficiently.
The only good part is that the primary keys are not just integers. They are randomly generated identifiers with length above 8 characters. These values are used in other tables for connection