Dropped a table but space not freed on drive

Hi All,
I had a table that was storing 244gb of data, I've truncated it then drop it in SSMS.
However it has not freed up the space of the drive.
I did try
dbcc shrinkfile(fileid)
Please Help.
Thanks
Rebekah

Hi Adding this
When you drop or rebuild large indexes, or drop or truncate large tables, the Database Engine defers the actual page deallocations, and their associated locks, until after a transaction commits. This implementation supports both autocommit and explicit transactions
in a multiuser environment, and applies to large tables and indexes that use more than 128 extents.
The Database Engine avoids the allocation locks that are required to drop large objects by splitting the process in two separate phases: logical and physical.
In the logical phase, the existing allocation units used by the table or index are marked for deallocation and locked until the transaction commits. With a clustered index that is dropped, the data rows are copied and then moved to new allocation units created
to the store either a rebuilt clustered index, or a heap. (In the case of an index rebuild, the data rows are sorted also.) When there is a rollback, only this logical phase needs to be rolled back.
The physical phase occurs after the transaction commits. The allocation units marked for deallocation are physically dropped in batches. These drops are handled inside short transactions that occur in the background, and do not require lots of locks.
Because the physical phase occurs after a transaction commits, the storage space of the table or index might still appear as unavailable. If this space is required for the database to grow before the physical phase is completed, the Database Engine tries
to recover space from allocation units marked for deallocation. To find the space currently used by these allocation units, use the
sys.allocation_units catalog view.
Deferred drop operations do not release allocated space immediately, and they introduce additional overhead costs in the Database Engine. Therefore, tables and indexes that use 128 or fewer extents are dropped, truncated, and rebuilt just like in SQL Server
2000. This means both the logical and physical phases occur before the transaction commits.
Link:
http://technet.microsoft.com/en-us/library/ms177495%28v=sql.105%29.aspx
You need to wait before internal operations complete and then please shrink in small chunks.
PS: Its well known fact shrinking causes logical fragmentation so you must rebuild indexes after shrinking is done
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP

