oracle sql and dba tutorial logo

 

Oracle DBA

Learn Oracle 11g / 12c Database Admin step by step



Oracle SQL

Tutorial for Oracle SQL


Oracle DBA Interview Questions

Most asked Oracle DBA Interview Questions.

60 Technical Questions
42 Backup & Recovery Questions

Unix For Oracle DBA 20 Questions



Download Oracle 11g / 12 c Software

Links to Download Oracle 12c / 11g for Linux, Windows etc.


MySQL Tutorial

Learn MySQL step by step


 

 

 

 

 

 

 

 

 

Recovering from loss of Datafile... Contd.

 

Step 3

Now type the following script at RMAN prompt to recover the loss datafile

RMAN> run {
          restore datafile '/u02/oracle/testdb/test/users01.dbf';
          recover datafile '/u02/oracle/testdb/test/users01.dbf';
          sql 'alter database open';
         }

In the above command

restore datafile ....

Line will restore the datafile. Since we were taking backup using RMAN, RMAN knows about all the backups and it will automatically restores the file from the most recent backup

recover datafile ....

Line will apply transactions from archive files to perform complete recovery

sql 'alter database open';

Line will open the database after recovery.

The output is shown below when we execute the above script

restore datafile rman

Step 4

We can now go to SQL Plus to check the database is open and we can access the contents of this file

sqlplus datafiles

 

Back to Previous Page

 

 


HomeContact Us

Data Loader

Data Loader is a simple yet powerful tool to
export and import Data between many common database formats


Forms Data Loader

Tool to load data into Oracle E-Business Suite R12 / Oracle Apps using Macros and Forms Record and Playback

Interface Computers Academy © 2007-2017 All Rights Reserved