RE: Another 11g enigma

From: Dunbar, Norman (Capgemini) <"Dunbar,>
Date: Thu, 25 Aug 2011 09:16:11 +0100
Message-ID: <919FC80F27E0C6428106496EDF92A752135CD366_at_EXCCLUS05.PRODDS.NTNL>



Morning Maureen,

>> We clone our production database to another database about 3
>> times a year.

>> ...

>> Basically, we just copy the data files and log files to the
>> new location,
>> rename them because they all contain the database SID in
>> their name, create
>> a new parameter file and control files and voila, we have a
>> copy of the database.

When you say "we rename them" how exactly do you do this? I'm hoping you physically rename the files on the OS, and then:

startup mount
alter database rename file 'old log_file name' to 'new log_file name'; ...
alter database rename file 'old data_file name' to 'new data_file name'; ...
alter database open;

(Although to rename a data file, the database can already be open.)

The above sets up the control file properly. If this is a clone to the same server, I remember (back at 8.0/8i) having a clone problem whereby if the original database was up, I couldn't get the clone to start as some file or other (sorry, I forget which) was "already in use". Closing the original and starting the clone, then starting the original worked fine. I haven't cloned in this manner since then though - I use RMAN these days.

Cheers,
Norm.

Norman Dunbar
Contract Senior Oracle DBA
Capgemini Database Team (EA)
Internal : 7 28 2051
External : 0113 231 2051

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Aug 25 2011 - 03:16:11 CDT

Original text of this message