Recovery of the space in a file of data/tablespace in 10g

We have a tablespace of 30 GB, made up of 15 data files of 2 GB each. However, there are only 5 GB of data in the tables within this space of tables.

This occurred because the database kept growing (so the new data files have been added) until it was discovered that a single journal table occupied almost all the space. When this table was truncated, he left more space free, but "fragmented" across all 15 files given.

I'm trying to reclaim the space in the data files to be able to go back to the OS (there is no reason to keep more than 7-8GB to this tablespace).

From what I've read, the "alter table xxx move" command must relocate the tables to new segments to the 'before' of storage space, and then we should be able to delete the empty data in the end.

However, when I run this command on a test table, nothing appears to change everything.

I am running:

ALTER table AAFDTCRC move;
ALTER index RM. Regeneration of the PKAAFDTCRC;
exec dbms_stats.gather_table_stats (ownname = > 'RM', tabname = > 'AAFDTCRC', estimate_percent = > null, method_opt = > 'for all THE COLUMNS of SIZE AUTO', degree = > 6);

However, when I ask the dba_extents table, is to show the table always distributed in different data files. I use the "alter table" command incorrectly, or is the table dba_extents not up to date with new information?

Any help would be appreciated. Thank you!

user11198894 wrote:
Measure sizes might be a problem. Looks like that the previous data files use a size smaller than those created after measure. And I have naven can't able to find much information about what "alter table... move" when a tablespace has more than one data file. Maybe it does work in this situation?

You will not be able to reduce the number of files in a tablespace; so if that's your goal, you will need to create a new tablespace and move objects inside. In addition, you will not be able to avoid a performance impact, unless you use the dbms_redefinition package to move tables because the MOVE command makes the unavailable table and requires you to rebuild indexes.

There is a note that I wrote some time back - with a pointer to a helpfuil script - which gives you a few ideas of how Oracle behaves with management space with multiple files when you move objects: http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/

If you want to keep the same tablespace you can try something roughly like this:


Run my script to report on the current use of space
Reduce as much as possible all the files
Move objects more big are reaching the end of the files
Repeat as necessary to step 1

Concerning
Jonathan Lewis

Tags: Database

