Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Restore files to a new database?

Posted on 2004-09-08
3
624 Views
Last Modified: 2007-12-19
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/dbs/arch/1_1425.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
0
Comment
Question by:ebi168
3 Comments
 
LVL 23

Accepted Solution

by:
seazodiac earned 500 total points
ID: 12009402
Since you have a FULL database backup,

you don't need to recover the database ,


SO your second approach bring you to the right track.

this error message: "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"


You need to make sure the REDO log files restored from backup are in this directory: '/red02/TEST/redo02.log'


Or you could startup the database in MOUNT mode:

SQL>startup mount;


then rename the log file into the right directory:

SQL>alter database rename file '<the old directory path from DB1>' to '<the new directory path for db2>';

0
 
LVL 12

Expert Comment

by:geotiger
ID: 12009487

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.
0
 

Author Comment

by:ebi168
ID: 12010273
Good clue! I mistyped redo01 into red01. The problem is fixed. Thanks guys.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question