Data files are offline / tablespace offline

I am confused on the concept of data file offline.
What happened when you take data file offline?
Is data file offline because of disk damage? we see the error that data file is haning a problem, we have manually to take data file offline? how?
Why is tablespace offline but data file is still online?
Please help!
Thanks
S.

ski123 wrote:
I am confused on the concept of data file offline.
What happened when you take data file offline?The offline datafile means simply that the file is not available anymore for the access. All the objects for the offline file become inaccessible for the users to access.
Is data file offline because of disk damage? we see the error that data file is haning a problem, we have manually to take data file offline? how?Yes it can happen that the data file goes offline because of any kind of damage either over the disk, or also with the file itself. For example, there may be a chance that the file is not available anymore , may be because someone has deletedthe file. So most of the times, Oracle would offline the file by itself. In any case, if the file doesn't go offline by itself than you need to take it offline yourself as the recovery for the file can't happen if its online. You would get the error messages that oracle can't acquire the exclusive access over the file.
Why is tablespace offline but data file is still online?Not sure that I did see this ever myself. Tablespace is nothing but the container for the datafile so if there is a file of it which is offline and that's the only file in the tablespace, the tablespace can't stay as online. Show us an output for the same.
The links given by Anantha are must for you to read the cocept of offlining a tablespace. Make sure you read them for sure.
HTH
Aman....

