Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Reverse engineer tablespaces.
Yes it will fail, which is why I was looking for a script, which Paul Drake had kindly sent me. Thx Paul!
Now all I need is for us to find out which disk on our test box RAID has failed so we can recreate the DB. <sigh>
Rich Jesse System/Database Administrator Rich.Jesse_at_qtiworld.com Quad/Tech International, Sussex, WI USA
> -----Original Message-----
> From: Rachel Carmichael [mailto:carmichr_at_hotmail.com]
> Sent: Wednesday, May 23, 2001 22:16
> To: Multiple recipients of list ORACLE-L
> Subject: Re: Reverse engineer tablespaces.
>
>
> again, this script fails if the tablespace has more than one
> datafile in it
>
>
> >From: Rodd Holman <rodney.holman_at_lodgenet.com>
> >Reply-To: ORACLE-L_at_fatcity.com
> >To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> >Subject: Re: Reverse engineer tablespaces.
> >Date: Wed, 23 May 2001 13:15:30 -0800
> >
> >This mod grabs the current default storage parameters from
> >dba_tablespaces
> >
> >spool db_structure.txt
> >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;
> >spool off
> >
> >Rodd
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jesse, Rich INET: Rich.Jesse_at_qtiworld.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 Thu May 24 2001 - 11:05:51 CDT
![]() |
![]() |