When needing to change some parameter or other, I do an export with rows=n and then bring the *.dmp file up in my editor and select the lines I want to change. It's much easier than messing with the badly formatted indexfile. In fact, I use the norows *.dmp to do things like capture and create sequences, grants, etc. - stuff that you can't get from the indexfile. Oh, my editor is the ancient Kedit (Mansfield Software), a knockoff of IBM's Xedit. I've used it on DOS, OS/2, and Windows for about 20 years now - couldn't do without it. Jack C. Applewhite - Database Administrator Austin (Texas) Independent School District 512.414.9715 (wk) 512.935.5929 (pager) May have come a long way, but we got a long way to go. -- B.W. Stevenson "Gene Sais" <Gsais@xxxxxxxxxxxxxxxxxxx> Sent by: oracle-l-bounce@xxxxxxxxxxxxx 02/18/2004 02:46 PM Please respond to oracle-l To: <oracle-l@xxxxxxxxxxxxx> cc: Subject: Re: PreCreate Oracle Tables Thank you for your response. I forgot to mention, its not an exact copy. I need to move some tables, indexes, change storage, and exclude one schema. I do like option #5, can never test backup/recovery enough! But, if you had to choose 2 or 3, which would you choose? >>> Daniel.Fink@xxxxxxx 2/18/2004 3:34:09 PM >>> Don't forget option 5) Use a backup from production and perform a full recovery. It not only creates the database, it tests your production backups and refreshes your recovery skills. If there are not any changes to the db, I like 4 as it is very quick and painless. Gene Sais wrote: > When copying a database, what are the best practices? > > 1) I typically, perform a full export from db A, create db B, import > dump from A into B. > > 2) Same as 1, but precreate tables with indexfile and then import > ignore=y. > > 3) Same as 1, but precreate tables with dynamic sql (create table emp > as select * from emp@dblink where 1=2), then import ignore=y. > > 4) Copy datafiles, recreate controlfile and rename db. > > I am looking to precreate the objects before importing the data and in > the past, I have used #2, but #3 is more flexible and requires no > editing of indexfile. > > Are they any disadvantages of using #3 from #2? > > Thanks, > Gene > ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx put 'unsubscribe' in the subject line. -- Archives are at //www.freelists.org/archives/oracle-l/ FAQ is at //www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------