Solved

How to recover after hot backup in Oracle

Posted on 2011-03-12
1
1,053 Views
Last Modified: 2012-06-27
Doing a project for school - and the instructions were to do a hot backup as follows:

SQL> alter database begin backup;

From Windows Explorer, create folder: C:\app\Administrator\oradata\orabackup\hotbackup
And then copy all database files to C:\app\Administrator\oradata\orabackup\hotbackup

SQL> alter database end backup;

Then we were to insert some filed in the hr.regions example table - simulate a media failure by deleting the EXAMPLE01.DBF file

Then instructions were as follows -

SQL> startup
Note: You will receive an error message.
Action: Now you restore the hot backup EXAMPLE01.DBF file to where it used to be: C:\app\Administrator\oradata\orcl450 directory
Reminder: your backup file doesn’t contain the changes you made to HR.REGIONS table.
SQL> alter database open;
Note: You will receive a different error message.
SQL> recover database;

when I try to recover I get this:

SQL> recover database;
ORA-00283: recovery session canceled due to errors
ORA-01110: data file 5: 'C:\APP\ADMINISTRATOR\ORADATA\ORCL450\EXAMPLE01.DBF'
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: 'C:\APP\ADMINISTRATOR\ORADATA\ORCL450\EXAMPLE01.DBF'

And I am not sure what to do here - can anyone help me out with this??
0
Comment
Question by:dawber39
1 Comment
 

Accepted Solution

by:
dawber39 earned 0 total points
ID: 35118182
Never mind - I see my mistake
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.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Oracle SQL Syntax 8 56
Need help with Oracle syntax 4 41
alter database link to change the password 2 31
EXECUTE IMMEDIATE 5 34
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now