Reduce the tablespace size

Hi,
In my database, one tablespace used 5% and it's size is 8GB when i try to shrink the tablespace it gives the error that you can not shrink the tablespace.
So can you please tell me that how can i reduce the size of that tablespace.
Thanks in advance.

1) Export the tables of that tablepsace
2) Create a new tablespace and dump those tables into new tablespace
3) Drop the 8GB tablespace.
OR
1) Move online the tables of 8 GB tablespace into another tablespace. Rebuild the indexes.

Similar Messages

  • Reducing the tablespace size

    Hi,
    My database size has been grown upto 20GB. So we thought of dropping the users after taking the backup. The problem is even after dropping the user, the size has not been decreased. But when i see the datafile, there it is showing that the percentage of memory occupied is reduced from 99% to 10%.
    How can i free up the space.
    Regards,
    Alok Dubey

    This is not the correct forum to deal with your question. This forum deal with the languages SQL and PL/SQL. You have a general database (use & administration) question.
    Please ask this question in the [url http://forums.oracle.com/forums/forum.jspa?forumID=61]Database - General forum.
    Simple answer to your question. Dropping a user/schema/table/index frees up space in the tablespace (depending on the size of that being dropped).
    It does not decrease the size of the tablespace. (and a tablespace occupies disk space and not memory).
    Reducing the size of a tablespace is not a trivial task as it cannot be simply shrunk as there can be data blocks in use at the high-end of the tablespace. Thus the answer to your question is also not trivial and more than one approach can be considered.. which is why you would be best served asking this in the proper forum.

  • Reducing unused tablespace size

    Hi,
    i have oracle database 10g on linux.
    when i initially created tablespaces i allocated a huge amount of space, but when i checked the actual data size in eac tablespace, they are very small.
    and now i want to backup my tablespaces in a tape drive. but the size of all the tablespace is bigger then my tape.
    is there a way where i can reduce the size of my tablespaces. for example my "USERS" tablespace has only data occupying only 3 GB but i allocated about 10GB as the size for USERS tablespace.
    so how can i bring the size down to 5GB so i do need to backup unnecessary space on my tape.
    Thanks,
    Philip.

    Hi,
    First run below query and according query output you can reduce you tablespace size.
    ORA-03297: file contains used data beyond requested RESIZE value
    SQL> select bytes/1024 from dba_data_files where file_id = 6;
    BYTES/1024
    7168
    SQL> select sum(bytes/1024) from dba_segments where tablespace_name = 'EXAMPLE';
    SUM(BYTES/1024)
    5440
    SQL> alter database
    2 datafile 'c:\oracle\product\10.1.0\oradata\db02\example01.dbf' resize 5500k
    alter database
    ERROR at line 1:
    ORA-03297: file contains used data beyond requested RESIZE value
    According below query output you can reduce your tablespace size up to HWM.
    if you want to reset HWM you can use 1.export + import OR alter table + rebuild index.
    SQL> ed
    Wrote file afiedt.buf
    1 select
    2 a.file_name,
    3 a.bytes file_size_in_bytes,
    4 (c.block_id+(c.blocks-1)) * &_BLOCK_SIZE HWM_BYTES,
    5 a.bytes - ((c.block_id+(c.blocks-1)) * &_BLOCK_SIZE) SAVING
    6 from dba_data_files a,
    7 (select file_id,max(block_id) maximum
    8 from dba_extents
    9 group by file_id) b,
    10 dba_extents c
    11 where a.file_id = b.file_id
    12 and c.file_id = b.file_id
    13 and c.block_id = b.maximum
    14* and c.tablespace_name = 'EXAMPLE'
    SQL> /
    Enter value for blocksize: 8192
    old 4: (c.block_id+(c.blocks-1)) * &_BLOCK_SIZE HWM_BYTES,
    new 4: (c.block_id+(c.blocks-1)) * 8192 HWM_BYTES,
    Enter value for blocksize: 8192
    old 5: a.bytes - ((c.block_id+(c.blocks-1)) * &_BLOCK_SIZE) SAVING
    new 5: a.bytes - ((c.block_id+(c.blocks-1)) * 8192) SAVING
    FILE_NAME
    FILE_SIZE_IN_BYTES HWM_BYTES SAVING
    C:\ORACLE\PRODUCT\10.1.0\ORADATA\DB02\EXAMPLE01.DBF
    7340032 6356992 983040
    SQL> alter database
    2 datafile 'c:\oracle\product\10.1.0\oradata\db02\example01.dbf' resize 63569
    92;
    Database altered.regards
    Taj

  • How can I reduce the file size of 3 videos?...

    ...without losing quality? These three videos are as follows in terms of size and length of the video:
    1) 148MB 19minutes
    2) 357MB 18minutes
    3) 164MB 14minutes
    I tried using a video converter to reduce the bit rate in order to reduce the size, which i know affects the quality, but that did not actually work to reduce the file size this time.
    I thought perhaps i should ask my forum friends for help on this matter. How,if at all, can I get all three of these MOV's under 100mb or to a total of 300mb for all 3 and preserve quality? It has to be able to play on an ipad (MOV or MP4). Thanks for your help!

    I think that the point that David was trying to make is that reducing the amount of information originally provided by a product or part of it in order to make it smaller will inevitably reduce the efficiency of the product itself.
    However, you don't have access to the original masters? Then you might be after a good compromise, meaning a video that can display decent quality while playing at its original frame size (say on the web).
    Does this mean that there is no real way to reduce the size without losing quality?
    If your target is the web there is a way to reduce the file size and still make it look decent enough. Re-compression means loss of source information but video compression is an art on its own and can produce some amazing results!
    Not without testing though.
    Now back to my previous post, use Compressor to try to reduce the file size and compare the result quality. Trust your eyes and be honest with yourself.

  • How can I reduce the file size when PDF Optimizer does not do much?

    I have a PDF form that exists of 48 pages. 44 pages are forms / have form fields, the other 4 are just informative. Each form-page has approx. 80 fields (checkboxes, text fields).
    When I started setting up the PDF form the file size was 12 MB and I had placed fields on 21 pages. Then with 34 pages the file size was 19 MB. And with 40 pages it was 35 MB big! Finally with 44 pages the file size is 34 MB.
    So I searched with Google and found some tips. Using the "PDF Optimizer" option inside Acrobat for example. So I did, and the file was reduced only with 3 MB... 31 MB was the file. Also used the option "Save as.... Optimized".... no difference. I also found a suggestion about removing embedded fonts. Using the "Audit Space Usage" option I noticed the fonts taking many MegaBytes:
    * Content Streams: 5.287.000     15,09 %
    * Fonts:                24.556.810     70,08 %  !!
    * Acrobat forms:      3.349.164    12,05 %
    In the older PDF version (I saved and kept this one too) with just 21 pages with form-fields, the  "Audit Space Usage" shows:
    * Content Streams: 5.292.000     40,14 %
    * Fonts:                 1.290.224     9,79 %
    * Acrobat forms:      1.588.758    12,05 %
    So I could save many many MegaBytes by -UnEmbedding- fonts. But if I do this (unembed ALL fonts), the file size stays almost the same!?!?!? Why? What can I do to reduce the file size? I would like it to be 8 MB if possible (32 MB -  24 MB = 8 MB)?
    Thank you for your help!

    If you have authored the form, reduce the number of different fonts for the content and form fields.
    Any font used in a form field will cause that font to be embedded into the PDF.
    If you are going to Optimize the PDF be very careful with forms. Optimization does a lot of removal of items and rearranging of items which can really mess up forms.

  • How do I reduce the file size of a pdf to email?

    I have a 260 MB pdf file generated from Photoshop 6.  I can't seem to reduce the size in Photoshop.  Is there anyway to reduce the pdf outside of Photoshop?  Thanks in advance for any help.

    Hi Scott,
    That's a pretty big PDF! You'll have to reduce it pretty dramatically to attach it to an email. But, you can use Acrobat to reduce the file size. Please see this video for pointers: https://acrobatusers.com/tutorials/how-to-compress-a-pdf-file
    If you don't have Acrobat, you can try it for free for 30 days. For more information, see www.adobe.com/products/acrobat.html.
    Best,
    Sara

  • How do i reduce the file size of a picture?

    I am trying to reduce the file size of a picture?  It is 1.7MB and I need it to be smaller.
    Help?

    File -> Export
    The two settings that most affect the filesize are Jpeg Quality and Size.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • How do I reduce the "KB" size of a photo to better send on e mail?

    How do I reduce the "KB" size of a photo to better send on e mail?

    Where is the image?  What software are you using?  What software do you have?
    (If it is iPhoto or Aperture, you might get better answers in those forums:
    Aperture
    iPhoto

  • How do I reduce the file size of my pictures

    I am running out of space on my hard drive and notice that my iphoto library contains over 5000 pictures and is about 15GB.  This is about 3MB per picture.  I checked and lots are over 10MB.  Most pictures I only print in 10x15, the largest i ever printed was A4 sized. I guess i don't need to keep such large files.  These cameras are now set to make pictures with too many pixels I guess...
    does anyone know of a way to reduce the size of all my picture files?
    thanks
    p

    1. Reducing the file sizes of your pictures will not just reduce their quality when you print, it wll also negatively affect their quality no matter how you view them. Remember the screen quality on your next mac will be better than this one, and even more so on the one after.
    2. The simplest solution to a size issue is to store the Library on an external disk, You can do this with iTunes and iMovie too.
    3. If you really want to reduce the quality of your photos then there is no way to do that in iPhoto. Here's what you'd have to do:
    Export the Pics from iPhoto (File -> Export) and in the Export dialogue make your choices on Jpeg Quality (the amount of compression used) and size (the dimensions)
    Delete the pics from iPhoto
    Import the ones who have exported back to iPhoto.
    Give away your camera and get a lower quality one
    Regards
    TD

  • How can I reduce the file size when saving a psd as a pdf

    I have a psd with graphics and text, it is 8.5 x 11, 300 ppi
    I flatten the image and go to save as .pdf I un-check all of the options in general.
    In compression, I have tried a dozen different combinations and the way I've found to get a document that is not pixelated or blurry is to use jpeg 2000 > lossless or jpeg > maximum.
    So I have a high quality document but the file sizes are around 900 kb.
    I have downloaded other people's documents of the exact same type and size (8.5 x 11, 300 ppi) that I am making and viewed them in Photoshop, they are not pixelated or blurry and their file sizes are 300 kb or even less than 200 kb
    How are they doing this?!

    Delete all unused, invisible layers.
    Sometimes zip compression is better than jpg compression (in the pdf output settings). Zip is lossless, and works better with non gradient colour or no images.
    Flattening the image before you save it to pdf can reduce the file size if you are using jpg compression.
    Post a preview of your pdf and we can comment further on how to reduce the file size.

  • Best Trategy to reduce the Database Size

    Hi Everyone,
    In our Client's Landscape SAP systems have been upgraded to newer versions whereas our client want
    one copy of older Production systems (one copy to retain)
    1) SAP R/3 4.6 C system  (database size of this system is approx 2TB)
    2) SAP BW 3.0 (database size of this system is approx 2TB)
    Now CLient wants us to reduce the database size via re-organization because Archiving of IDOCs & Links we have already done
    Client has recommended for :
    1) Oracle Export/Import: Only Oracle DBA can do (ignore this one)
    2) Database Reorganization : We have tried Reoragnization via BRtools but found very tedious 9 (ignore this one)
    3) SAP Export/Import : Via this way we want to reduce the database size
    Can anybody Tell us How much Free space do we require in order at OS level in order to store the Database Export
    of Two Databases of size around 4TB & what would be the best strategy of reducing the Dabase size.
    Via SAP Export/Import how much approx how much database size will be reduced
    Thanks & Regards
    Deepak Gosain

    Hi,
    >Can anybody Tell us How much Free space do we require in order at OS level in order to store the Database Export
    >of Two Databases of size around 4TB & what would be the best strategy of reducing the Dabase size.
    The only realistic way to know is to do a system copy of the production system on a testbed system and to test the Database Export.
    If you really want to decrease the database size you will have to archive a lot more than the IDOC archiving object.
    Regards,
    Olivier

  • I have been given a 28 page Pdf and have been asked to optimize the item to reduce the file size. Can this be done in Photoshop Elements? if so how?

    I am using a Mac and just bought Photoshop Elements 13. I have been given a 28 page Pdf and have been asked to optimize the item to reduce the file size. Can this be done in Photoshop Elements? if so how?

    No the pages will open as separate documents in Expert Mode. You really need Acrobat or possibly you could copy and paste the contents into MS word. Then re-save as PDF.

  • In putting together a book I can move photos onto a page and enlarge the picture but is there a way to reduce the picture size? some cases I want a smaller picture and if I change the size of the picture box I only get a portion of the image. I wnt to red

    picture size...in putting together a book I can move photos onto a page and enlarge the picture but is there a way to reduce the picture size? some cases I want a smaller picture and if I change the size of the picture box I only get a portion of the image. I want to reduce the image to fit the size of the box.

    If you right click on the image on the page in the context menu select photo box alignment and then select one of scale to fit {centered, Left-aligned, Right-aligned}
    That should do what you are loking for.

  • Need to reduce the page size, not the file size (shrink the page to allow for binding)

    I need to reduce the image size (text is too large to allow for binding).

    What is the output device - it is best to set scaling there, or scale while printing from Acrobat. The only means to accomplish
    I need to reduce the image size (text is too large to allow for binding).
    Print to Adobe PDF printer.
    Define a page size in the Properties of the PDF Printer
    Print from Acrobat to PDF Printer with scaling in effect.

  • Save as Reduced Size PDF and Save as Optimized PDF do not reduce the file size.  What gives?

    Save as Reduced Size PDF and Save as Optimized PDF do not reduce the file size.  What gives?  I used Acrobat 9 to do this for a long time.  I recently received new laptop loaded with with Acrobat 10 and it does not work the same.  I typically scan 8-10 pages of receipts, combine the files in Acrobat, and then optimize to reduce the size so I can upload with my expense report.  Typically, my files were reduced to 200-400 KB.  I have a 2 MB file that will not reduce at all.

    Bernd, thank you for your attempt to help but the option dialog windows do not contain the same options.  There are numerous other posts on this forum about this issue and there is no answer.  Clearly, there is an issue.  I have submitted this issue to our internal help desk.

Maybe you are looking for

  • One file for multiple IDOCs

    Hi, Need help on IDOC files created on application server. For IDOCs of EDI type generally one file is created on application server for one idoc. Is there any way to create a common file for multiple IDOCs that are created in a batch job? Thanking i

  • Lost music on ipod after reinstall of itunes

    I've been upgrading to Win XP from Win ME. Had to start all over back to factory restore. Lost i tunes library, but that was ok because it was on ipod. Re-installed itunes and downloaded upgrade for itunes and ipod. Downloaded/installed fine. Hooked

  • Use enite page

    I have a BI Publisher report that I want to print right to the bottom of the page. I can't get it to print all the way to the bottom of the page, there is always around a 2 inch white space at the bottom, and then it wraps to the next page. This happ

  • How to Call Solution Manager Tcode from ECC

    Hi Friends,   I have a requirement to call the Solution manager tcode CRM_DNO_MONITOR from ECC 6.0 using a custom development There should a custom tcode which the user can execute in ECC to call the transaction in Solution manager . Please let me kn

  • Finger print sign in option does not work

    I am trying to set up a sign in on my profile to use my finger prints. When I try to scan my fingerprints, I get the message, 'Fingerprint sign on is disable. Contact system administrator.' I am the system administrator according to my account. How d