Solved

Oracle: Rollback Segment Data File is Offline. File needs media recovery

Posted on 2007-11-19
2
1,150 Views
Last Modified: 2013-12-19
SQL> alter database datafile '/oracle01/dbf/dbinst/rbs01.dbf' online;
alter database datafile '/oracle01/dbf/dbinst/rbs01.dbf' online
*
ERROR at line 1:
ORA-01113: file 2 needs media recovery
ORA-01110: data file 2: '/oracle01/dbf/dbinst/rbs01.dbf'

SQL> select name, status from v$datafile;
/oracle01/dbf/dbinst/rbs01.dbf
RECOVER

0
Comment
Question by:villavej
2 Comments
 
LVL 8

Accepted Solution

by:
LindaC earned 250 total points
Comment Utility
Try this:
III. TRYING TO ONLINE A DATAFILE OR TABLESPACE
**********************************************
 
   1. Recover the datafile:
 
           SVRMGRL> RECOVER DATAFILE '<datafile_name>';
 
      If recovering a tablespace, do
 
           SVRMGRL> RECOVER TABLESPACE <tablespace_name>;

      If recovering a database, do
         
           SVRMGRL> RECOVER DATABASE;
 
   2. Confirm each of the archived logs that you are prompted for until you
      receive the message "Media recovery complete".

      If you are prompted for an archived log that does not exist, Oracle probably
      needs one or more of the online logs to proceed with the recovery. Compare
      the sequence number referenced in the ORA-280 message with the sequence
      numbers of your online logs. Then enter the full path name of one of the
      members of the redo group whose sequence number matches the one you are
      being asked for.

   3. Open the database.
         
       SVRMGR> ALTER DATABASE OPEN;
0
 

Author Closing Comment

by:villavej
Comment Utility
Thanks.  It worked.
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

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

771 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

10 Experts available now in Live!

Get 1:1 Help Now