Take a look at my site, www.vampired.net, you will find a script to do both,
it can be modified pretty easily to remove the storage clauses.

"Do not criticize someone until you walked a mile in their shoes, that way
when you criticize them, you are a mile a way and have their shoes."

Christopher R. Spence 
Oracle DBA
Phone: (978) 322-5744
Fax:    (707) 885-2275

Fuelspot
73 Princeton Street
North, Chelmsford 01863
 



-----Original Message-----
Sent: Friday, September 07, 2001 1:06 PM
To: Multiple recipients of list ORACLE-L


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
[EMAIL PROTECTED]
http://www.cpas.com


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Sam Bootsma
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Christopher Spence
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to