Xref: alice comp.databases.oracle.server:29428
Path: alice!news-feed.fnsi.net!newsfeed.direct.ca!nntprelay.mathworks.com!Supernews60!supernews.com!Supernews69!not-for-mail
From: Susan Wilson <sooz@pobox.com>
Newsgroups: comp.databases.oracle.server
Subject: Re: Copying to a test database
Date: Sat, 19 Sep 1998 09:41:40 -0700
Organization: http://www.supernews.com, The World's Usenet: Discussions Start Here
Lines: 28
Message-ID: <3603DEC4.1839962@pobox.com>
References: <01bde34c$20d39a00$f96916ac@williams-dennis>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: 906223431 L9ONVCM4D5297CCB1C usenet53.supernews.com
X-Complaints-To: newsabuse@supernews.com
X-Mailer: Mozilla 4.5b2 [en] (Win95; I)
X-Accept-Language: en

The easiest (hack) way to do this is, ... carefully ...
Copy all the datafiles that make sense (i.e.. SYSTEM, RBS, and DATA,
redologs) for the data you want in your test instance.  Create a new
initSID.ora and configSID.ora file for the test instance.  Make sure
there are no pre-existing control files for the test instance.  Startup
in mount mode, and issue the 'create controlfile' command -- using the
new locations of the datafiles, etc that you copied.  You should be off
an running.  You can get a "template" dcl for creating the controlfile
by issuing the 'backup controlfile to trace' command from the production
instance. 

This may take a little tweaking, but it's fast.
- sooz

DENNIS WILLIAMS wrote:
> 
> I am setting up some test databases and my users have asked me to move all
> the data from production. Someone told me that you could simply copy the
> Oracle files to the test instance, but they didn't know the specifics of
> how this was accomplished. Has anyone done this? What are the restrictions
> - must I copy the entire instance, or is there a way to do a datafile at a
> time?
> 
> Dennis Williams
> DBA
> Lifetouch, Inc.
> 612-826-5543
> dwilliams@lifetouch.com
