Unix Technical Forum

How to obtain tablespace creation scripts?

This is a discussion on How to obtain tablespace creation scripts? within the Oracle Database forums, part of the Database Server Software category; --> Hi, How can I generate tablespace creation scripts provided I've admin access to that DB. Regards, Anand...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 05:16 AM
anandmohans@gmail.com
 
Posts: n/a
Default How to obtain tablespace creation scripts?

Hi,

How can I generate tablespace creation scripts provided I've admin
access to that DB.

Regards,
Anand

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 05:16 AM
Gints Plivna
 
Posts: n/a
Default Re: How to obtain tablespace creation scripts?

I assume quite many GUI DBA tools can generate DDL, for example
Enterprise manager (on java) surely can do that.
The other possibility is to use dbms_metadata

SQL> set long 10000
SQL> select dbms_metadata.get_ddl('TABLESPACE', 'USERS') from dual;

DBMS_METADATA.GET_DDL('TABLESPACE','USERS')
--------------------------------------------------------------------------------

CREATE TABLESPACE "USERS" DATAFILE
<skipped>

Gints Plivna
http://www.gplivna.eu

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 05:17 AM
Mladen Gogala
 
Posts: n/a
Default Re: How to obtain tablespace creation scripts?

On Thu, 19 Apr 2007 00:22:11 -0700, anandmohans wrote:

> Hi,
>
> How can I generate tablespace creation scripts provided I've admin
> access to that DB.
>

By using SQL.

--
http://www.mladen-gogala.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 05:18 AM
hpuxrac
 
Posts: n/a
Default Re: How to obtain tablespace creation scripts?

On Apr 19, 3:08 pm, Mladen Gogala <mgogala.SPAM-ME....@verizon.net>
wrote:
> On Thu, 19 Apr 2007 00:22:11 -0700, anandmohans wrote:
> > Hi,

>
> > How can I generate tablespace creation scripts provided I've admin
> > access to that DB.

>
> By using SQL.
>
> --http://www.mladen-gogala.com


They tried to make me go to rehab I said no no no

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com