How to shrink tablespace size if there is more unused space ??

i have a tablespace it's size has increased upto 800MB but only 200MB is used, how can i minimize this gap b/w actual size and used size.
i think i may have wrongly set the autoextent parameter.
Please help

You said is has increased upto 800M , but only used 200MB?
How it is possible? Tablespace size increases to accomodate space for new data.
Is it possible that data might have deleted?
Use the following command to resize the datafile. If the HWM is set to higher than this, the command will with an errors.
RROR at line 1:
RA-03297: file contains used data beyond requested RESIZE value
Syntax:
ALTER DATABASE DATAFILE 'tools01.dbf' RESIZE 250m;
Jaffar

Similar Messages

  • How to see tablespace size in data dictionary

    How can I see the tablespace size, and used tablespace size in data dictionary view?
    it is not in dba_tablespaces, and v$tablespace
    Thanks.

    I like this little piece of code of mine:
    SQL> SELECT
      2          TABLESPACE_NAME,
      3          RPAD(RPAD('|',100-PCT_FREE,'X'),100) || '|' USED
      4  FROM (SELECT TABLESPACE_NAME,
      5    100 -
      6      ROUND(100 -(SUM(BYTES)/1024/1024/1024)*100/
      7                  (SELECT SUM(BYTES)/1024/1024/1024
      8                   FROM DBA_DATA_FILES DF
      9                   WHERE DF.TABLESPACE_NAME=FS.TABLESPACE_NAME),2
    10            ) PCT_FREE,
    11    ROUND(SUM(BYTES)/1024/1024/1024,2) GIBFREE
    12  FROM DBA_FREE_SPACE FS
    13  GROUP BY TABLESPACE_NAME) TABLESPACE_SPACE
    14* ORDER BY TABLESPACE_NAME;
    TABLESPACE_NAME                USED
    ARCHDATA                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX      |
    DATBIGGX                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                  |
    DATGX                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                                      |
    DATLOWGX                       |XXXXXXXXXXXXXXXXXXXXXX                                                                             |
    IDXBIGGX                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                 |
    IDXLGX                         |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                |
    IDXGX                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX          |
    LOGMNRTS                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                           |
    SYSTEM                         |XXXXXXXXXXXXXXXX                                                                                   |
    TOOLS                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                                   |
    UNDOGX                         |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                         |Yoann.

  • How to shrink the size of JRE?

    Hi,
    I wrote a simple Java utlity that performs some business logic for my clients. It is going to run on Windows environments. I created a .exe for this Java application. Obviously It also needs JRE. I made sure that JRE is also shipped along with this application. But the size of JRE is around 70 MB. Is there anyway to shrink the size of JRE? What is best practice for such a thing?
    Thanks in advance,
    Mustafa

    I'm not sure what the licensing implications are of customizing your own derivative of Sun's JRE, presuming that's the one you're using. If the agreement permits, you could remove classes you know that you won't use from the runtime JAR.
    Your best bet, though, sounds like using a Java-to-native compiler. There are a number of applications out there that could produce a Windows executable from your Java code and, since you know it's only going to be run on Windows machines, you lose very little if anything by going through this process.
    Best of luck.

  • Printing a slide: how to shrink the size of the border

    I am trying to print a single slide on a 8.5 x 11" page. I'm not necessariliy looking for a borderless print, but would like to minimize the white border around the slide.
    I realize there may be settings specific to my printer, which I've tried playing with, to no avail. But even if I print it to a .pdf, the same ~1-inch border of white is present around the slide, so I'm thinking there must be a setting somewhere within Keynote to change the formatting of the printed slide.
    I've searched through the discussion boards, but coudln't come across a direct answer to this.

    There isn't any particular setting within Keynote. If you haven't already tried this, I'd suggest going into Page Setup, and under the Paper Size dropdown menu, choose Manage Custom Sizes, and create a paper setting that is marginless. Be sure to then choose this size in Page Setup, and print using that size. That will get you very close to borderless, at least in PDF (how close you can get in hardcopy is dependent on your printer).

  • How to shrink document size to 20%(inculd all pageitems size shrink to 20%)?

    I exproted  xxx.indd to yyy.jep, then I found yyy.jep size is too big, almost have shrink to 20% to need my client requirement.
    There is no any method allow to change JPG file szie while exproting.
    the documnet size change only for PageHight and PageWide( Docment.DocumentPreferences.PageHeight & Document.DocumentPreferences.PageWidth) , but all pageitems did not change.
    so, any ideas about this?
    thanks.

    Actaully,I write a Delphi base Indesign CS4 automation program (like Vb script, Java script) to generate indd file.
    The main function is plate many Name Card pdf file into a huge indd file automatically.
    Recently, my client ask new function : export the indd file to JPG file, and the JPG file size only has 20% size of indd file has.
    But, I do not have any idea to deal with this.
    So, any suggestion?

  • How do I upgrade my hard drive to more disk space?

    Is there a way to upgrade the HD size to say512GB from 128GB once purchased for the Macbook Air?

    Apple do not do an official one
    However it is possible, you can buy the memory and install it yourself but you would be voiding your warranty

  • Impdp operation taking more tablespace size in compare to expdp...

    Hi All,
    I have one issue with impdp operation. I am using 11gR2 database and schema's dmpfile size is 5G. When I start loading data through impdp schema's tablespace size grow more than 5G. I have to stop the impdp operation because of growing tablespace size. There is no compress parameter passed during expdp. Lastly I given tablespace maxsize= unlimited but seems like it still not sufficient and have to add one more dbf. so the tablespace size as of now is 60G and impdp operation is still running.
    Can anyone guide me if dmp file size is 5G then how could be the tablespace size more than 5G? I have an assumption that if my dmpfile size is 5G then the tablespace size in which I loaded my data (using impdp)should not more than 5G.
    Thanks in advance.

    I was facing the same problem. After giving parameter TRANSFORM=SEGMENT_ATTRIBUTES:n, the problem has been resolved.
    TRANSFORM = transform_name:value[:object_type]
    The transform_name specifies the name of the transform. Some of possible options are as follows:
    SEGMENT_ATTRIBUTES - If the value is specified as y, then segment attributes (physical attributes, storage attributes, tablespaces, and logging) are included, with appropriate DDL. The default is y. ====> IF THIS IS 'N' PHYSICAL STORAGE ATTRIBUTES ARE NOT INCLUDED.
    STORAGE - If the value is specified as y, the storage clauses are included, with appropriate DDL. The default is y. This parameter is ignored if SEGMENT_ATTRIBUTES=n.
    Although thread a quite old, but just updating this in case someone needs to refer in future. My system parameter deferred_segment_creation is set to TRUE.
    Here is the complete syntax, I have used
    impdp vygrdba/******* dumpfile=VYGRVS6I5_25DEC12.dmp logfile=VYGR_PT_09Jan13.log remap_schema= VYGRVS6I5:VYGR_PT TRANSFORM=SEGMENT_ATTRIBUTES:n
    Edited by: 980762 on 9 Jan, 2013 3:58 AM

  • Tablespace size monitoring in Oracle 10g

    Hello
    Our environment: Oracle 10.2.0.3 3-node RAC, ASM, Linux x86-64
    We are using EM Grid Control as a monitoring tool for RAC databases.
    We have "tablespace SPACE USED (%)" metric configured for all RAC databases.
    For some reason this metric does not work all the time and it does not alert dba when warning or critical threshold reached.
    I'd like to hear from people how they monitor tablespace size in Oracle RAC environment with files in ASM.
    Thank you,
    Yelena

    Yelena,
    Your problem is realted to GC and it seems it's not configured properly. Kindly check and verify schedule also. May possible it's notifying to other person also..

  • To shrink the size of TEMP tablespace

    Dear all,
    There is a databse with RAC, now in OEM the size of TEMP tablespace has been reached at 99.9%. now we want to shrink the size of TEMP tablespace.
    how to we do that???????
    plz help me...........

    Temporary tablespaces usually show they are full, however this space is not actually in use. It is rather allocated. Oracle has evaluated the best way to obtain the most of performance, and he said it is better to allocate once than allocate-deallocate-reallocate extents, so temporary space is not 'released'.
    If you want to feel psychologically more confortable with lower allocated space, you can drop your tablespace (create an interim default temporary tablespace first) and recreate it.
    You can also rebuild temporary datafiles:
    alter tablespace temp add tempfile 'C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.dbf' size 32m;
    SQL> select name from v$tempfile;
    NAME
    C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP.DBF
    C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.DBF
    SQL> alter database tempfile 'C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.DBF' drop including datafiles;
    Database altered.

  • How to Shrink UNDO Tablespace

    Hello,
    We had a UNDO Tablespace of 22Gb but it is using just 2GB. How to shrink undo tablespace. we are using clustered 3 node production database 10.2.0.4
    Is there is way that we can shrink UNDO Tablespace or do i need to create a UNDO tablespace and assign the undo tablespace to DB and drop the old UNDO?
    How to ensure that transactions are done and free to drop the old UNDO?
    Is it something we need to restart all the three nodes as each node has its own UNDO Tablespace.
    Need Help on this issue.
    would appreciate your quick response.
    Thanks

    if i am in your place i will do the following:
    <pre class="jive-pre">1-Query DBA_DATA_FILES to determine the name of the datafiles of the UNDO</pre>
    2. Create a new UNDO tablespace.
    <pre class="jive-pre">CREATE UNDO TABLESPACE undo_ts2 DATAFILE '/directory/undo_ts2_01.dbf' SIZE xxxM;</pre>
    3. Modify the database parameter to use the new UNDO tablespace.
    <pre class="jive-pre"> ALTER SYSTEM SET undo_tablespace=undo_ts2 SCOPE=BOTH; </pre>
    4-The Drawback:
    <pre class="jive-pre">New transactions will begin using the new undo tablespace. After some time passes (at least the number of seconds specified by the UNDO_RETENTION initialization parameter), you can drop the old UNDO tablespace. The downside to this approach is that for a short time period, your database will have two UNDO tablespaces</pre>
    Regards
    Mohamed

  • How to shrink Hyper-V VHD to a smaller size

    Hi guys, I need help urgently. I initially created a (golden image) Win 7 VM with lot off apps installed. I assigned 130G. now I discovered that I don't need 130G on this machine, is there a way of shrinking my disk to 40G? when I shrink it on disk management I can see unallocated space but how to get it back to my SAN? when I edit a disk on Hyper v console it only show Compact and Expand there is no shrink option. or is there a way that I can great new VM using old image without re-installing everything because It will take 5hrs to install all apps but disk size must be small. My host is Win Server 2012 R

    Hi Guys,I wrote below script for creating new user and granting it read only access but I'm getting attached error.Please help...Powershell$HostList = Get-Content C:\Users\malvika\Desktop\Hostnames.txtforeach ($server in $HostList){ $HostDetail = $server.Split(',') $HostName = ($server -split ',')[0] $userid = ($server -split ',')[1] $password = ($server -split ',')[2] $VCimpl = Get-VIServer -Server $HostName -User $userid -Password $password [Reflection.Assembly]::LoadWithPartialName("vmware.vim") # The name of the role to be assigned $roleLabel="Read-Only" #craete user New-VMHostAccount -Id Test -Password U!er -Description "Test User" #The name of the principal (user or group) that the role is assigned to $principal="Test" # set to false if principal is a user , not a group $principalIsGroup = $false $propagateToSubEntities = $true ...

  • How to query the tablespace size increment speed?

    Hello,
    Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
    when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
    so could you please give us a guide thanks!

    RLUO wrote:
    Hello,
    Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
    when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
    so could you please give us a guide thanks!Hi, there good way is using DBMS_SPACE.OBJECT_GROWTH_TREND as Rajesh mentioned that.But also you can use some AWR views to getting this information.Seee below link.
    tablespaces' growth trend

  • How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it??? At the moment, if I view them on my laptop, landscape photos fill the screen, but portrait photos only show the middle part.

    How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it (in Slideshow)??? At the moment, if I view them on my Mac Laptop, landscape photos fill the screen, but portrait photos only show the middle part, so I loose the top and bottom of the picture.  Have tried cropping, but that means I lose top and bottom part of the picture, so that is not the answer!!

    Homestly haven't a clue what's going on there. 
    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • How to shrink a tablespace;;;Plz Help Me

    Hello,
    I have droped 2 big tables (more than 20 millions of records each one) and eventually many indexes in reference.
    In my Database server I don't have enougth space, I have only 5Go.
    I have to free disk space now by shrinking the size of Index and Data Tablespace.
    I used theses scripts to analyse my object plecement repartiton on both tablespaces : INDEX and DATA.
    1- select file_id, block_id, blocks,
    owner||'.'||segment_name "Name"
    from sys.dba_extents
    where tablespace_name = 'INDX'
    UNION
    select file_id, block_id, blocks,
    'Free'
    from sys.dba_free_space
    where tablespace_name = 'INDX'
    order by 1,2,3
    2- select file_id, block_id, blocks,
    owner||'.'||segment_name "Name"
    from sys.dba_extents
    where tablespace_name = 'DATA'
    UNION
    select file_id, block_id, blocks,
    'Free'
    from sys.dba_free_space
    where tablespace_name = 'DATA'
    order by 1,2,3
    After executing these scripts, I find many free extends in the middle and the command :
    ALTER DATABASE DATAFILE ... RESIZE is failed
    Any idea How to resize / reduce my tablespaces ?
    My database version 's :
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 On Linux Sever.
    Thanks a lot
    Message was edited by:
    OracleJavaLinux

    hi
    do one thing create new tablespace like TEST move table by table to that and viseversa
    ie u have emp,dept ... etc tables move emp to ne tablespace and then move back to its original tablespace
    for ex:emp,dept... belongs to APPS_TS_TX_DATA
    alter table emp move tablespace TEST;
    alter table emp move tablespace APPS_TS_TX_DATA;
    after this rebuild all indexes on that tables
    alter index <index_name> rebuild;
    By this action u can recover unused space by the tables
    Message was edited by:
    BhanuChander

  • How to shrink Virtual PC screen size from full screen

    How to shrink Virtual PC screen size from full screen?

    Nobody out there has a solution to this?

Maybe you are looking for

  • IPhone 4s no longer saving photos after downloading iOS6

    After downloading the new iOS6 to my iPhone 4s I can no longer save pictures from Facebook or the web. When I touch the photo I am given the option to save it (which I do), but then it doesn't appear in my camera roll.  Only pics taken with camera ar

  • Block payments for vendor

    Hi How to set automatic indicator paymants blockade for items created by FB01 for some vendor? I set on master data in vendor blockade payment yet but what more is need for it?

  • Two printers need to be maintained for one key combination

    Hi Experts, Requirement:-For one condition record two print out has to be determined on different printers. As per my understanding we can maintain only one printer for any key combination here as per the requirement if some one has any idea if we ca

  • Material 2000590 3101 not subject to split valuation

    Dear All,                We are trying to transfer Material from our One plant to another Plant with help STO ( Stock Transfer Method ) . at the time purcahse order creation we are not facing  any issue . after that we are creating Delivery Order fro

  • How do I get iphoto to recognize scanned jpeg photos?

    How do I get IPhoto to recognize sacnned jpeg photos?  The response is that the format is nor recognized!