RE: any unix/linux script to generate schema DDL?
Date: Wed, 6 Aug 2008 12:21:28 -0400
I have developed an Oracle10g package using dbms_metadata that generates all of the DDL for a schema, stores it in a table, and (optionally) writes it to a flat file. It works pretty reliably. Email me privately if you would like a copy.
Prime Services Databases Americas
One Madison Avenue
New York, NY 10010
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Daniel Fink Sent: Wednesday, August 06, 2008 12:08 PM To: guangmei_at_yahoo.com
Subject: Re: any unix/linux script to generate schema DDL?
You can find some of my dbms_metadata sql scripts (use at your own risk because dbms_metadata is buggy as hell!) at http://www.optimaldba.com/scripts.html. All you need to do is wrap the script in your favorite unix language script.
-- Daniel Fink Help me support The Children's Hospital of Denver! I'm riding in the 2008 Courage Classic - 157 miles in 3 days Help me reach my goal of $2,500.00 in donations. Visit my Personal Rider Page http://www.couragetours.com/2008/danielwfink to donate OptimalDBA.com - Oracle Performance, Diagnosis, Data Recovery and Training OptimalDBA http://www.optimaldba.com Oracle Blog http://optimaldba.blogspot.com Lost Data? http://www.ora600.be/ Guang Mei wrote:Received on Wed Aug 06 2008 - 11:21:28 CDT
> Oracle 10.2.0.1.0
> Does anyone know any sites or URL that has unix/linux script(s) to
generate a schema DDL (including tables, index, views, package code, store procs, etc), say using soemthing like DBMS_METADATA.GET_DDL? I can use Oracle SQLDeveloper to do it manually, but I would like to have the script called by a cron job. BTW, I do not want to use dump file to import the db structure, just some unix/linux script to "extract" schema DDL. I googled around but could not find one.
-- http://www.freelists.org/webpage/oracle-l ============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ============================================================================== -- http://www.freelists.org/webpage/oracle-l