How free up tablespace space

Platform: 4u7
Database: 11.2.0.1 (Single instance)
I had the tablespace USERS1 with *100MB* size and *~96%* free. Then I did following:
SQL> create table t1 (c1 number);
Table created.
SQL> set verify off
SQL> set serveroutput on
SQL> begin
2 for i in 1..100000 loop
3 insert into t1 values('1');
4 end loop;
5 end;
6 /
PL/SQL procedure successfully completed.
SQL> begin
2 for i in 1..10000 loop
3 insert into t1 select * from t1;
4 end loop;
5 end;
6 /
AND then I got error:
ORA-01653: unable to extend table SCOTT.T1 by 1024 in tablespace USERS1
ORA-06512: at line 3
then i did "rollback" from the same session, but still the free space of USERS1 tablespace is *3MB ONLY*.
My question is how can i get the space released from this tablespace as when I've rolledback the transactions? Please help.

then i did "rollback" from the same session, but still the free space of USERS1 tablespace is *3MB ONLY*.
My question is how can i get the space released from this tablespace as when I've rolledback the transactions? Please help.
col tablespace_name format a15
col file_size format 99999
col file_name format a50
col hwm format 99999
col can_save format 99999
SELECT tablespace_name, file_name, file_size, hwm, file_size-hwm can_save
FROM (SELECT /*+ RULE */ ddf.tablespace_name, ddf.file_name file_name,
ddf.bytes/1048576 file_size,(ebf.maximum + de.blocks-1)*dbs.db_block_size/1048576 hwm
FROM dba_data_files ddf,(SELECT file_id, MAX(block_id) maximum FROM dba_extents GROUP BY file_id) ebf,dba_extents de,
(SELECT value db_block_size FROM v$parameter WHERE name='db_block_size') dbs
WHERE ddf.file_id = ebf.file_id
AND de.file_id = ebf.file_id
AND de.block_id = ebf.maximum
ORDER BY 1,2); Output sample:-
TABLESPACE_NAME FILE_NAME                                          FILE_SIZE    HWM CAN_SAVE
EXAMPLE         C:\ORACLE\APP\ORADATA\CKPT\EXAMPLE01.DBF                 100     81       19
SYSAUX          C:\ORACLE\APP\ORADATA\CKPT\SYSAUX01.DBF                  500    480       20
SYSTEM          C:\ORACLE\APP\ORADATA\CKPT\SYSTEM01.DBF                  690    681        9
UNDOTBS1        C:\ORACLE\APP\ORADATA\CKPT\UNDOTBS01.DBF                  55     43       12
USERS           C:\ORACLE\APP\ORADATA\CKPT\USERS01.DBF                    28     10       18Now post this query output. You can see changes.

