Taking the datafile offline when the database is in NOARCHIVELOG mode

My question is when the database is in No Archive log mode i'm not able to take the datafile offline.
When i tried in my computer i have noticed fallowing.
case1:
SYS>alter database datafile 5 offline;
ERROR at line1;
ORA-01145:offline immediate disallowed unless media recovery enabled.
case 2:
SYS>alter database datafile 5 offline immediate;
ERROR at line 1;
ORA-00933:SQL command not properly ended
case3:
I have tried the command alter database datafile 6 offline drop; (in NOARCHIVELOG mode) and it is showing the same effect as alter database datafile 6 offline; ( in ARCHIVELOG mode).
*In the NOARCHIVELOG mode are we really dropping the datafile to take the datafile offline? Will you please tell me the effect of keyword drop.

JohnWatson wrote:
You've marked your question answered - was that a mistake?
The answer is that you cannot directly take a datafile offline in noarchivelog mode. You must take the tablespace offline:
Hmm, are you certain about that? Perhaps I'm missing something.
SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
   FILE_ID FILE_NAME                                          ONLINE_ STATUS
         4 /u01/app/oracle/oradata/TEST/users01.dbf           ONLINE  AVAILABLE
SQL> select log_mode from v$database;
LOG_MODE
NOARCHIVELOG
SQL> alter database datafile 4 offline drop;
Database altered.
SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
   FILE_ID FILE_NAME                                          ONLINE_ STATUS
         4 /u01/app/oracle/oradata/TEST/users01.dbf           RECOVER AVAILABLE
SQL>  ALTER SYSTEM FLUSH BUFFER_CACHE;  <-- may not have been necessary
System altered.
SQL> select count(*) from scott.emp;
select count(*) from scott.emp
ERROR at line 1:
ORA-00376: file 4 cannot be read at this time
ORA-01110: data file 4: '/u01/app/oracle/oradata/TEST/users01.dbf'
SQL> recover datafile 4;
Media recovery complete.
SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
   FILE_ID FILE_NAME                                          ONLINE_ STATUS
         4 /u01/app/oracle/oradata/TEST/users01.dbf           OFFLINE AVAILABLE
SQL> alter database datafile 4 online;
Database altered.
SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
   FILE_ID FILE_NAME                                          ONLINE_ STATUS
         4 /u01/app/oracle/oradata/TEST/users01.dbf           ONLINE  AVAILABLE
SQL> select count(*) from scott.emp;
  COUNT(*)
        14
Also, please see the following link from the manual which discusses altering data file availability in noarchivelog mode.
Altering Datafile Availability