Similar Messages

  • Drop undo tablespace but space not release (du and df show different value)

    hi guys,
    i just change my undo and drop the previous 1.
    create undo tablespace UNDOTBS4 DATAFILE '/u03/oradata/starhub/undotbs4.dbf' size 2g;
    Tablespace created.
    SQL> ALTER SYSTEM SET UNDO_TABLESPACE = undotbs4;
    System altered.
    SQL>  drop tablespace undotbs3 including contents and datafiles;
    Tablespace dropped.
    SQL>
    However, when i check my diskspace using df -h , it is still showing. 32 gig is used. where infact, only 30G should be used.
    71G 32G 37G 47% /u03
    when i check using du -h, it is showing only
    30G ./oradata
    I have to bounce the database to get my 2G back, why ?
    Is there anyway to get my 2G back without bouncing the DB ?
    Regards,
    Noob

    Oracle has the file still open, so the i-node of that file is still in use, so the file shows up.
    Learn your Unix!
    Sybrand Bakker
    Senior Oracle DBA

  • I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?

       I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?

    You can open the form in Acrobat, select "File > Save a Copy", open the copy you just saved (it doesn't happen automatically), edit the dropdown to add the new item, save as a new file, and then Reader-enable the file by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools. The resulting PDF should work with FormsCentral just like the original.

  • I dropped my mac pro. The disc drive plays but will not record. medium drive error. How hard is it to replace the drive my self. i see screws on the bottom. Could I just order a new internal drive and replace it? Or is it too complicated for the average ?

    I dropped my mac pro. The disc drive plays but will not record. medium drive error. How hard is it to replace the drive my self. i see screws on the bottom. Could I just order a new internal drive and replace it? Or is it too complicated for the average person? Would be cheaper to buy an external drive than to replace internal one? Any advice is appreciated

    How certain are you the superdrive ONLY is at fault?
    That depends on your skill level, if you grew up tearing things apart and putting them together, its absurd how easy it is.
    For some however its too daunting.   On a general skill level for the "average" person its about a 3 out of 10 in difficulty.
    Can you order same? yes.

  • I have an imac 2009 the disk drive is damaged and I have lost the passwords I need to reset passwords I tried booting with a macosx disk from an external hard drive but did not read the drive how else can I reset password ?

    I have an imac 2009 the disk drive is damaged and I have lost the passwords I need to reset passwords I tried booting with a macosx disk from an external hard drive but did not read the drive how else can I reset password ?
    I have a 2012 mac book pro can I use that to connect with firewire and load osx that way? and how woudl I do that?
    Thanks so much!

    To what password are you referring? Do you mean your user account's admin password? Or do you mean the master password for File Vault or do you mean a Firmware Password?
    For an admin password:
    Forgot Your Account Password
    For Snow Leopard and earlier
         Mac OS X 10.6- If you forget your administrator password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.
    If you cannot do the above then try this:
      1. Boot to Safe Mode by restarting and after the chime press and hold down the COMMAND-S keys until a black screen with white type appears.
      2. At the prompt, type the following commands pressing return after each command line:
         /sbin/fsck -yf
         If you do not receive a "Filesystem OK" message then repeat this command until
         you do.  If after seven tries you still do not receive a "Filesystem OK" message,
         then the system is corrupted and needs to be reinstalled.
         mount -uw /
         cd /private/var/db/netinfo
         mv local.nidb local.old
         rm ../.AppleSetupDone
         shutdown -r now
    The second-to-last command above will cause OS X to think that the operating system is newly installed, and when the new owner starts up the computer it will send him/her to the startup wizard where he/she can start a new user without reinstalling.
    This last method does not actually change a password. It simply removes the user accounts and lets you create an initial admin account as if the computer were new out of the box.
    How to reset the OS X password without a startup CD:
    Reboot into Single-user Mode. Enter the following and press RETURN after each command line
       1. Type fsck -fy
       2. Type mount -uw /
       3. Type passwd <username>
    I have never tried this method myself.

  • Missing Songs on Nomad Jukebox Zen Xtra - 40GB. Player empty but space not 1

    I have the Nomad Jukebox Zen Xtra 40GB.
    Over the last couple of weeks I?ve been slowly ripping my CDs, using Creative MediaSource and then adding them to my Nomad player. Recently, I went to turn on my player and notice it saying ?rebuilding library?. I thought nothing of it.<SPAN> I then went to see how many songs and albums were on the player and from what I could tell it looked like a lot less than what I thought I had copied over. The songs were something like 3750 and the number of albums was something like 350, which was far less than what I thought it should be but was not 00% for sure.<SPAN> Total free space was something like 7800MB.
    Anyway, yesterday, I tried to copy over some new songs that I had just ripped from CDs.<SPAN> ? of the way through the battery died on the Zen player so it stopped transferring. I went to charge the player and when turned it on the player said ?rebuilding library?. There should, at this point, had been 4500+ songs.<SPAN> I went and tried to copy over the files again, from my computer, and noticed that the songs that I had just copied and would have been skipped, were being copied over again. When I went to check Settings, About the player said I had the ~3750 songs plus the additional songs that had just copied over. At this point I just copied over the new songs bringing my total count to 4634. To be safe, I copied all the songs from my Zen back to a new computer, using Creative MediaSource. After copying over all the files, I then tried a reset of the player, thinking this would delete all the files on the Zen. Instead it did the ?rebuilding library?.<SPAN> When I went back to Settings, About, on the Zen player, it again said there was the ~3750 songs and ~350 albums.<SPAN> So the ?rebuilding library? on my Zen player keeps on removing/hiding my songs and albums.
    Since nothing was working, I connected my Zen to my computer again and using the Creative MediaSource deleted all the songs on my Zen player. When I was done it is showing No. of Tracks: 0.<SPAN> Total Memory:<SPAN> 3833MB.<SPAN> Free Memory though is only 8659MB.
    There is nothing on my Zen player that I can see. Even using Windows Explorer and Nomad Explorer, it is completely blank.
    Someone help please.<SPAN> How do I get back my missing songs and/or reset the player? If at all possible I?d like to get the missing songs off the player since I don?t have those ripped songs on my computer and don?t feel like ripping all those songs again.<SPAN> What is going on?

    PaulS7 wrote:
    Thank you. I'm trying that now. I see that I can reload the OS (Firmware). Does anyone know where I can find out what the latest firmware is to see if I need to upgrade? How do I find out what the latest firmware is and where do I go to upgrade?
    Make sure to read the FAQ post. All downloads are got from Nomadworld.com downloads.

  • I received Elements 13 (disc install, not download) as a gift but do not have disc drive on my HP Ultrabook.  Am I able to redeem this for a downloadable version?

    I received Photoshop Elements 13 (disc install version, not download install version) as a gift, but do not have a disc drive on my HP Ultrabook.  After entering redemption code to obtain the serial number I expected (apparently naively) to have the ability to choose a downloadable version of the product to begin installation.  Does anyone know if there is a way to redeem this for a downloadable version?

    the program is free.  the serial number to activate is what costs money (and is what you hopefully received in that gift).
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • When converting Word Doc to PDF Acrobat converts all words and tables but will not convert graphs

    When converting a word microsoft word document to PDF Acrobat converts words, tables, everything but the graphs in the document. It will not convert the graphs it leaves that area blank.

    Cvest group wrote:
    From Microsoft Office 2007 created word doc from word doc to Acrobat to Create PDF.
    This is very confusing; what actually coverted the document - Word, Acrobat, or CreatePDF (now renamed to "Adobe PDF Pack") ?
    Either way it's not an Adobe Reader problem;
    if Word: post in the Microsoft Word forum
    if Acrobat: post in the Adobe Acrobat forum
    if ExportPDF: post in the ExportPDF forum

  • Dbmail status is 'sent' in the sysmail_sentitems table but mail not received

    Hi,
    Suddenly from yesterday, we have not been receiving any of our notification mails from any of our servers (Dev/Prod/UAT).No changes were made to email operator .
    All the mails are available in the sysmail_sentitems table and not available in sysmail_faileditems/sysmail_event_log.When generated a test mail and checked the status using sysmail_help_queue_sp , the status is 'RECEIVES_OCCURRING'.
    What could possibly be the issue.
    Thanks

    That message is normal.
    Please see:
    http://technet.microsoft.com/en-us/library/ms187540(v=sql.105).aspx
    If DBMail shows the email is "sent" then it was sent to the SMTP server and the problem does not reside in SQL Server DBMail. 
    This is most likely a SPAM filter has been configured on the server which is throwing away your emails.  Please see your SMTP administrator.

  • Not drop a table

    Maybe this is a simple problem. I attempt to drop a table, but I fail. Although I quit the SQLPlus environment, I still cannot create a table with the same name next time. Please tell me how to completely drop the table.

    What is the error you receive when you try to drop the table? The only thing I can think of off of top of my head is that you have foreign key constraints referencing the table in question. If this is the case, you need to do a: drop table TABLE_NAME cascade constraints. This will drop the table and all foreign key constraints that reference the table.
    -Jim Wartnick
    [email protected]

  • How to drop a table in another schema.

    Hi there, was looking to drop a table that is currently created under GL schema when consolidation process is done. These tables are kind of temporary and stay there if consolidation process doesn't complete successfully.
    So, I'm try to execute a script that would drop the table but the particularity is that this drop isn'T executed by apps but with bolinf (custom user).
    So, while trying to delete it with bolinf, I always get an error message that the table doesn't exists or so.
    Here's the code
    r_gl_int_ctrl.INTERFACE_TABLE_NAME is retreived from gl_interface_control table and from INTERFACE_TABLE_NAME column.
    EXECUTE IMMEDIATE 'DROP TABLE GL.' || r_gl_int_ctrl.INTERFACE_TABLE_NAME;
    and this generates the following error : ORA-00942: table or view does not exist
    R12.0.6
    RDBMS 10.2.0.3.0
    Custom package under bolinf schema is trying to drop GL.GL_CONS_INTERFACE_38190 and it's not working. Nevertheless, if I install this package under apps, table get dropped.
    Is there a way that I can drop a GL table like GL.GL_CONS_INTERFACE_38190 from BOLINF schema ? If so, what privileges/grant should user BOLINF have in order to drop this table from a GL Schema ?
    Thank you.

    Hi;
    You need to give drop grant to your user.Easy way is to give
    GRANT DROP ANY TABLE TO USER; << but its mean it will give drop grant for all table.
    Also see:
    OERR: ORA 942 "table or view does not exist" [ID 18536.1]
    Regard
    Helios

  • Dropping a table only if it exists

    Does anyone have the sql code to drop a table
    only if it exists in dba_tables? We build
    temporary tables for the run of a job. Before we start the job we want to make sure that none of those tables were accidentally left around, so we check for their existence, and if they are present, we drop them. If you try to drop a table that does NOT exist, you get an error and are kicked out of the batch job.

    Just trap the error at drop time and ignore it.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by ():
    Does anyone have the sql code to drop a table
    only if it exists in dba_tables? We build
    temporary tables for the run of a job. Before we start the job we want to make sure that none of those tables were accidentally left around, so we check for their existence, and if they are present, we drop them. If you try to drop a table that does NOT exist, you get an error and are kicked out of the batch job.<HR></BLOCKQUOTE>
    null

  • Using the "star" to bookmark a page but is not saving it to bookmarks??

    I click on the star to bookmark a page but when I go to find it under Bookmarks it is not there. It does show under "recent bookmarks" in the drop down menu but is not in my permanent bookmarks??
    This just started happening after I updated Firefox to 29.0.1 - it was not doing this before and worked fine.
    Windows 8
    Please help!

    * If you click the ★ Star Icon once, the bookmark ends up in the Unsorted Bookmarks folder.
    * If you double-click the ★ Star Icon, you get to pick where to place the bookmark.
    * If you press Ctrl+D (Mac: Command+D), the bookmark ends up in the Bookmarks Menu folder and you get to pick where to place it.
    The following add-on makes bookmarking easier in various ways. Among other things, it's able to remember the last used folder.
    * https://addons.mozilla.org/firefox/addon/add-bookmark-here-2/

  • How do i drop my table

    Hi guys ,
    am trying to drop my table . but it is used by another user . am getting error message.
    can give a suggession .
    Edited by: Balajiraam on Mar 2, 2011 1:33 AM

    Hi,
    You cannot drop the table without the other user completing the transaction on the table. So the user's transaction has to be completed before you drop the table. As hoek said the user should either commit or rollback the transaction.
    cheers
    VT

  • I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down eliminate

    I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down menu with the gear box symbol to eliminate

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

Maybe you are looking for

  • Beryl and urxvt problems

    I have having some trouble with using urxvt and beryl under xfce. It seems that whenever urxvt is redrawn by beryl (due to focus/unfocus, minimize, etc) all of the window buttons (shade, restore/maximize, close/destroy) disappear and I am no longer a

  • When turning on i get apple logo then it turns off

    my computer unexpectedly shut down, then when I reboot, i get the apple logo for a few seconds, then it shuts off

  • I NEED HELP. HELP ME PLEASE!

    I have a e-machine and i just purchased a ibook G4. I am about to connect to the internet via Dial-up. If I connect to the internet with my emachine pc, can I do the BLUE TOOTH thing with my ibook G4? or bi-versa? Which one did you advised me to do?

  • Secure BPEL...HOW???

    Hi! I would like to implement a secure BPEL process. It involves that I must config the SSL and implement the WS-Security(Authentication tokens, XML encryption, XML digital signature). How can I do this on SOA Suite? If You know a document where thes

  • I lost my ipad and didnt pu icloud on it.. if i know the serial

    I lost my ipad and didn't have icloud on it.. Is it possible to track my iPad through the serial # or do I need the icloud?