Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Reverse engineer tablespaces.
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
-- 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