Sean,
Importing with INDEXFILE will show TABLE create statements as well as INDEX
create statements but will not show TABLESPACE create statements.
To get the tablespace create statements (this will not be a pretty output
file!):
imp userid=<userid/password> file=<file> log=show.log show=y rows=n
full=y
this will generate a file called show.log that will contain ALL DDL
statements for that database. At the beginning of the file, you should see
the create tablespace commands.
You will need to edit these commands to make them runnable, Oracle chops the
line off at (I think) 80 characters and then wraps to the next line.
Everything will be enclosed in double quotes as well.
Rachel
>From: "O'Neill, Sean" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
>Subject: RE: Missing DDL?
>Date: Thu, 31 May 2001 01:25:25 -0800
>
>Anita,
>
>Followed your suggestion BUT... does not seem to be working. The export
>log
>is showing that it exports tablespace definitions but using INDEXFILE
>parameter with Import utility does not seem to show the DDL for creating
>the
>tablespaces. Perhaps this is the way it is meant to be, I'd just like to
>verify one way or the other. Anyone out there know???
>Is there some other way to view the DDL for tablespace creation?.
>
>Expanding on where I'm coming form here is that if for example one had an
>export dump of a DB and needed to move it to another machine which had a
>different disk configuration, how does one direct the data files to
>different disks. I suspect its using a dump of control file and modifying
>same. What if you don't have the control file dump what do you do then?
>
>- Sean
>
>-----Original Message-----
>Sent: Thursday, May 31, 2001 08:10
>To: 'A. Bardeen'
>
>
>Anita,
>
>Thanx for replying to below. Much appreciated!
>
>- Sean
>
>-----Original Message-----
>Sent: Wednesday, May 30, 2001 17:02
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>
>
>Sean,
>
>The indexfile parameter shows only the create table
>statements (REM'd out) and the additional indexes (i.e
>not indexes used to enforce PK constraints).
>
>To see all the DDL, use the SHOW=Y parameter along
>with LOG=<filename>.
>
>HTH,
>
>-- Anita
>
>--- "O'Neill, Sean" <[EMAIL PROTECTED]> wrote:
> > Created a sandbox database using Database
> > Administration utiltity, (8i Rel
> > 3, PE, NT4). I ran full export of a database. I
> > then used the imp utility
> > with indexfile parameter to create the DDL for the
> > database. I expected to
> > be able to find the DDL for the tablespaces TOOLS,
> > USERS and some others but
> > can't. OK, so there are no tables created in them
> > but I'm puzzled now as to
> > how these tablespaces are created during import?.
> > Probably missing
> > something obvious, but anyones sane input would be
> > appreciated!.
> >
> >
> > Sean :)
> >
> > Rookie Data Base Administrator
> > [0%] OCP Oracle8i DBA
> > [0%] OCP Oracle9i DBA
> > -------------------------------- ------------
> > Organon (Ireland) Ltd.
> > E-mail: [EMAIL PROTECTED] [subscribed: Digest
> > Mode]
> >
> > Visit: http://groups.yahoo.com/group/Oracle-OCP-DBA
> >
> > "Nobody loves me but my mother... and she could be
> > jivin' too." - BB King
> >
> >
> > --
> > Please see the official ORACLE-L FAQ:
> > http://www.orafaq.com
> > --
> > Author: O'Neill, Sean
> > 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).
>
>
>__________________________________________________
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail - only $35
>a year! http://personal.mail.yahoo.com/
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: O'Neill, Sean
> 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).
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Rachel Carmichael
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).