Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Reverse engineer tablespaces.

Re: Reverse engineer tablespaces.

From: Rodd Holman <rodney.holman_at_lodgenet.com>
Date: Wed, 23 May 2001 14:35:24 -0700
Message-ID: <F001.0030C742.20010523132254@fatcity.com>

Actually this version will create your tablespaces with the same structure and file_id's as your current db.

select 'create tablespace '||a.tablespace_name||
       ' datafile '||''''||b.file_name||''''||' size '||b.bytes/(1024 * 
1024)||'M'||
       ' default storage ( initial '||a.initial_extent||

' next '||a.next_extent||
' pctincrease '||a.pct_increase||
' maxextents '||a.max_extents||');'
from dba_tablespaces a, dba_data_files b

where a.tablespace_name = b.tablespace_name order by b.file_id;
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Rodd Holman
  INET: rodney.holman_at_lodgenet.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed May 23 2001 - 16:35:24 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US