We're currently questioning our company's data model (database schemes), which has grown wildly and distributedly over the years and now suffers from redundancy and lacks clarity. Different databanks (Oracle and MySQL) are queried by different tools, developed by separate teams for different purposes (billing, reporting, business, etc).
In order to get a clearer picture of the data dependencies of the different tools, i.e. which exact pieces of information does tool T need, one way would be to identify them directly from the SQL queries that each databank executes. Alternatively, it would be much more interesting to have the databank collect these statistics itself.
Examples of such statistics would be
- how often is column C from table T accessed
- how often are table T1 and T2 joined together
Does anyone know how to do this with MySQL or Oracle or both?