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: Bunyamin K. Karadeniz <bunyamink_at_havelsan.com.tr>
Date: Tue, 12 Mar 2002 06:33:37 -0800
Message-ID: <F001.004258DE.20020312063337@fatcity.com>


I have one db named testdb and I want to create the other one test2. Ok . I used the set command in creating control file and the contrrol files created well. but now the problem is one datafile needs recovery and it can not open with resetlogs

  Are you sure the sid is set to the new sid (TEST2) and also add a SET command in the first line   CREATE CONTROLFILE SET DATABASE "TEST2" RESETLOGS ARCHIVELOG              HTH       John
    -----Original Message-----
    From: Bunyamin K. Karadeniz [mailto:bunyamink_at_havelsan.com.tr]     Sent: 12 March 2002 11:48
    To: Multiple recipients of list ORACLE-L     Subject: problem in creating control file?

    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 electronic message contains information from the mmO2 plc Group   which may be privileged or confidential. The information is intended to be   for the use of the individual(s) or entity named above. If you are not the   intended recipient be aware that any disclosure, copying, distribution or   use of the contents of this information is prohibited. If you have received   this electronic message in error, please notify us by telephone or email   (to the numbers or address above) immediately.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Bunyamin K. Karadeniz
  INET: bunyamink_at_havelsan.com.tr

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 - 08:33:37 CST

Original text of this message

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