Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Script to generate Table DDL

Re: Script to generate Table DDL

From: <oliver.willandsen_at_sg.cec.be>
Date: Mon, 09 Nov 1998 13:50:22 GMT
Message-ID: <726ruu$5ck$1@nnrp1.dejanews.com>


In article <722kvp$vl0$1_at_nnrp1.dejanews.com>,   mjain_at_my-dejanews.com wrote:
> *** A copy of this message is also sent to <jcman_at_worldnet.att.net>
>
> Try free shareware called TOAD!! It is excellent and can let you
> do what trying to do!!
>
> With TOAD it is a breeze!!
>
> Go to website http://www.toadsoft.com/ and download the tool
> from this site!!
>
> You will be glad that you did it!! I tried it and I am very
> happy with this tool.
>
> Thanks to TOADMAN!!
>
> Hope this helps,
>
> Manoj Jain
> Oracle Certified Professional - OCP DBA
> Chauncey Certified Oracle7 DBA
>
> In article <721vg7$cie_at_bgtnsc02.worldnet.att.net>,
> "Jerry" <jcman_at_worldnet.att.net> wrote:
> > Can anyone share with me a script that would read the data dictionary and
> > generate the DDL necessary to create those tables? Indexes would be nice,
> > too. Thanks in advance.
> >
> >
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>

Yes, it is a very fine tool indeed - only it's not free anymore - as you'll see when you connect to the above mentioned www.toadsoft.com

schema=$1
table=$2
sqlplus ingesdo/ingesdo >${table}.tmp <<EOF set tab off
set serveroutput on
set heading off
set pagesize 0
set feedback off
exec gentable('${schema}', '${table}')
exit
EOF
# cut -c 4- ${table}.tmp
sed '1,$s/^-- //g' ${table}.tmp
mv ${table}.tmp $GR_HOME/sql/${table}.sql


gentable.sql



show errors

Regards

--
Oliver Willandsen
European Commission
http://europa.eu.int

All comments represent my own opinion and may not in any circumstance be regarded as stating an official position of the European Commission

-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Mon Nov 09 1998 - 07:50:22 CST

Original text of this message

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