ebi168
asked on
Restore files to a new database?
Hi,
I am trying to restore data and redo log files (about a week ago full backup) of DB1 (noarchivelog mode) into a new database DB2 because the boss doesn't want to shut down DB1. Is this possible? Usually you do cloning or restoring to a new location instead of a new database.
I restored all the data files and online redo log files (no archived log files because this is a noarchivelog mode db) to the new location. Run backup controlfile to trace to get a createdb.sql script, then run the script. Then I run:
recover database until time '2004-8-29:00:06:35' using backup controlfile
(using backup controlfile is required, otherwise I got an error message)
But the server prompt me for archive log files:
ORA-00279: change 122574831 generated at 08/29/04 00:00:22 needed for thread 1
ORA-00289: suggestion : /u03/oracle/product/805/db s/arch/1_1 425.dbf
ORA-00280: change 122574831 for thread 1 is in sequence #1425
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
I certainly don't have any archived logs. If I go ahead open the database instead of running a recover command, I get:
ORA-00344: unable to recreate online log '/red02/TEST/redo02.log'
ORA-27040: skgfrcre: create error, unable to create file
SVR4 Error: 2: No such file or directory
Could anyone give me some clues? Thanks
I am trying to restore data and redo log files (about a week ago full backup) of DB1 (noarchivelog mode) into a new database DB2 because the boss doesn't want to shut down DB1. Is this possible? Usually you do cloning or restoring to a new location instead of a new database.
I restored all the data files and online redo log files (no archived log files because this is a noarchivelog mode db) to the new location. Run backup controlfile to trace to get a createdb.sql script, then run the script. Then I run:
recover database until time '2004-8-29:00:06:35' using backup controlfile
(using backup controlfile is required, otherwise I got an error message)
But the server prompt me for archive log files:
ORA-00279: change 122574831 generated at 08/29/04 00:00:22 needed for thread 1
ORA-00289: suggestion : /u03/oracle/product/805/db
ORA-00280: change 122574831 for thread 1 is in sequence #1425
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
I certainly don't have any archived logs. If I go ahead open the database instead of running a recover command, I get:
ORA-00344: unable to recreate online log '/red02/TEST/redo02.log'
ORA-27040: skgfrcre: create error, unable to create file
SVR4 Error: 2: No such file or directory
Could anyone give me some clues? Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Good clue! I mistyped redo01 into red01. The problem is fixed. Thanks guys.
It seems that the redo log file path is mismatched. You need to make sure the redo log restored exists in the indicated path or change the redo log file path to the indicated path.