RE: RMAN duplicate database

From: Robertson Lee - lerobe <Lee.Robertson_at_acxiom.com>
Date: Mon, 27 Apr 2009 15:21:18 +0100
Message-ID: <F1A191B056E5E04EA2134D842F9396F819B320AC_at_sunmsx01.Corp.Acxiom.net>



As Jared pointed out to me, I should have posted what the problem turned out to be instead of just saying that I realised what was wrong - oops !!!  

Anyway, the example in my first post below was a poor one anyway.  

my original filename was more of the form  

/u01/oradata/DB1/DB1file01.dbf
 

I wanted it to end up like  

/u01/oradata/DB2/DB2file01.dbf
 

So basically my init.ora parameter should have been as follows.  

db_file_name_convert=(/u01/oradata/DB1/DB1,/u01/oradata/DB2/DB2)  

Cheers and apologies Jared :-)  

On Thu, Apr 23, 2009 at 4:12 AM, Robertson Lee - lerobe <Lee.Robertson_at_acxiom.com> wrote:

        OK, ignore that last email          

        Just realised what I should have done. Doofus :-(          


        From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Robertson Lee - lerobe

	Sent: 23 April 2009 12:02
	To: oracle-l_at_freelists.org
	Subject: RMAN duplicate database
	
	
	Hi,
	 
	Oracle 10.2.0.3
	AIX 6
	 
	I ran a duplicate database yesterday from an RMAN tape backup.
This was to basically copy a backed up database to a new one on the same box. Although I specified the new file name for logs and data files in the new init.ora file, and they were placed in the correct directories, I was wondering if there was an automated method for changing the actual filenames as well.          

        e.g          

        Original filename was          

        /u01/oradata/DB1/fileDB1.dbf          

        Once restored into duplicate database it became          

        /u01/oradata/DB2/fileDB1.dbf          

        Is it possible to ensure automatically that the file name itself changes from DB1 to DB2 as well ?          

        Apologies if this is easy but I have looked at the manuals etc and cannot see anything ?          

        Regards          

        Lee                   



*

        The information contained in this communication is confidential, is

        intended only for the use of the recipient named above, and may be

        legally privileged.         

        If the reader of this message is not the intended recipient, you are

        hereby notified that any dissemination, distribution or copying of this

        communication is strictly prohibited.         

        If you have received this communication in error, please resend this

        communication to the sender and delete the original message or any copy

        of it from your computer system.         

        Thank you.         



*
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Apr 27 2009 - 09:21:18 CDT

Original text of this message