Solved

How to get all Tablespace DDLs?

Posted on 2011-09-16
3
292 Views
Last Modified: 2012-05-12
I have a 10g database with 25 tablespaces. I'm trying to create one more database with similar tablespaces and with same sizings. So, i need to get all tablespace DDLs from existing database.
How can i get them?
0
Comment
Question by:ajaybelde
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 333 total points
ID: 36551554
Check out dbms_metadata.get_ddl.

Here is the list of objects you can use:
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16760/d_metada.htm#BGBIEDIA
0
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 333 total points
ID: 36551562
0
 
LVL 73

Assisted Solution

by:sdstuber
sdstuber earned 167 total points
ID: 36551568
s elect dbms_metadata.get_ddl('TABLESPACE',tablespace_name) from dba_tablespaces
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problems using Provider=OraOLEDB.Oracle via VBScript/Classic ASP 5 69
Can i Import Access Table Into Oracle Using Toad 36 180
MULTIPLE DATE QUERY 15 79
run sql script from putty 4 37
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question