restoring RMAN backup to point in time on another server, different SID & directory structure [message #685775] |
Tue, 22 March 2022 15:08 |
|
Glenstr
Messages: 6 Registered: July 2015 Location: Canada
|
Junior Member |
|
|
Most searches on this just show how to clone a prod DB to another server, which is not what I want to do.
I have a test server, with a test and a dev instances of prod, periodically refreshed by doing a user managed backup (put tablespace in backup - copy file(s) to test server folder(s) - end tablespace backup) that backs up datafiles directly to test servers directory(s), then startup nomount, recreate controlfile with new file locations, new SID, issue recover until cancel, apply an archived log or two, then open resetlogs.
The test server has one less drive than prod server, so all datafiles reside on D:\oracle\oradata\<sid> instead of on D:\oracle\oradata\<sid> and E:\oracle\oradata\<sid> drives
However, I have been asked if I can restore to a point in time prod was at 4 days ago, on prod server I do an RMAN backup with 7 day recovery window on disk, so all necessary backups reside on prod, which is fast recovery area on a Z: drive on prod server.
Test server does not have a Z drive, but I can map a Z drive on test to read the Z drive on prod.
Most articles I have found on this assume starting from scratch on target (test) server, and keeping database SID the same, and involve copying control file and SPFile over, as well as creating access to source DB via tnsnames.
In my case I have a create controlfile script that points to new file locations and SPfile is already there for the dev database, and there is no access to prod database via tnsnames.
Trying to find the simplest way to restore the test DB to a point in time from the RMAN backups on prod server, do I still need to copy controlfile and spfile over from prod then point at new datafile locations from within RMAN?
Any other suggestions?
Thanks in advance..
|
|
|
|
|
|
|
|
|
|