Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: schema creation
You could use export / import to build the script.
1. Use export to export the schema with no data (rows=n)
2. Use import to "show=y" the ddl for the schema.
The output needs to be formatted, but it is there.
IE
exp name/password full=n rows=n owner=schema_name ...
imp name/password show=y full=y file=xxxnamexx.dmp > textfile
#reformat with awk (on UNIX)
An awk reformat job is at http://www.tc.umn.edu/~hause011/.
HTH
James
In article <7vjsri$qin$1_at_nnrp1.deja.com>,
npomfret2_at_my-deja.com wrote:
> Is there an Oracle tool which produces creation scripts for an already
> existing schema? I've tried Schema Builder but the show SQL option
> just gives me an empty grey text area.
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Fri Nov 05 1999 - 15:05:51 CST
![]() |
![]() |