exporting db objects for version control
We are implementing version control for our project. As part of this we need to check in all DB objects. We have tables, procedures, functions, packages, view and materialized view. Problem is there are many objects and we need to put source code file wise. e.g. There are tables T1, T2, T3 and we need files Table_T1.txt which will have T1 definition ( columns definition, indexes for the table and grants) and so on for all objects. I m aware of metadata tables such as DBA_VIEWS , dba_source and DBMS_METADATA.GET_DDL etc where I can find required information but how to pull that information