RE: Another 11g enigma

  • From: "Dunbar, Norman (Capgemini)" <norman.dunbar.capgemini@xxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: <maureen.english@xxxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 25 Aug 2011 09:16:11 +0100

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
--
//www.freelists.org/webpage/oracle-l


Other related posts:

  • » Another 11g enigma- Maureen English
  • » RE: Another 11g enigma - Dunbar, Norman (Capgemini)