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

Home -> Community -> Mailing Lists -> Oracle-L -> Script to Generate SQL To Recreate All Tables and Indexes for Sch

Script to Generate SQL To Recreate All Tables and Indexes for Sch

From: Sam Bootsma <SamB_at_cpas.com>
Date: Fri, 07 Sep 2001 09:27:34 -0700
Message-ID: <F001.00386CF3.20010907090534@fatcity.com>

Hello,

Can anybody help me with a script or tool that will generate SQL to recreate all tables and all indexes in a schema? I DO NOT want the script to generate storage parameters.

If anybody has a script that does this, or can suggest a free tool, please let me know. I need to recreate all tables and indexes for about 20 schemas. I need the tables and indexes to inherit storage parameters from the tablespace. My plan is as follows:
1) Create dump file of each of the existing schema's 2) Run the script to generate SQL to create all tables and all indexes in the schema
3) Drop the original schema using cascade option 4) Recreate the schema with appropriate privileges (schema will be empty at this point with no objects)
5) Precreate the tables and indexes (with no storage parameters) using the script generated in step 2)
6) Import (specifying ignore=y) data into the pre-created tables using the dump file created in step 1)

We are running Oracle 8.1.6 on Windows NT.

Thanks!

Sam Bootsma, OCP
Technical Support Analyst
CPAS Systems Inc.
416-422-0563 x237
samb_at_cpas.com
http://www.cpas.com

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Sam Bootsma
  INET: SamB_at_cpas.com

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 Sep 07 2001 - 11:27:34 CDT

Original text of this message

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