What tools do you use to develop Oracle stored procedures, in a team :
After searching for a tool to handle version control for Oracle objects with no luck we created the following (not perfect but suitable) solution:
Here is the most imporant query for step 1:
SELECT object_type, object_name,
dbms_metadata.get_ddl(object_type, object_name) object_ddl FROM user_objects
WHERE OBJECT_TYPE in ('INDEX', 'TRIGGER', 'TABLE', 'VIEW', 'PACKAGE',
'FUNCTION', 'PROCEDURE', 'SYNONYM', 'TYPE')
ORDER BY OBJECT_TYPE, OBJECT_NAME
One file per object approach helps to identify the changes. If I add a field to table TTTT
(not a real table name of course) then only TABLE_TTTT.SQL
file will be modified.
Both step 1 and step 3 are slow processes. (several minutes for a few thousand of files)