Similar Questions

  • Message says low disk space on recovery D, free space by deleting files to support...

    Original title: get the message on the recovery of free space low disk space by deleting files bear D. I deleted by using disk cleanup, but I still get the same message?

    I got disk spave low recovery D ask me to use Disk Cleanup to delete the old files. I deleted many files and none using programs and I still get the same message. How can I clear this problem? I'm using Vista Home premium.

    Hello

    In NO case should remove anything from the recovery partition.

    Your recovery Partition was photographed on your hard drive during the production of your computer by the manufacturer for all of these reasons.

    1. to reinstall Vista from in the case of a failure of the system, based on individuals or the keys at startup.

    F10 or Alt + F10 or F11 are a couple of different manufacturers use sequences.

    You will need to ask your manufacturer for proper sequence.

    2. to make the recovery disks on if your drive hard breaks down, so that you can then reinstall the operating system on a new hard drive.

    Also ask them how to make records.

    Your D: Recovery Drive is should not be used for backups, defragmented, etc..

    There are backups on an external hard drive.

    To resolve the problems that have arisen with the recovery D: Partition, you will need to contact the manufacturer of your computer to remove all that has been added to it.

    See you soon.

  • Restore and recover a single file of data/Tablespace to reclaim space

    Oracle 11 G R2 with node 2 RAC, ASM and Data Guard

    11.2 Solaris

    I have a Bigfile Tablespace TB 5 on Production which has a very large table containing LOB data. Most of the LOBs have been deleted so now the space used is only 200G.

    I need to recover the space (to 4.8) below the high water mark (HWM). We tried all the usual methods (shrink, move, reorg online), but due to the enormous size of the space, they are all would require to take my Production database down for many hours. Also, I have limited disk space to work with.

    In 11 G RMAN skips data file blocks that do not contain at present no data when you save to disk for a backupset.

    I came with a possible alternative to reclaim space with RMAN below:

    1. turn the offending offline data file

    ALTER DATABASE DATAFILE OFFLINE 3.

    2 restore and recover the offending using data file:

    RUN {}

    SET NEWNAME for DATAFILE 3 on NEW;

    RESTORE THE 3 DATA FILE;

    DATAFILE 3 SWITCH;

    RECOVER DATA 3 FILE;

    }

    3. place the new file data online

    ALTER DATABASE DATAFILE 3 ONLINE;

    First: Will this work?

    Second: When I restore this data file, it will ignore the HWM on original table space and restore just the 200 GB of data, or he will restore the 5 TB of blocks used or not?

    Thank you.

    RMAN ignores empty blocks during the backup, but restoration will create the same file size as it has been earlier and restore data later. So you will get no benefit from it.

  • Cannot perform the recovery of the space and another Question

    Hello

    New configuration of the environment. Received this error on a VM/pool:

    Failed to perform recovery of space on machine XXXX at XXXX of pool

    Is there anywhere I can see what is actually causing this failure? I don't see this on my other pools.

    Also, if I change a pool and change the image base and instant, he return to service the current virtual machine and maintain persistent drives? I do then a recomposition?

    I deleted and recreated the pool this morning. Error seems to have resolved now. Very strange.

  • recovery of the backup for ipad files

    How can I display files that have been backed up if I did more than 1 backup in the same day? Thank you

    Look here and see what you can find files

    https://support.Apple.com/en-us/HT204215

  • The additional write custom file VI data feed

    I'm working on a program that will record data thermocouple (NI9213) as well as some power data from some DMM. For the moment, I have thermocouple data, being introduced in VI 'Write in a file as' and I write current and power in a separate using scripture to VI file file worksheet.

    What I'm looking for is a way to combine these two in a log file. Is it possible to add these additional variables in the data from the signal arriving at the writing on a measure VI file? If this isn't the case, ideas on how to merge the data into the file only newspaper would be greatly appreciated!


  • How to recover the left column in 2011 windows live photo gallery. It will list all the photo & video by file name, date, months, etc.

    Don't know what I did to lose the left column in Windows Live Photo Gallery 2011. Now impossible to drag the photos to the file names. How can I get that back?

    Hi JLiddell,

    Thanks for posting your question in the Microsoft answers Forum. For any questions about Windows Live Photo Gallery, please visit the following link:
     
  • CD burner is burning the music as a file of data instead of music? I think so???

    I tried to burn a CD of music with WMP.  When I insert the disk it says MB remaining, instead of remaining time.  The files to burn to the CD, but appear as data instead of music files.  The burner Burns DVD fine and has no problems burning data on a CD, the music seems to be the only problem.  The problem does not seem to start until I started burning DVD recently.  Any suggestions?  I get no error messages or anything like that.  Just don't burn the files like music?

    I tried to burn a CD of music with WMP.  When I insert the disk it says MB remaining, instead of remaining time.  The files to burn to the CD, but appear as data instead of music files.  The burner Burns DVD fine and has no problems burning data on a CD, the music seems to be the only problem.  The problem does not seem to start until I started burning DVD recently.  Any suggestions?  I get no error messages or anything like that.  Just don't burn the files like music?

    =======================================
    What is the extension on the files that are on the CD?

    ADC?  WMA?  MP3?

    Perhaps the following article would be not worth the detour:

    Windows Media Player 11 for Windows Vista
    Burn a CD or DVD in Windows Media Player
    http://Windows.Microsoft.com/en-us/Windows-Vista/burn-a-CD-or-DVD-in-Windows-Media-Player
    (Expand the title: "Burn audio CD")

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • cannot access the folders of hidden files "Application Data", "My Documents", "Local Settings" etc..

    I have a few hidden items in the directory to my windows user account which look like shortcuts, but are of type folder and are named 'Application Data', 'My Documents', 'Local Settings' etc.

    If I try to access the folder, it says:

    C:\Users\xx\My Documents\ is not accessible.

    Access denied

    Where he comes from and can remove the?

    It is, in addition to user accounts by default Windows, single user account on this system, which is of course also an administrator account.

    ... I also get the same message when I try to access the Documents and Settigs on my C drive...

    A clarification would be much appreciated!

    These elements are not records - what are the Points of junction. They are there to allow legacy applications to use the new Vista/Windows 7 file structure.

    Here is a list of all junction points and Windows 7 files, what they point out:

    C:\Documents and Settings - C:\Users\{user name} \Documents
    Application Data - C:\Users\{user name} \AppData\Roaming
    Cookies - name C:\Users\{user} \AppData\Roaming\Microsoft\Windows\Cookies
    History - name C:\Users\{user} \AppData\Local\Microsoft\Windows\History
    Locale - name C:\Users\{user} \AppData\Local
    NetHood - C:\Users\{user name} \AppData\Roaming\Microsoft\Windows\Network shortcuts
    Print neighborhood - C:\Users\{user name} \AppData\Roaming\Microsoft\Windows\Printer shortcuts
    {Recent - name C:\Users\{user} \AppData\Roaming\Microsoft\Windows\Recent
    SendTo - name C:\Users\{user} \AppData\Roaming\Microsoft\Windows\SendTo
    Start Menu - C:\Users\{user name} \AppData\Roaming\Microsoft\Windows\Start Menu
    Models - C:\Users\{user name} \AppData\Roaming
    Temporary Internet files - C:\Users\{user name} \AppData\Local\Microsoft\Windows\Temporary Internet Files

    More information on the Points of junction here:

    http://www.Svrops.com/Svrops/articles/jpoints.htm

  • The ERPi load mapping file for data import error

    Hello


    I am creating the ERPi mapping and download of mapping for a dimension via a file. It gives an error. I use the explicit mapping. Please help me with this. Error screenshot is attached. ERPi_Error.png

    Hello Asad,

    Create a unique mapping using the FDM web application and then export the map that you just created and it will show the required format

    Rgds,

    SH

  • How can I reclaim the space on a recovery Dell Inspiron 1525 (D) disc?

    There is a message constantly popping up on a lack of space on the disk Recovery (D). The State is free of 9,76 Go 11.7 MB. Positions the most important seem to be 3.43 GB dell, Windows 38.7 MB, 6.63 MB files and tools 1.52 MB

    How can we eliminate some of this, or what other solution y at - it the problem?

    You should get in touch with Dell, or the other official support from Dell or the Dell forums.

    MediaID.bin is a file created by Windows backup utility.  It seems as if you have run Windows Backup and Restore and save the backup on the D: drive.  This could be very easily which occupies the space.

    No icon for the look of computer folder LAPTOP as a normal folder icon or does look like this:

    There may be a few hidden files, too much space.  Download TreeSize Free and run a scan on the D: drive.  Don't forget to right click and select "run as Administrator" during the execution of TreeSize Free.

    After the scan, do not forget to click on the arrows to expand each folder to see the analysis of which is located in the folder.

  • How to store files in iCloud drive ONLY (do not use the space on my MACBOOK hard drive?

    How to store files in iCloud drive ONLY (do not use the space on my MACBOOK hard drive?)

    I want to save the file in my iCloud account, but free space in the hard drive of my MACBOOK

    I want to save the file in my iCloud account, but free space in the hard drive of my MACBOOK

    There is no practical way to do it.

    If you do not enable iCloud Drive on your Mac, you can upload files to iCloud by car via the web interface at https://www.icloud.com

    But you can access the files from the web interface and won't icloud drive as drive in the Finder.  You cannot use the Finder to access the files. You need to download it to use.

  • Windows Server 2012 does not seem to recognize the space between the program and files

    I installed 'R' in D:\Program Files.
    Then I need to install another application that must refer to this path and validate during its installation. Installation of the next application saying that there is a "Invalid Version of R.

    If I install R in the following directories, it is recognized and my next application installed successfully:
    C:\Program Files
    Files S:\Program
    D:\R

    Windows Server is not recognize the R application properly installed in "D:\Program Files." Windows runs into the space between "Program" and "Files" and put an end to the execution of this order.

    The application I am trying to install the message 'Invalid Version of R' returns because he can't run the command check correctly. Because nothing is returned from the R.exe, he is unable to continue. This issue seems to be related to Windows and once R.exe can be run correctly D:\Program files, I would expect demand to continue to install. Is anyway getting D:\Program Files to be recognized as the other 3 directories I mentioned?

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Access to the OE 6 dbx file recovery

    I just opened OE6 and noticed that over a third of my local files dbx are missing.  They appear in the box of identities, however.  This happened after OE my files compressed the previous night.  I also just learned that the OE has a 2G file size limit.  My total files 3.1 G, but this has never been a problem in the past.  OS is XP.  Can someone give me some gudance?  Thank you.  Mary

    Two reasons the most common for what you describe is disruption of the compacting process, (never touch anything until it's finished), or bloated folders. More about that below.
     

    Why OE insists on compacting folders when I close it? :
    http://www.insideoe.com/FAQs/why.htm#compact
     
     
     
     
    Recovery methods:
     
    If you are running XP/SP3, then you should have a backup of your dbx files in the Recycle Bin (or possibly the message store), copied as bak files.
     
    To restore a folder bak on the message store folder, first find the location of the message store.
     
    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
     
     
    In Windows XP, the .dbx files are by default marked as hidden. To view these files in the Solution Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder options | View.
     

    Note: If you have new messages in the folder you are go restore, move them to a folder first created user, or they will be lost. They can be moved once the old posts have been restored.
     

    Close OE and in Windows Explorer, click on the dbx to the file missing or empty file, then drag it to the desktop. It can be deleted later once you have successfully restored the bak file. Minimize the message store.
     
     
    Open OE and, if the folder is missing, create a folder with the * exact * same name as the bak file you want to restore but without the .bak. For example: If the file is Saved.bak, the new folder should be named saved. Open the new folder, and then close OE. If the folder is there, but just empty, continue to the next step.
     
     
    First of all, check if there is a bak file already in the message. If there is, and you have removed the dbx file, go ahead and rename it in dbx.
     

    If it is not already in the message, open the trash and do a right-click on the file bak for the folder in question and click on restore. Open the message store up and replace the .bak by .dbx file extension. Close the message store and open OE. Messages must be in the folder.
     
     
    If messages are restored successfully, you can go ahead and delete the old dbx file that you moved to the desktop.
     
     
    If you have not then bak copies of your dbx files in the Recycle Bin:
     

    DBXpress run in extract disc Mode is the best chance to recover messages:
    http://www.oehelp.com/DBXpress/default.aspx
     
     
     
     
     
     

    A general warning to help avoid this in the future:
     

    Do not archive mail in default OE folders. They finally are damaged. Create your own folders defined by the user for mail storage and move your mail to them. Empty the deleted items folder regularly. Keep user created folders under 300 MB, and also empty as is possible to default folders.
     

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently.
     
     
     
    For more information, see:
    http://www.oehelp.com/OETips.aspx#3 
     
     
     
    And backup often.
     
     
    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx  
     
     
     

     
  • It is usually safe to remove items from the user / local/temp file? I want to free up space.

    Original title: local/temp folder files

    It is usually safe to remove items from the user / local/temp file?  I want to free up space.

    Clean the system (compensation to all temp/tmp folders and included all the content offline, the tif browser, delete the cookies of compensation.)

    Do a disk cleanup. Click the Start button. in the search box, type Disk Cleanup, and then in the list of results, click Disk Cleanup.

    Delete your temp files where a large number of software malware installers cache and or CCleaner for a more thorough cleaning.

    Download the basic version (slim) via

    http://www.CCleaner.com/download/builds.aspx>

    The basic version (slim) does not contain the toolbar disgusted

    Cleaning DO NOT USE ANY Advanced options. DO NOT TOUCH THE REGISTRY OR TOOLS. At least not for now.
    Reset

    UTC/GMT is 04:20 on Thursday, January 5, 2012

Maybe you are looking for