Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Changing the SID of a database
Take a backup of the controlfile statement by doing a
alter system backup controlfile to trace;
Then use this script to create a new controlfile with the new SID after u have transferred all the datafiles, redolog files and archive log files. The first line of the create controlfile script may look aomething like :
CREATE CONTROLFILE REUSE SET DATABASE "<NAME OF NEW DB>" RESETLOGS
ARCHIVELOG
Change the path of the log files and other datafiles in the script if they
happen to
be different than the old database. Remember to run the create controlfile
script in
nomount mode.
Remember to change the db_name parameter in ur parameter file for the new database.
After creating the controlfile, startup the database using the resetlogs option :
alter database open resetlogs;
Hope this helps,
Samir
Samir Sarkar
Oracle DBA - Lennon Team
SchlumbergerSema
Email : samir.sarkar_at_nottingham.sema.slb.com
samir.sarkar_at_sema.co.uk
Phone : +44 (0) 115 - 957 6217
EPABX : +44 (0) 115 - 957 6418 Ext. 76217
Fax : +44 (0) 115 - 957 6018
-----Original Message-----
Sent: 04 March 2002 15:23
To: Multiple recipients of list ORACLE-L
I'm going to take the datafiles from a cold backup and use them for a new
database. However, to do this, I need to change the SID of the new db. I've
read
Thanks for any help.
that it's possible, but not how to do it. Is this an easy thing to do, or
would
it be better to extract the tables and create the new db that way?
Rick
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: rick_at_dormir.org
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
If you have received this email in error please notify the SchlumbergerSema Helpdesk by telephone on +44 (0) 121 627 5600.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: SARKAR, Samir
INET: Samir.SARKAR_at_nottingham.sema.slb.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Mar 04 2002 - 10:13:23 CST