Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01161: database name DEVDB in file header does not match given name of TESTDB

007Sep 23 2015 — edited Sep 23 2015

Hi,

I am using oracle database 11g(11.2.0.1) in OEL5.I wanted to clone my development db using its cold backup to different db name in same server.I have cloned it successfully but mistakenly i missed one datafile in my control file recreation script.So i was able to open the database but file 5 is in recovery status as shown below.

     FILE# NAME                                                                                       STATUS

---------- ------------------------------------------------------------------------------------------ -------

         5 /u01/app/oracle/product/11.2.0/db_1/dbs/MISSING00005                                       RECOVER

Now i added the original file 5 from cold backup in the control file and tried to recreate the control file but i face the below error.


ERROR at line 1:

ORA-01503: CREATE CONTROLFILE failed

ORA-01161: database name DEVDB in file header does not match given name of

TESTDB

ORA-01110: data file 5: '/u01/TEST2.dbf'

All the other datafiles headers are having new DB name since i opend the database already but this file 5 header alone is having old db name.

How to resolve this??

Do i need to copy all the datafiles again and recreate the controlfile with new DB name??

Regards,

007

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2015
Added on Sep 23 2015
4 comments
1,097 views