I have an Oracle db with a lot of tables and a lot of properties like: primary key,Unique key, Foreign key,Indexes, Privileges and partitions.
I need to create the same tables with the same properties in new Oracle db. Is there a way to generate a single creation script for all tables in my database?
Thanks
Yes. You can execute below query and the content in 'Definition' column is a CLOB which contains the DDL for the corresponding object
Below is a quick VB Script which helps extract the CLOBs