Database Administration (MOSC)

MOSC Banner

Extracting DDL from the data dictionary to create a set of scripts to create a database from scratch

edited May 23, 2013 5:39AM in Database Administration (MOSC) 8 commentsAnswered
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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center