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: Missing DDL?

RE: Missing DDL?

From: Reardon, Bruce (CALBBAY) <Bruce.Reardon_at_comalco.riotinto.com.au>
Date: Thu, 31 May 2001 22:04:40 -0700
Message-ID: <F001.00317592.20010531211547@fatcity.com>

Sean,

Another option would be:

Get yourself a copy of strings from
http://www.sysinternals.com/misc.htm#Strings (a very useful site for NT utilities that should have been in NT!).

Do the export (someone else suggested a full export is required) Then do a

        strings -a export_file.dmp | find "create tables" /i > create_tblspcs.sql

And create_tblspcs.sql will contain the create tablespace commands.

Regards,
Bruce Reardon

-----Original Message-----
Sent: Thursday, 31 May 2001 11:27

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" <Sean.ONeill_at_organon.ie>
>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
>
>
>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" <Sean.ONeill_at_organon.ie> 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: sean.oneill_at_organon.ie [subscribed: Digest
> > Mode]
> >

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Reardon, Bruce (CALBBAY)
  INET: Bruce.Reardon_at_comalco.riotinto.com.au

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 Fri Jun 01 2001 - 00:04:40 CDT

Original text of this message

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