Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to extract DDL for all Tablespaces

584429Sep 16 2009 — edited Oct 11 2011
Hi,

I'm in the process of creating a Dev instance from the production. I would like to generate ddl for creating all the tablespaces, then modify it since the storage structure is not the same.

I was thinking about dbms_metadata.get_ddl but it seems it can generate ddl for only one tablespace at a time. expdp could've been another option but I want to create the tablespaces empty; no data imported.

Anyone with a better idea? Database version is 11.1.0.7.0

dula.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2011
Added on Sep 16 2009
7 comments
66,457 views