Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3977380
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:55:00+00:00 2026-05-20T04:55:00+00:00

I am trying to take undo datafile in offline mode using following command alter

  • 0

I am trying to take undo datafile in offline mode using following command

alter database datafile '<datafile path>' offline;

this datafile is in recovery mode. Oracle shows message as database successfully altered.

But after executing this command when I select entries in v$datafile. The file that I just made offline remains in this table.

Can somebody please tell how to take undo datafile offline.

OS: RHEL
Oracle version: 11g
Datafile status: Recovery

EDIT:

I already tried command

alter database datafile '/your/data/file/name' offline drop

it says database altered successfully ,

alter database open;

fails with message <my undo log file name> needs recovery of undo file.

I cannot recover it as I have lost the archive files.
It seems like file is getting dropped logically not physically. Now I just want my database to be up and running and for that I want to take this file to be offline.

When I check v$datafile table it shows the entry for the file irrespective of alter database datafile '<datafile path>' offline drop; ran succesfully, Please help me resolve the issue. Database is down from the morning and I could not get it started

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:55:01+00:00Added an answer on May 20, 2026 at 4:55 am

    Why do you want to do this?
    What are you trying to accomplish?

    In v$tablespaces are the tablespaces listed. The datafiles are
    in v$datafiles.

    A tablespace can have multiple datafiles.
    How is your database and backup setup ?
    Do you need the tablespace?

    If you just want to get rid of the datafile (and the tablespace) you could try to drop it while in mount mode:

    startup mount
    alter database datafile '/your/data/file/name' offline drop;
    alter database open;
    drop tablespace your_tablespace_name including contents and datafiles;
    

    If you do need the tablespace online, you start with restoring the datafile and do a full media recovery.

    I hope this works,
    Ronald.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I'm trying to take backup from mysql command line client. I'm using mysqldump
I'm trying to take the results of a view - using the function views_get_view_result()
I'm trying to take a screenshot of my Android application using Robotium, I'm using
I am trying to take two numbers and get the square of them. Using
I'm trying to take string in input using Scanner. But it asks me more
Trying to take in several file names from the user at the command line
I'm trying to take a POCO object and update it with Linq2SQL using an
I am trying to take this from view source, i.e.: <a href=javascript:validateCB();><img src=wwv_flow_file_mgr.get_file?p_security_group_id=1343380920146312332&p_flow_id=222&p_fname=submit_btn.gif alt=Submit
I am trying to take a String from a JTextField using getText and apply
I'm trying to take this code ... char mysmooth1_ descr[] = my smooth1: My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.