Rman recovery example

Recovery example
SQL> select status, enabled, online_time, name from v$datafile order by name;

STATUS ENABLED ONLINE_TI
------- ---------- ---------
NAME
--------------------------------------------------------------------------------
RECOVER READ WRITE 13-AUG-07
+DATA01/cp04/datafile/bb_bb60_indx.281.630546303

ONLINE READ WRITE 13-AUG-07
+DATA01/cp04/datafile/bb_bb60_stats_data.282.630546385
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options

bash-3.00$ rman

Recovery Manager: Release 10.2.0.3.0 - Production on Sat Apr 5 18:09:42 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect target

connected to target database: CP04 (DBID=429165704)

RMAN> sql 'alter database datafile 9 offline';

using target database control file instead of recovery catalog
sql statement: alter database datafile 9 offline

RMAN> recover datafile 9;

Starting recover at 05-APR-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=50 instance=cp041 devtype=DISK

starting media recovery
media recovery complete, elapsed time: 00:00:06

Finished recover at 05-APR-08

RMAN> sql 'alter database datafile 9 online';

sql statement: alter database datafile 9 online

RMAN>

This entry was posted on Saturday, April 5th, 2008 at 5:51 pm and is filed under Oracle. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Be the first to leave a comment.

Leave a Reply