I was trying to create a new database with a cold backup of another database, when I say Startup
force it gives an error saying that the dB name in the header doesnot match for the control file. I
copied all the files from the cold backup to the appropriate locations for the new database.
Can somebody suggest what or how should I go about this, appreciate your help.
Yes, you will need to rerun the "create controlfile ..." statement to create a new database. Don't forget to create a new pfile and change references for controlfiles to new locations and change references in create controlfile statement to new file locations.
For example, to create a database based off of my backup directory.
startup nomount;
CREATE CONTROLFILE SET DATABASE "newDB" RESETLOGS NOARCHIVELOG
MAXLOGFILES 255
MAXLOGMEMBERS 2
MAXDATAFILES 999
MAXINSTANCES 8
MAXLOGHISTORY 1588
LOGFILE
GROUP 1 (
'/ora_bkup/u06/oradata/XLAW7/redoXLAW701.log'
) SIZE 1500M,
GROUP 2 (
'/ora_bkup/u07/oradata/XLAW7/redoXLAW702.log'
) SIZE 1500M,
GROUP 3 (
'/ora_bkup/u08/oradata/XLAW7/redoXLAW703.log'
) SIZE 1500M
DATAFILE
'/ora_bkup/u02/oradata/XLAW7/system01.dbf',
'/ora_bkup/u03/oradata/XLAW7/rbs01.dbf',
'/ora_bkup/u03/oradata/XLAW7/temp01.dbf',
'/ora_bkup/u02/oradata/XLAW7/tools01.dbf',
'/ora_bkup/u02/oradata/XLAW7/users01.dbf',
'/ora_bkup/u03/oradata/XLAW7/schema.dbf'
CHARACTER SET US7ASCII;
Thanks for both Doug and Kishore Kumar, for yoou prompt reply. I was able to create the database.
But it says system01.dbf needs more recovery. I don't know what this means.
try this:
startup mount
when database is mounted:
recover database;
when media recovery complete message is seen
alter database open;
database gets opened.
If you do not think other wise i have some ?s.
(1) are u doing it on the same machine or not
(2) what all files u copied.
(3)what is necessacity of creating control file when database is created using coldbackup.
Bookmarks