Similar Messages

  • Can we find out the date/time when the datafile last extended?

    Hello all,
    Can we find out the date/time when the datafile last extended?
    Is it possible to find out from the alert.log file?
    Correct me if I am worng?
    Thanks in advance
    Himanshu

    In continuation with the earlier post, can you tell me what sort of entry should be search if the above information is available in the alert.log file?
    Thanks
    Himanshu

  • Taking a datafile offline

    Hello -
    I am running an Oracle 8.1.7.4 database in archivelog mode. Can I take a datafile offline, rename the datafile, then bring the datafile back online?
    For example,
    1. alter database datafile 'string' offline;
    2. rename the datafile at the os level
    3. alter database rename file 'string' to 'newstring';
    alter database datafile 'newstring' online;
    While the datafile is offline, does this cause errors if an attempt is made to access the datafile?

    Of course, as already posted, data in the offline datafile are not available, so you cannot access them. In my case, those data were previous years accounting data, and people asked for mounting removable disks when they needed them.

  • Destroy the session automatically when the browser is closed by user

    Is it possible to automatically destroy a session when the browser is closed by the user with the X?
    Basically, what we want to do is to create the same effect when the user is closing the browser (with the X button) as when the ordinary log out button is used. That is to have the session destroyed.
    Any ideas?
    /Carl-Johan

    Hope this helps...
    Refer note : 904155
    from SAP Note 904155----
    Symptom
    A BSP application is not terminated correctly when the user closes the browser window or navigates to other URL.
    The popup window, which appears on browse closure, contains the
    text representing <img> HTML element content in the escaped
    form, like that:
    <IMG WIDTH=quot; HEIGHT=quot; SRC="...
    After the popup disappears, the session remains opened.
    Since the session is not removed, that may result in database locks that still remain and can be found in transaction SM12.
    Other terms
    Business Server Pages, WebAS, sessionexit, session termination, SM12, SM04, SYSTEM, session_single_frame.htm
    Reason and Prerequisites
    Reason:
    The problem is caused by the minor code inconsistency in BSP application SYSTEM -> page SESSIONEXIT.HTM.
    Prerequisites:
    1. The application is using the SYSTEM application page SESSIONEXIT.HTM for logoff. When it runs, suddenly HTML source code appears on the logoff screen.
    2. SAP_BASIS 620 SP57 or SAP_BASIS 640 SP15 or SAP_BASIS 700 SP06 are installed.
    Solution
    Please install SAP_BASIS 620 SP58 or SAP_BASIS 640 SP16 or SAP_BASIS 700 SP07
    or
    apply the code correction as described below:
    1. Go to BSP Application SYSTEM.
    2. Select page SESSIONEXIT.HTM and turn on Change mode.
    3. Change the line:
    <%=application->session_exit( exit_url = app-exit_url namespace = app-appl_ns name = app-appl_name page = app-page_name )%>
    to:
    <%raw=application->session_exit( exit_url = app-exit_url namespace = app-appl_ns name = app-appl_name page = app-page_name )%>
    Arun
    P.S Assigning points is a way of saying thank you on SDN
    Message was edited by: Arun Varadarajan

  • Where do I find the backup files when the iPhone is backed up?

    Where do I find the backup files when the iPhone is backed up?
    Thanks in advance.

    On the Mac they're at ~/Library/Application Support/MobileSync/Backup. But, there aren't files there you can directly use - the backup is actually a SQLite database.
    iPhone Backup Extractor (Google it) is a free Mac utility that can access some parts of the backup.

  • Creating a "more" button on the menu bar when the menus are more

    Hi,
    I wanted to create a functionality similar to that we can see in eclipse editor. when we open files more than a number, only some of the pages are visible on the editor. we can access the rest from the button which shows the names of files. I am doing a web app which contains many menus. sometimes it may be more than a page can contain.in such cases the page shows a scroll bar. i need to avoid the scroll bar and keep a button towards the right end of the tool bar; when the user clicks on the button, the rest of the menus should be shown there.is there anyways to implement this?
    i have another problem: how can i hilight the currently selected menu? can i do it using java code and a css class?
    Thanks,
    Geet

    Geet wrote:
    Hi,
    I wanted to create a functionality similar to that we can see in eclipse editor. when we open files more than a number, only some of the pages are visible on the editor. we can access the rest from the button which shows the names of files. I am doing a web app which contains many menus. sometimes it may be more than a page can contain.in such cases the page shows a scroll bar. i need to avoid the scroll bar and keep a button towards the right end of the tool bar; when the user clicks on the button, the rest of the menus should be shown there.is there anyways to implement this? Well, count the items and display the button/menu when there are more than which fits on screen.
    i have another problem: how can i hilight the currently selected menu? can i do it using java code and a css class?You normally use CSS for styling, yes.

  • How can I make a table cell extend beyond the page?  The text disappears when the cell becomes larger than the page.

    How can I make a table cell extend beyond a page?  The text disappears when the cell becomes bigger than the page.  I want the table to continue to the next page.

    As a student, you might be able to get Office for Mac from the college bookstore at a substantial discount. Otherwise, I think your best option for documents that need to be shared with Office users is to get one of the free Office clones such as LibreOffice.

  • I have several users in an exchange environment who cannot email a photo from the iPhone.  When the click on Email Photo, they are prompted to configure a mail account even though there is already an exchange account in place.  How do I remediate this?

    I have several users in an exchange environment who cannot email a photo from the iPhone.  When the click on Email Photo, they are prompted to configure a mail account even though there is already an exchange account in place.  How do I remediate this?  Not all of the users in our environment have this issue.  If the users having this issue, install a secondary email account, Gmail, Hotmail, etc, then they can send through those accounts.  Why would the exchange account not be seen to send photos?

    Sounds like it worked until the policies associated with the account that are creating the problem were fully pushed down.
    Try setting up a new (test) Exhange account and see if it behaves the same way on the phone (after removing the problem account from the phone, of course).

  • How to get the Useru2019s position when the user doesnu2019t have CP relation

    We have a custom program which will add / delete attributes (In transaction PPOSA_BBP). It is working fine for users which were assigned with CP relation But it fails for users which doesnu2019t have CP relation (since we are getting the position of users form HRP1001 then we are retrieving the existing attributes based on the position after that updating the attributes) as we are getting the position from HRP1001 it fails for users were no CP relation.
    Help us how to get the Useru2019s position when the user doesnu2019t have CP relation. Suggest us any function module or how to query the HRP1001 or some other table if exists
    Regards
    Paul

    Hi Paul,
    Have a look at these tables.
    Using table BUT000 the central business partner data are stored, f.e. partner type, partner names, partner number, partner guid, person number, etc. In table BUTBKK the bank data to a business partner are stored.
    Central business partner address data
    The table ADRC is used for the address of a business partner. Table BUT020 links the business partner number with the address number. Using table BUT021 several addresses to a business partner with different usages (modes), f.e. correspondence or delivery address, can be stored. The personal data of a business partner person are stored with key person number in table ADRP. The person number is assignd to a business partner person in table BUT000. Communication data of business partners as e-mail, telephone, fax, etc. are stored in the tables ADDR1 u2013 ADDR12. The business address of a contact person or an employee consists of the organization address (company resp. org.-unit) and of an address addition, which describes f.e. a building, a room number, etc. The address addition is stored in table ADCP and is identified by the keys address number of the organization address and person number.
    Relationships between business partners
    Table BUT050 contains the relationships between a business partner organization and a business partner person using relation types. The relation types are defined in table TBZ9, f.e. the relation type u2018has employeeu2019 corresponds to identifier u2018BUR010u2019, the relation type u2018has contact personu2019 corresponds to identifier u2018BUR001u2019. Table BUT051 stores communication data of a contact person relationship (compare to table ADCP). Table BUT052 stores several address numbers to one business partner relationship (including a standard flag).
    Hope this helps,
    Kind Regards,
    Matthew

  • IOS7: Is there any way to turn off previews of texts in the lock screen but allow previews in the notification center when the phone is unlocked?

    In iOS6 text message previews would be shown in the notification center when the phone was unlocked and would just show up as "text message" or "imessage" in the lock screen...is there a way to change it so it's the same in iOS7? currently with "no preview" picked, whenever I swipe down in my notification center it just shows text messages with the contact name and not the message itself like it used to.

    I've set up another user on my home Mac and left that one logged in. Now when I connect from work it asks me if I want to share the screen or log on virtually as my user. I think choosing the second option doesn't power up the screen.
    Matt

  • How do I select the entire text when the focus is moved to one TextBox?

    How do I select the entire text when the focus is moved to one TextBox?
    There are three TextBoxes.  I use <TextBox TabIndex="1"/> to set the order they are selected.  When I enter one specific TextBox, I would like to have the entire text selected ... one key stroke removes all of the text in that TextBox.
    bhs67

    I do it the following way:
    1.  Override the OnStartup for the application.  Use the following code: (VB.NET)
    EventManager.RegisterClassHandler(GetType(TextBox), TextBox.GotFocusEvent, New RoutedEventHandler(AddressOf TextBox_GotFocus))
    2.  In the event handler use this code (again VB.NET)
    Private Sub TextBox_GotFocus(ByVal sender As Object, ByVal e As RoutedEventArgs)
    _theTextBox = CType(sender, TextBox)
    If setFocusTimer IsNot Nothing Then
    RemoveHandler setFocusTimer.Tick, AddressOf setFocusTimer_Tick
    End If
    setFocusTimer = New DispatcherTimer
    setFocusTimer.Interval = TimeSpan.FromMilliseconds(10)
    AddHandler setFocusTimer.Tick, AddressOf setFocusTimer_Tick
    setFocusTimer.Start()
    End Sub
    Private Sub setFocusTimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
    setFocusTimer.Stop()
    _theTextBox.SelectAll()
    End Sub
    What this does is register a handler for every textbox in your application.  This will execute when the GotFocus event is raised and will allow you to do whatever (in this case select all) you want.  A great way of handling things at the application
    level.
    Lloyd Sheen

  • HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. MY question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this aren't working

    HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. My question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this, such as using turning off the SMS preview under the "passcode lock", well that option no longer exists, or if it does, I'm somehow missing it.
    When I go to the "messages" setting under settings on my phone, I still don't see an option of turning it off.
    If I can just get the name of the person sending the message, as I had it before, I'd be happy.
    Help!

    That option still exists in Settings > Notifications > Messages > Show Prview (OFF) and View in Lock Screen (ON). Here's how to configure your Notifications and Notification Center for iOS 5: http://iphone-and-i.blogspot.com/2012/01/how-to-customize-notification-center-in .html

  • I would like to inquire about how I could have my iPad 2 repaired or replaced. I bought it With a credit card via apple store website last June 19 of this year. At first, I already noticed a little white spot in the middle of the screen visible when the d

    I would like to inquire about how I could have my iPad 2 repaired or replaced. I bought it With a credit card via apple store website last June 19 of this year. At first, I already noticed a little white spot in the middle of the screen visible when the display on screen is dark. I thought this was okay. Now, My problem with it is that, it now has green discolorations at the center whenever the screen display is black or dark I.e. When a website's color is black or dark or whenever I go to the search interface.
    I am from the Philippines.
    Please attend to this inquiry as promptly as possible. I'm sorry I have to send it here since I cannot see any email or inquiry page on the apple website. I also cannot reach the toll free number on my mobile phone.
    Thank you very much.
    <Serial Number Edited by Host>

    You can find out how to get service for your iPad on this web page:
    http://support.apple.com/kb/index?page=servicefaq&geo=Philippines&product=ipad
    Regards.

  • I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    How do you disabled it if running the same?

  • Both Chrome and Finder seemed to freeze, so I restarted the computer. When the restart finished, I was in recovery mode. How do I get back to my regular login screen?

    Both Chrome and Finder seemed to freeze, so I restarted the computer. When the restart finished, I was in recovery mode. How do I get back to my regular login screen?
    It starts up and asks for a language. After English, it goes to the OS X Utilities screen. I have gone to disk utility and verified the disks. They both say they are okay. If I click repair, it comes back with an error saying "Live file system repair is not supported." I just want my computer back to normal! Please help! I am still in Mavericks if it matters.

    Do you have a backup? If so, in the Recovery Partition go to Disk Utility/Erase, select Mac OS Extended (Journaled), click Option GUID, and erase the disk. Then re-install the OS. Reboot and use Setup Assistant to recover your data.

Maybe you are looking for

  • How can I resize the size of the Excel web part?

    I have a spreadsheet that i want to use to populate a page in my SharePoint site.  i copied the workbook to the site, created the page and added the excel web part. then i linked the workbook to the web part and submitted.  it displays but only about

  • Dynamic GUI Titles?

    Is there any way to create a dynamic GUI title for my Dynpro??? I mean, i could change the text in runtime. Thanks

  • New Canon 5D MkIII

    I have just downloaded  RAW 6.7 and PS5 will now see and open my files. BUT LR3 will not Any suggestions or do I just have to wait and not use LR3 until a version for that arrives. I am running these on an iMac (1 yr old) The computer also does not h

  • My ipod restarted while sofwear update .now its just showing white screen

    my ipod restarted while sofwear update .now its just showing white screen...now how can i start my ipod...

  • Macbook Air and Photoshop

    I work with Photoshop a lot, handling images up to 5000 pixels with many layers in my iBook G4 14' 933Mhz, 1Gb RAM, albeit slowly at filters and some tools. Since my wife wants a notebook, I'll pass Zappa (my faithful iBook) to her and buy a new one