Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Copying live to test database
There is a quicker way to achive database copying but it is more
technically involved.
2. Shutdown your live database.
3. Copy all the datafile, redo log files and control files to the dev location and rename them accordingly.
4. Edit the trace file created at 1. to look something like this. ( this example is for a database on raw volumes.). The name of the database needs to be changed to reflect the dev name and the names of all files need to be amended to point to the new names created at 3.
connect internal
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE SET DATABASE connect internal
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE SET DATABASE CAPPP RESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 4
MAXDATAFILES 1000
MAXINSTANCES 8
MAXLOGHISTORY 400
LOGFILE
GROUP 1 '/dev/vx/rdsk/rest/capp_rdo00' SIZE 199M, GROUP 2 '/dev/vx/rdsk/rest/capp_rdo01' SIZE 199M, GROUP 3 '/dev/vx/rdsk/rest/capp_rdo02' SIZE 199MDATAFILE
6. Restart the live database.
I have done this to recreate a 100Gb data warehouse in under an hour where export/import took a day.
MTaylo1987 <mtaylo1987_at_aol.com> wrote in article
<1998051820021400.QAA12939_at_ladder01.news.aol.com>...
> I would like a method whereby I can copy all the data in my Live database
to
> the test one. Iam aware an export/import wo do the job but it is rather
long
> winded. > > Are there any other ways of achieving this. > > Note The test database will not be in use at the time the copy occurrs. >Received on Tue May 19 1998 - 03:31:55 CDT