Extracting DDL from the data dictionary to create a set of scripts to create a database from scratch
Hi,I have been trying for a few hours now to get a definitive, generic way of extracting the DDL I would need to create the objects necessary in a new database based on my existing database.
I found a very promising script here but it does not render well in my vi editor and I have been editing it for some time now and having various degress of success:
http://ask2shakir.wordpress.com/category/oracle/dbms_metadata/
I have searched My Oracle also, but again with no luck. Does anyone know where I get a script that will use DBMS_METADATA (or anything for that matter) to create a set of scripts to re-create the tablespaces, tables, indexes, roles, grants/privilages, constraints, synonyms, etc for my existing database? I am using Oracle 11g 11.2.0.3
I found a very promising script here but it does not render well in my vi editor and I have been editing it for some time now and having various degress of success:
http://ask2shakir.wordpress.com/category/oracle/dbms_metadata/
I have searched My Oracle also, but again with no luck. Does anyone know where I get a script that will use DBMS_METADATA (or anything for that matter) to create a set of scripts to re-create the tablespaces, tables, indexes, roles, grants/privilages, constraints, synonyms, etc for my existing database? I am using Oracle 11g 11.2.0.3
0