Similar Messages

  • How will check the space taken by a single table in a tablespace ?

    How will check the space taken by a single table in a tablespace ?
    dba_segments is giving the same values even if I truncate the table?
    Pls reply

    I need to know how can we find out the size of the table in the tablespace.use user_segments (bytes) column.
    How much bytes it has taken ?value from user_segments, bytes column
    If u delete records will the space be used for another table in same tablespace?No, it keep the space in the same table for future usage.
    How can we free that space ?truncate or drop the table and reduce the size from tablespace, if you want to reclaim the space from the tablespace, OS level.
    Jaffar

  • HOW WILL I BACK UP MY ITUNES LIBRARY TO HARDDRIVE SO I CAN FREE UP SOME SPACE IN MY MAC?

    Hi!
    My mac is running low in memory space and mostly of the bigger occupants of my laptop are my music collection. Therefore, i want to back it up or transfer it to my external hard drive so i can free up some space. And just play it when connected to my external hard drive. How will i do it?
    Also is there a short cut for deleting duplicate songs in my itunes.
    Please help thanks.

    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you let iTunes manage your music:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Start iTunes with the option (shift on Windows) key held down and guide it to the new location of the library.
    Note that moving your library to another drive is not "backing up".  Backing up is making a second (or more) copy of your files onto another drive because you know that some day, without warning, your hard drive will suddenly refuse to work or get stolen and you will be sooo happy you spent the $100 in getting a backup drive which will have saved all your files (such as irreplaceable photos).
    How to find and remove duplicate items in your iTunes library - http://support.apple.com/kb/HT2905
    http://dougscripts.com/itunes/itinfo/dupin.php (commercial)
    Posts by turingtest2 about different types of duplicates and techniques- https://discussions.apple.com/thread/3555601 and https://discussions.apple.com/message/16042406 (Note: The DeDuper script is for Windows)
    I would do it manually.  As you can see from turingtest2's post, some duplicates are not really duplicates.

  • Trying to sync ipad and it is telling me i have 10.6 gb of  video. when looking on the left column under my ipad I see it is coming from previous rentals that are no longer available on my ipad. how can I delete this to free up the space on my ipad?

    Hi,
    When trying to sync my ipad i see that I have 10.6 gb of video on my device. When i looked at my itunes under rentals i see that is where all the video space is coming from. These videos are no longer available to watch and I didn't know  how i can delete them to free up the space on my ipad??

    Did you try to set it up as new device, as explained in this article?
    How to erase your iOS device and then set it up as a new device or restore it from backups
    If this does not work, use iTunes to set it back to factory settings, which would also install the latest software:
    Use iTunes to restore your iOS device to factory settings - Apple Support

  • HOW to find out the tablespace space utilized by a patch after applying the

    someone has already applied the patch in test env before recording the tablespace size , so I cannot find out the figure in test env.
    So is there any general practice or general guidelines on it?
    hOW to find out the tablespace space utilized by a patch after applying the patch?
    Thanks & Regards,
    Sree.
    Edited by: 846579 on Mar 22, 2011 10:50 PM

    I think there is no direct way to determine what tablespace is utilized by a patch from the README file. You could check the content of the patch file and see what modules are affected (assuming there are changes and the database level), then query DBA_USERS (DEFAULT_TABLESPACE column) for those schemas which are updated by a patch. Or, you could check the size of the tablespaces before and after applying the patch and you will determine what tablespaces have been utilized (provided that the application services are down, and none of the application users is connected to the application).
    Thanks,
    Hussein

  • How to free up disk space on drive C

    We have been running Windows Small Business Server 2011 Essentials Sp1 for a number of years now without any apparent problems. We have noticed over this period, the free space on the 'C' drive diminishing over time. We are now at a point where housekeeping
    needs to be undertaken to prevent disk space issues occurring in the future.
    1) Is there an in-built utility that would identify what applications or directories are using the most space? If not, are you aware of a utility that could offer this functionality i.e. Treesize. Does Microsoft offer a utility?, maybe as part of Systernals?
    2) The 'C' drive is 60Gb in size (I believe this was the default size during the install). When the server was initially installed, it had 20Gb free space on drive 'C'. At the point of writing, free space is now 7Gb. All installed applications and user shares
    are pointing to a second drive (D). I'm assuming that the increase in used space is caused by log files or windows updates.
    2) I've manually scoured the 'C' drive and noticed that folder 'C:\Windows\winsxs' is 10.6Gb in size. I believe this folder relates to Windows Updates. Are we able to carry out housekeeping on this folder? If so, please could you advise the correct way of achieving
    this. The 'Disk Cleanup' utility only offers to clean up 1.2Gb which is not enough.
    I hope someone can offer some assistance.
    Regards

    Hi LMG09,
    Currently, please refer to following article and check if help us to recover Disk Space on C drive on the SBS
    2011.
    Recovering
    Disk Space on the C: Drive in Small Business Server 2008
    à
    I've manually scoured the 'C' drive and noticed that folder 'C:\Windows\winsxs' is 10.6Gb in size
    The Windows component store (C:\Windows\winsxs) directory is used during servicing operations within Windows
    installations. Servicing operations include, but are not limited to, Windows Update, service pack, and hotfix installations. The component store contains all the files that are required for a Windows installation. And, any updates to those files are also held
    within the component store as the updates are installed. Please also refer to following article and check if can help you.
    How
    to Clean up the WinSxS Directory and Free Up Disk Space on Windows Server 2008 R2 with New Update
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • When i look at how much hard drive space i have available, my mac says i have 250 gigs used up in backup.  I can not find this backup file to delete it and free up the space

    When i look at how much hard drive space i have available, my mac says i have 250 gigs used up in backup.  I can not find this backup file to delete it and free up the space

    OmniDiskSweeper is a free utility that checks HD space.
    FreeSpace cost $1 or is a free utility that checks HD space.
    SpaceControl is a free utility that checks HD space.

  • How to see how much hard drive space is free in my MacBook Pro

    I have a lot of music and am starting to use lossless files.  How can I check to see how much hard drive space I have free on my MacBook Pro?

    Select:
    •  (in the Menu Bar)
    • About This Mac
    A window appears
    Select:
    • More Info...
    Another window appears
    Select:
    • Storage

  • How do I free up 'Other' Space on my iPod Touch?

    So I just bought an 8GB iPod Touch 4 today, and while syncing my music and downloading apps, I noticed there was a chunk of space called "Other" on my iPod (Shows in iTunes) That takes up a large 0.9 GB. Since my iPod is an 8GB and I want to keep the space as open as possible, I did short research on how I could get rid of this. The only thing I found was http://ipodtoucher55.blogspot.com/2009/01/free-up-other-space.html .
    So I have a few questions:
    1. Can anyone confirm that this method still works? The article was posted in 2009, and I am wondering if it is outdated and won't work.
    2. Step 3 on the page says "Click on the Sync button in the bottom right corner, don't cancel the backup." I click "Sync" in the bottom right corner, it loads something for a second, then nothing happens. Is this normal? If I follow the rest of the steps, will my Apps still be there?
    3. Are there any other methods that I could use to free up "Other" space? I want to keep all my apps (I can put my music/videos back in later) because I paid money for them, and I'm scared I might lose them if I do something wrong.
    Thanks in advance for your help, as you can see I'm still figuring things out >.<

    1. Yes, all those methods will still work for your device.
    2/3. To make sure all of your apps are synced on to your computer, disconnect your device from your computer. Then look on the Applications page of iTunes, if they are there, that means that all of your paid apps have been backed up on to your computer and you are safe to restore.

  • How to free up iCloud space from pictures

    iCloud tells me Ive run out of space for backups.
    I am backing up my iPad which has very few photos and my iPhone which has a lot.
    Storage & Backup reads:
    iPhone 3.7GB
    iPad 364MB
    Docs&Data 8.6MB
    Mail 312.2MB
    Available 643MB
    Drilling down into my iPhone
    4.4GB Next Backup Size
    4.1GB Camera Roll
    151MB iBooks
    22MB Twitter
    12MB Whatsapp
    5MB Waze
    Anwyay, we can see the culprit here
    My Photos App Shows this:
    Camera Roll 414
    Photo Library 2459
    Last 12 Months 407
    Last Import 23
    My question is how should I manage this in a smart way?  My iPhone is 32GB.  I have quite a bit of free space.  But how does this really work?
    As I take pictures, I want them backed up on the cloud in case something happens to my phone.  Once I plug it into my mac, those pics in the Camera Roll go into my Photo Library, right?  So if they are in the Photo Library, I shouldnt need to back them up to the cloud anymore.
    So here is my question...I actually have duplicates on my phone right?  I can see those 23 last imported pictures, they are all in the Camera Roll but they are also in the PhotoLibrary (on my iPhone).  If those 23 pics are in the Last Import, that means they are backed up to my iPhoto app on my mac.  Which is why they show up on the iPhone's PhotoLibrary folder.  So there is no sense in having them in Camera Roll as well, is there?  Taking up valuable iCloud space...
    How should I proceed?  I want to free up the space I have in Camera Roll by having all those pics and movies show up in PhotoLibrary and have a hardcopy on my ssd but I dont want them backing up into iCloud.
    I DO HOWEVER, want to maintain the iCloud-CameraRoll-backup feature activated so that pictures I take today until the time I backup to iPhoto on Mac, are backed up to the iCloud.
    phew!

    For example,
    This is what I had above:
    My Photos App Shows this (on iPhone):
    Camera Roll 414
    Photo Library 2459
    Last 12 Months 407
    Last Import 23
    I took some pictures today and connected the iPhone to my mac.  iPhoto popped open and I selected the new photos to import.
    iPhoto says
    Photos 2643
    Last Import 18.
    18 is the number of photos I imported.  However, my iPhone Photos app still shows:
    My Photos App Shows this (on iPhone):
    Camera Roll 414
    Photo Library 2459
    Last 12 Months 407
    Last Import 23
    I always keep my photos on the device even after I import them to iPhoto.  So indeed they are on my iPhone's Camera Roll.  But they are not on the iPhone's Photo Library nor in the iPhone's Last Import.
    So if I were to erase those 18 new pics from CameraRoll, I would have them on my mac, but not on my device!
    I want my pics on the device, just not backing up to iCloud.
    So what makes my pics on iPhone go from Camera Roll to PhotoLibrary?

  • How do you tell the free hard drive space on macbook pro 10.6.8

    how do you tell the free hard drive space on macbook pro 10.6.8

    Open Activity Monitor and look at the drive space info
    see graphic here
    Why is my computer slow?

  • When i sync my iPhone it says that there is 2.0 gb of photos on it...when there clearly ISNT!! how do i free up this space to use?

    When i plug my phone into sync it it is reading in the lower bar that i have 2.0GB of photos on my phone and when i go under the usage on my phone it is saying the same thing...but under the app there are no photos what so ever!! how do i free up this space to be able to use it?

    Why is this so difficult to figure out?
    The message is quite clear.  The size of the iTunes library is larger than the space available on the device.
    Stop attempting to sync the entire library to the device.
    Select the desired content to sync to the device.
    Sync.

  • When starting the computer, I get a grey screen and following status: your startup disk is full. How can I still enter (in order to free-up some space)?

    When starting the computer, I get a grey screen and following status: your startup disk is full. How can I still enter (in order to free-up some space)?

    Simple way to make HDD free space is delete files you don't need anymore.
    Or get bigger drive and external HDD case, then:
    1) install bigger HDD in external drive case.
    2) connect external drive and format and mount it with Disk Utility.
    3) make clone with Carbon Copy Cloner or SuperDuper!(source drive is internal HDD, target drive is external one).
    4) install external bigger drive into your Macbook Pro.
    In the cace if your're using Mac Pro:
    1) get bigger HDD and install it in drive bay of Mac Pro.
    2) format and mount it with Disk Utility.
    3) make clone with Carbon Copy Cloner or SuperDuper!(source drive is old HDD, target drive is new one).
    4) Select boot drive to new bigger one.

  • Can anyone tell me how to delete previous "keep file" files? Im trying to free up some space on my mac.

    Can anyone tell me how to delete previous "keep file" files? Im trying to free up some space on my mac.

    You can upgrade to Mavericks free, just run the App Store program and search for Mavericks. But before you do upgrade I recommend the following:
    1) make sure you have a recent backup. TimeMachine is fine.
    2) Mavericks is somewhat more memory hungry than 10.7 was. You will need 4 GB of RAM and I strongly recommend 8 GB.
    Go back to the Apple menu and select About this Mac - look under the OS info you just looked at. You'll see how much RAM your computer has now. Then click on the More Info button. There you will see your computer info listed as in: iMac, 21.5" mid 2010, for example. Return back with that information and we can tell you how far the computer can be upgraded.
    If you decide to procede and you have enough RAM upgrading to Mavericks is quite simple. Click on the download button and let it do its job.

  • I have a 2tb time capsule wondering how to store a lot of my files and photos on it to free up some space on my hard drive on my iMac

    i have a 2tb time capsule wondering how to store a lot of my files and photos on it to free up some space on my hard drive on my iMac

    For iMac please use USB or even better a FW800 or if you can afford it, a thunderbolt drive.. on your 2011 Mac.
    Time Capsule is not a suitable place to store your files.
    1. You will have no backup.
    2. TC cannot back itself up, nor can Time Machine backup network drives.
    3. Apple says specifically of iphoto not to store library on network drive.
    iphoto network no no.
    http://support.apple.com/kb/HT1198
    It's recommended that you store your iPhoto library on a locally mounted hard drive. Storing your iPhoto library on a network share can lead to poor performance, data corruption, or data loss.
    https://discussions.apple.com/thread/6692100
    4. Other libraries may not corrupt but will run very slowly. iTunes for example.
    Please purchase the fastest drive out of the external ports you have available.. usb2 although the slowest is still faster than TC over gigabit. It is also more reliable. TC are not a noted reliable storage drive. It is designed as a backup location for TM files.

Maybe you are looking for