Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: problem in creating control file?

RE: problem in creating control file?

From: SARKAR, Samir <Samir.SARKAR_at_nottingham.sema.slb.com>
Date: Tue, 12 Mar 2002 04:48:34 -0800
Message-ID: <F001.004255B3.20020312044834@fatcity.com>


What did u do ?? Did u use the command 'alter database backup controlfile to trace' from
database TESTDB to generate the 'create controlfile' statement ?? If so, the datafiles in the 'create controlfile' statement should have the name 'TESTDB' as the
db name in their header. You can only change the path of the datafile names in the 'create controlfile'
statement and not the actual datafile itself while creating the clone. Log on to the TESTDB database again and ascertain whether the datafiles listed in ur 'create controlfile'
statement matches those in TESTDB.
Modify the 'create controlfile' statement to read : CREATE CONTROLFILE RESUE SET DATABASE "TEST2" RESETLOGS ARCHIVELOG   Hope this helps,  

Samir  

Samir Sarkar
Oracle DBA
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: 12 March 2002 11:48
To: Multiple recipients of list ORACLE-L  

I try to clone my database . I have the datafiles on D:\yedek123 and want to create the control files .
What I do is :
set oracle_sid=new_sid  

svrmgrl internal/****
startup nomount pfile=new_pfile  

CREATE CONTROLFILE DATABASE "TEST2" RESETLOGS ARCHIVELOG     MAXLOGFILES 32
    MAXLOGMEMBERS 2
    MAXDATAFILES 254
    MAXINSTANCES 1
    MAXLOGHISTORY 1815
LOGFILE

  GROUP 1 'D:\yedek123\REDO01.LOG'  SIZE 1M,
  GROUP 2 'D:\yedek123\REDO02.LOG'  SIZE 1M,
  GROUP 3 'D:\yedek123\REDO03.LOG'  SIZE 1M
DATAFILE
'D:\yedek123\SYSTEM01.DBF',
'D:\yedek123\RBS01.DBF',
'D:\yedek123\USERS01.DBF',
'D:\yedek123\TEMP01.DBF',
'D:\yedek123\TOOLS01.DBF',
'D:\yedek123\INDX01.DBF',
'D:\yedek123\DR01.DBF'
CHARACTER SET WE8ISO8859P9;   But When I run the create control file script , I am encountering the error below.
CREATE CONTROLFILE DATABASE "TEST2" RESETLOGS ARCHIVELOG *
ORA-01503: CREATE CONTROLFILE failed
ORA-01161: database name TESTDB in file header does not match given name of TE
ST2
ORA-01110: data file 1: 'D:\yedek123\SYSTEM01.DBF'

TESTDB is the original database .
TEST2 is new DB.  

What is the problem ?
Thank you.      

Bunyamin K. Karadeniz
Oracle DBA / Developer
Civilian IT Department
Havelsan A.S. Eskisehir yolu
7.km Ankara Turkey
Phone: +90 312 2873565 / 1217
Mobile : +90 535 3357729  

The degree of normality in a database
is inversely proportional to that of its DBA.



This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of SchlumbergerSema.
If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited.

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 Tue Mar 12 2002 - 06:48:34 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US