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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to