Similar Messages

  • If data files are deleted?

    If data files are deleted, can they be recovered from the control file?

    It depends on what is in the datafiles in the tablespaces, if they actually contain data, if they are the only datafiles for the tablespace, etc.
    Let's assume that they are the only datafiles for the tablespace and segments have allocated and used space in them.
    If the segments are index segments, you can recreate the indexes from the data that currently exists in the table.
    If the segments are table segments, you will need to recreate the data either by hand or extracting it from another source.
    If no segment has allocated space in the datafile, you should be able to offline the datafile. If this works, it is a good idea to migrate the segments to a new tablespace and then drop the tablespace (unless it is SYSTEM) as Oracle does not like offline datafiles and it will become a maintenance hassle.
    If you do not have a backup, do you have a recent export?
    Once you have addressed the immediate issues of reconstructing the data, you need to address the issues of backups (you should at least backup the database periodically even if you don't run in archivelog mode) and security (no one should be dropping live data files).
    Regards,
    Daniel Fink

  • How to remove data file from System tablespace

    Hi All,
    I have wrongly added data file in SYSTEM tablespace, now I want remove it. I have tried to set datafile offline but it is giving me the error system tableapce can not set offline. so please help me. I am working Oracle 10g .
    thanks in advance
    sv

    In 10gR2, you can drop a datafile from tablespace, as long it's empty (and of course not the last one):
    ALTER TABLESPACE tbs_03 DROP DATAFILE 'tbs_f04.dbf';
    Otherwise, there's no direct way to get rid of the file. You can just shrink it and move (i.e. "rename") it another location. For a non-system tablespace, move of all segments to another tablespace (and later renaming it) would be an option, but this of course won't work with system tablespace.

  • Data Guard adding new data files to a tablespace.

    In the past, if you were manually updating an Oracle physical standby database there were issues with adding a data file to a tablespace. It was suggested that the data file should be created small and then the small physical file copied to the standby database. Once the small data file was in place it would be resized on the primary database then the repication would change the size on the standby.
    My question is, does Data Guard take care of this automaticlly for a physical standby? I can't find any specific reference on how it handles a new datafile.

    Never mind, I found the answer.
    STANDBY_FILE_MANAGEMENT=auto
    Set on the standby database will create the datafiles.

  • Does anyone know where the iWeb data files are located or what they are called?  I can't find them.  I looked in Finder for files named the same as my website, but found nothing.  Any help would be appreciated.

    Does anyone know where the iWeb data files are located or what they are called?  I can't find them.  I looked in Finder for files named the same as my website, but found nothing.  Any help would be appreciated.

    If you erased or replaced your hard drive since iWeb was cancelled, then they are gone. Otherwise, if you have maintained backups then check those.
    Usually such files are in the /Home/Library/ folder or a sub-folder.
    Exposing the /Home/Library/ Folder
    Pick one of the following methods:
    A. This method will make the folder visible permanently. Open the Terminal application in your Utilities folder and paste the following at the command prompt:
    chflags nohidden ~/Library
    Press RETURN.
    B. Click on the Desktop, press the OPTION (⌥) button, select Library from the Finder's Go menu.
    C. Select Go To Folder from the Finder's Go menu. Paste the following in the path field:
    ~/Library
    Press the Go button.

  • Space allocation on 11g R2 on multiple data files in one tablespace

    hello
    if the following is explained in Oracle 11g R2 documentation please send a pointer. I cant find it myself right now.
    my question is about space allocation (during inserts and during table data load) in one table space containing multiple data files.
    suppose i have Oracle 11g R2 database and I am using OMF and Oracle ASM on Oracle Linux 64-bit.
    I have one ASM disk group called ASMDATA with 50 ASM disks in it.
    I have one tablespace called APPL_DATA with 50 data files on it, each file = 20 GB (equal size), to contain one 1 TB table calll MY_FACT_TABLE.
    During Import Data Pump or during application doing SQL Inserts how will Oracle allocate space for the table?
    Will it fill up one data file completely and then start allocating from second file and so on, sequentially moving from file to file?
    And when all files are full, which file will it try to autoextend (if they all allow autoextend) ?
    Or will Oracle use some sort of proportional fill like MS SQL Server does i.e. allocate one extent from data file 1, next extent from data file 2,.... and then wrap around again? In other words it will keep all files equally allocated as much as possible so at any point in time they will have approximately the same amount of data in them (assuming same initial size ?
    Or some other way?
    thanks.

    On 10.2.0.4, regular data files, autoallocate, 8K blocks, I've noticed some unexpected things. I have an old, probably obsolete habit of making my datafiles 2G fixed, except for the last, which I make 200M autoextend max 2G. So what I see happening in normal operations is, the other files fill up in a round-robin fashion, then the last file starts to grow. So it is obvious to me at that time to extend the file to 2G, make it noautoexented, and add another file. My schemata tend to be in the 50G range, with 1 or 2 thousand tables. When I impdp, I notice it sorts them by size, importing the largest first. I never paid too much attention to the smaller tables, since LMT algorithms seem good enough to simply not worry about it.
    I just looked (with dbconsole tablespace map) at a much smaller schema I imported not long ago, where the biggest table was 20M in 36 extents, second was 8M in 23 extents, and so on, total around 200M. I had made 2 data files, the first 2G and the second 200M autoextend. Looking at the impdp log, I see it isn't real strong about sorting by size, especially under 5M. So where did the 20M table it imported first end up? At the end of the auotextend file, with lots of free space below a few tables there. The 2G file seems to have a couple thousand blocks used, then 8K blocks free, 5K blocks used, 56K blocks free, 19K blocks used, 148K free (with a few tables scattered in the middle of there), 4K blocks used, the rest free. Looking at an 8G similar schema, looks like the largest files got spread across the middle of the files, then the second largest next to it, and so forth, which is more what I expected.
    I'm still not going to worry about it. Data distribution within the tables is something that might be important, where blocks on the disk are, not so much. I think that's why the docs are kind of ambiguous about the algorithm, it can change, and isn't all that important, unless you run into bugs.

  • Python, distutils, data_files - Yay! I know where my data files are.

    After a long and painful research i have finally found usable way to make distutils propagate location of data files to installed application.
    Python's distutils allow user to specify location for data_files but there's no standard way to acess them.
    Yes sure ,there are few workarounds :
    1) distributing data_files as package_data
      - Do you really want to have ie. README.txt in /usr/lib/python/... ?
    2) Accessing those data_file using $sys.prefix
    - hmm. Here you hardcode $sys.prefix relative path to setup.py like this:
    setup(...., data_files=['share/myverycoolpackage/doggie.gif'], ..)
    - and access it this way:
    os.path.join(sys.prefix, 'share/myverycoolpackage/doggie.gif')
    This works fine, but you're making assertions about layout of users $sys.prefix directory. Not talking about possibility to specify --data-dir during installation.
    Both are not really usable. Here goes the solution:
    Idea: Install additional 'package.ini' file, that will get modified during install and will hold location of data files.
    This package.ini will be installed as package_data, so that it will be accessible relatively to sources.
    And this is how i did it:
    New command to install process:
    from os.path import *
    import re
    class package_ini(Command):
    Locate package.ini in all installed packages and patch it as requested
    by wildcard references to install process.
    user_options = []
    def initialize_options(self):
    pass
    def finalize_options(self):
    pass
    def visit(self, dirname, names):
    packages = self.distribution.get_command_obj(build_py.__name__).packages
    if basename(dirname) in packages:
    if 'package.ini' in names:
    self.patch(join(dirname, 'package.ini'))
    def patch(self, ini_file):
    print 'patching file' + ini_file
    with open(ini_file,'r') as infile:
    file_data = infile.readlines()
    with open(ini_file,'w') as outfile:
    for line in file_data:
    _line = self.patch_line(line)
    if _line:
    line = _line
    outfile.write(line)
    def patch_line(self, line):
    Patch an installed package.ini with setup's variables
    match = re.match('(?P<identifier>\w+)\s*=.*##SETUP_PATCH\\((?P<command>.*)\.(?P<variable>.*)\\)', line)
    if not match:
    return line
    print 'Replacing:'+line
    line = match.group('identifier')
    line += ' = '
    data = '(self).distribution.get_command_obj(\''+\
    match.group('command')+'\')'+'.'+\
    match.group('variable')
    line += '\''+eval(data)+'\''
    line += '\n'
    print 'With:' + line
    return line
    Apend this package_ini command to install command:
    class install(_install):
    from distutils.command.install import install as _install
    sub_commands = _install.sub_commands + [
    (package_ini.__name__, None)
    Mention your package.ini in setup():
    setup(..., package_data={'myverycoolpackage':['package.ini']}, data_files='myverycoolpackage','doggie.gif',..)
    Write your package.ini like this:
    __data_dir__ = '../../data' ##SETUP_PATCH(install_data.install_dir)
    Package.ini will get patched properly during install, so if i assume that user specified --data-dir=C:/Program Files/ApplicationData/verycoolpackage, package.ini will be:
    __data_dir__ = 'C:/Program Files/Application Data/verycoolpackage'
    Notice that you can access any property from setup script, so this might be usable for version string or other stuff.
    Also notice that in 'develoment environment' location of data files differs from 'installation environment'. Cute, isn't it?.
    Now you just have to evaluate package ini (propably in myverycoolpackage/__init__.py):
    with open(inipath) as ini:
    for line in ini.readlines():
    exec(line)
    And we're done.

    I've just checked several versions of Dreamweaver in Windows 7. They all have dotted lines showing the tree structure in the Files panel.
    I also checked Dreamweaver CS3 on Mac OS X 10.6, and CS5.5 and CS6 on Mac OS X 10.7. None of the Mac versions have dotted lines. The files are simply indented.
    If you're on a Mac, that's the way it has been for a long time. If you're on Windows, the lines should still be there. There is no special setting in Dreamweaver.

  • Can I reimport originals after data files are deleted?

    While selecting photos to burn to a cd I copied folders from the 'Data' folder in iPhoto library. I then moved several individual files, which I did not require for the burn, from the cd to trash - before I had burned. I did not realise that this would delete the data files from the iPhoto library itself. I emptied trash before checking back with iPhoto and now, of course, those images disappear from my library whenever I open iPhoto. However, I still have the photos saved in two locations as 'Originals', but when I try to import them back into iPhoto a message appears to tell me they are unreadable. The 'Originals' files are not corrupted, but how do I reimport them into iPhoto so that they reappear in my Library Data folder in their old locations?

    Welcome to the Apple Discussions. You do know that the Data folder only contains thumbnail sized files that iPhoto uses within the library, right?
    If you can see the blank thumbnail boxes in the library and can click on them to bring up the full sized image you have a good chance at recovering the library by rebuilding as follows: launch iPhoto with the Command+Option keys depressed and follow the instructions to rebuild the library. Select the first three options.
    If that doesn't resurrect the library then you'll have to start with a new library and import the Originals folder from the old library. Here's how:
    Creating a new library while preserving the rolls from the original.
    Move the existing library folder to the desktop.
    Launch iPhoto and, when asked, select the option to create a new library.
    Drag the Originals folder from the iPhoto Library on the desktop into the open iPhoto window.
    This will create a new library with the same rolls as the original library. However dates on the rolls may be different but can be edited as you would the roll title.
    Once this is completed you can delete the iPhoto library folder from the desktop. If desired, you can keep the older library folder to try other fixes on it.
    In the future I recommend you make a backup copy of the Library6.iPhoto file after each import and after doing a lot of editing and organizing in the library. Then if you experience a similar crash all you need to do is replace the damaged database file with the backup copy and you'll be back to the same place in the library as when you make the backup. See the tip at the end of my signature.
    In the future, Don't mess with files in the iPhoto Library folder from the Finder. See TD's treatis on file access for how to access photos for use outside of iPhoto.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • My Outlook Data Files Are Now .OST - How Do I Backup & Recover Local Contacts (I'm using Office 365 Home Premium)?

    I recently upgraded to Office 365 Home Premium and at the same time changed my email protocol from POP3 to IMAP4.
    I've now noticed that my Outlook data files stored at C:\Users\username\AppData\Local\Microsoft\Outlook are in .ost format.
    I use the Calendar in my Microsoft Account as my main Calendar but I store some of my Contacts locally - which .ost  file will they be held in and how can I recover them if anything goes wrong?

    Hi,
    A simple way to know which data file the Contacts are stored in, is to right click on the Contacts folder, click
    Properties. Under General tab, find the
    Location of it.
    We can export the contacts to a .pst file to back up them, for the detailed steps, please refer to this link below and read the information under
    Export contacts to an Outlook .pst file:
    http://office.microsoft.com/en-in/outlook-help/import-contacts-HA102919678.aspx
    If the data file is corrupted and you need to recover the data, we can choose Scanpst.exe from Microsoft:
    http://support.microsoft.com/kb/272227
    In addition, if the email account you are using is an Microsoft Account, I suggest you choose Exchange ActiveSync instead of IMAP. Thus all the contacts are synced between your Outlook Client and the server, Calendars of the account will automatically be
    added into Outlook, you don't have to add the calendars separately:
    Add an Outlook.com or other Exchange ActiveSync mail account to Outlook
    http://office.microsoft.com/en-us/outlook-help/add-an-outlook-com-or-other-exchange-activesync-mail-account-HA104025313.aspx
    If I misunderstood anything, please feel free to let me know and correct me.
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Since Leopard upgrade, Quicken data files are corrupted

    Did a Leopard Archive and Install from Tiger without much trouble except for my large Quicken Data files. They have become corrupted, and Quicken support has a routine for re-building their data files by holding the COMMAND, OPTION and B keys down. The files appear to rebuild, but when I try to Save a Copy or export to a QIF file, the system crashes repeatedly. The report to Apple is several pages long, and I can't copy it here. I don't know if Apple Discussions is the appropriate place to ask 3rd party software questions, but if anyone out there has any thoughts, I would be most appreciative.
    Mike Ryan

    baltwo...
    Thanks for the reply. I didn't keep a back-up of Tiger except for the "previous operating system" folder that is part of Archive & Install. I still have the original Tiger DVDs, and I could put a copy on another drive partition and re-install Quicken 2007; would I then go through file corruption repair scheme that the Quicken web-site recommended? Also, I will post on the quickencommunity.com web-site. Thanks for the help. I will mark this as helpful. Keep up the good work. I see your all sign frequently in discussions.
    Mike Ryan

  • If my ipad data/files are backup in icloud, how do I retrieve files from icloud?

    If my ipad files/data are backup or stored in icloud, how do I retrieve feiles from icloud?

    Restore from iCloud Backup (see #10)
    1. Erase all contents and settings
    2. You'll be asked twice to confirm
    3. You'll see Apple logo and progress bar
    4. You'll see a big iPad logo on screen
    5. Configuration start
    6. Set language
    7. Set country
    8. Enable Location Service
    9. Select network, enter password and join network
    10. You'll be given 3 options (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    11. Selected Restore from iCloud Backup
    12. You'll be required to enter Apple ID and Password
    13. Agree to Terms and Conditions
    14. Select Backup file
    15. You'll see progress bar
    16. Red slider will appear; slide to unlock; step #1 to #16 is fast
    17. Pre-installed apps will be restored first
    18. Message: Purchased apps and media will now be automatically downloaded
    19. You'll see a pageful of apps with Waiting/Loading/Installing
    20. Message: Some apps cannot be downloaded, please sync with computer
    Note: This restore from iCloud backup was performed with IOS 5.1.1
    Message was edited by: Diavonex

  • I have two HDs. How do I point All My Files in Finder to the second HD where my data files are?

    I have a SSHD that has the OS and all apps. In finder All My Files points to it. How do I change it to look at my big, data HD?
    Thanks.

    As I pointed, and esp. with an SSD, leave the home library on t he boot drive works great.
    The sidebar can have whatever you want, maybe not the default pretty icon for the default folders, but folders, hdd etc that you drag onto the sidebar. Folders, not files.
    Using OS X with an SSD plus HDD setup, by Matt Gemmell
    http://mattgemmell.com/using-os-x-with-an-ssd-plus-hdd-setup/
    How to relocate system and user data to another drive:
    http://reviews.cnet.com/8301-13727_7-57603361-263/how-to-move-a-home-folder-in-o s-x/
    http://chris.pirillo.com/how-to-move-the-home-folder-in-os-x-and-why/
    http://support.apple.com/kb/HT4337
    To successfully relocate your operating system, user accounts and data from one storage device to another, meet the following conditions: 
    The destination storage device (SSD drive or hard drive) you are migrating to should be physically located in the same computer.  Moving operating system files from one computer to another computer using software not specifically designed for that computer can cause issues due to software, hardware, and firmware version mismatches.
    Always back up your storage device with Time Machine or Disk Utility before you start.
    Home  Folders  not  on  a  Startup  volume
    http://pondini.org/OSX/SetupOther.html

  • Need to stop your popups cant do up dates files are always corrupted i'll just stick with corel version and add ons

    I get popups about needing to update version and some add ons are expired. I would like to stop these I can't up date. I've downloaded myself and I get the file is corrupt a lot of hours for nothing tried several times downloaded from the library and it said the same thing so I''l just keep the version that came with corel word perfect. When I try to update the add ons I get the same thing plus my machine gets messed up again I'll just stay with what is there. Please stop the popups they are very annoying whe I know there is nothing I can do about it. Thank you very much [email protected]

    It is highly recommended you update for security updates. Are you sure that you are downloading from the official Mozilla website?
    * https://www.mozilla.org/en-US/firefox/new/
    Different localized versions can be found on:
    * https://www.mozilla.org/en-US/firefox/all/

  • GB storing deleted data, files are too big!

    Hi All
    I recorded a full concert, 2-3 hours, 8 audio tracks. This came out to about 4GB. Now I want to edit down each song individually, so I cut everything out but the song, and "Save As..." its own file. After cutting down to one song, the file is still 4GB! It seems that GB still stores all of the deleted data. I want to do this for 20-30 songs, and I don't want each file to be 4GB large. Is there anyway to trim the data that it is retaining?
    Thanks

    kman wrote:
    It's kind of a tedious workaround, especially if I have to go through that for 8 tracks x 30 songs.
    while i agree it would be a nice feature, you have to remember, you're re-purposing GB, your use is not the one for which it was designed; one song per project.
    you can always send Apple a feature request with the Feedback menuItem (under the GaageBand menu) to let them know

  • Alter Data file offline to online.

    Hello.
    ( DATA FILES ARE IN OFFLINE and ONLINE )
    In Sql prompt ,
    I can using below command
    " ALTER DATABASE DATAFILE 'BANK_DAT.dat' OFFLINE " ;
    1).IN THAT CASE ,I GET A ERROR (disallowed unless media recovery enebled )
    so i change to Noarchivelog mode using below command
    " ALTER DATABASE DATAFILE 'BANK_DAT.dat' OFFLINE DROP "
    succefully the "BANK_DAT.dat" data file will be OFFLINE.
    After that i can change "BANK_DAT.dat" data file go to ONLINE in SQL PROMPT USING below command
    SQL> ALTER DATABASE DATAFILE 'BANK_DAT.dat' ONLINE ;
    I getting below error.
    ORA-01516: nonexistent log file, datafile or tempfile 'bank_dat.dat'
    After that ,I can use DBA STUDIO in GUI mode ,Click the DATA FILE ( 'BANK_DAT.dat")
    CLICK THE ONLINE RADIO BUTTON AND APPLY .
    In these,I getting the error ( "MEDIA RECOVERY ERROE ").
    HOW WILL ALTER THE DATA FILE OFFLINE TO ONLINE IN sql> COMMAND.
    please reply very early.
    null

    Hi,
    When I take a data file offline, which SCN get frozen? Is it the stop scn in the control file or is it the checkpoint scn in the data file header?
    Stop SCN is the SCN which gets recoreded in control file when datafile is backup mode or datafile is offline.
    Its checkpoint scn in Data File Header. As you the STOP SCN is going to Updated wehn ever there are changes with respective to the datafile.. as it implicitly says that STOP SCN, wit respective Offline datafile will not Update, until next scn generates (until the data file make online)
    - Pavan Kumar N

Maybe you are looking for

  • Cannot deploy VM from VMM and AppController

     Hi All, I have been installing the VMM and AppController. Initially all went well. After I install RU5 there occurs a problem where I can not deploy vm of VMM and AppController with error messages like that : host A kuilab01 on kuilab01 still availa

  • Running Mac os 10.6.8 with iTunes 11.4 can I update iPhone 5c to os8 without issues

    Running Mac OS 10.6.8 with iTunes 11.4 - Can I update iPhone 5c to OS8 without issues

  • Muse Rectangle cross browser gradient color issue

    I am using a standard rectangle to show the effect on brouser and this is what is happening on cross border platform Google Chrome/IE Firefox/IE (Compatible Mode) Orignal

  • Paycheck Inquiry in ESS

    When the Payroll is being run in ERP can an employee change their Bank Details in ESS? Also when is the new Payslip available in ESS, is after the Payroll has run? Thanks WB

  • Use of Tab key

    This is not a reply but a question on the subject of the Tab key in particular. I have been attempting to run the 30 day trial version with no luck so I need to ask those who are already using the software; can you tell me if the user can move from o