I have a production system with all constraints required on the system and want to duplicate the effort in Development system.
I am looking for a script that can extract code "alter table" statements from Production. I am looking for only Primary and Foreign key constraints and not Check and not null constraints..
I am looking into dba_constraints and dba_cons_cols to achieve this, but if anyone has more ideas, would appreciate it..
Pando, I want to know what are the constraints that are not existing in DEV but exists in Production.. Also there could be some tables in production that are not in dev and vice-versa..
Pando.. I am NOT only looking for the script to compare betn the Prod and Dev.
I will create DB links in the process.. DB Links only gives me access to the other database from one environment and with a select, I can list the differences between the tables, I can use outer join, but i am looking for a script to generate "alter table add constraints" from selecting from the 2 databases.... (select statement concatinating with alter ....)
Bookmarks