Shrink tablespace

Hi,
I have two tablespace with 30gb size.I have move all database objects from these tablespaces into newly created tablespace with same structure using MOVE TABLESAPCE commands. after that, i have dropped the old tablespaces.
I have checked the newly tablespace size. the size of the one tablespace is shrinked but other tablespace shows the same size. the same size is same as old tablespace size.i have executed the shrink tablespace using shrink command. The size of the tablespace is reduced.
Is shrink commands is needed after move tablespace into other tablespace?
Please give an commands?

Hi,
Basically , what happened is the new tablespace created is having free buffers (I mean with out any contention).
When table objects are moved from old tablespace to new tablespace, the rows are allocated as per there size in one continous extents. Due to that space with in the new tablespace allocated is perfect with out any space contentions. So when you performed shrink the space is reduced.
But intiallly as per your configuration of old tablespace it was shown.
- Pavan Kumar N

Similar Messages

  • Anyway to shrink tablespace online?

    I have a 500GB tablespace with 10 files, that was full, after deleting, purge, it is half free now, I want to reduce datafile size, but I can not do "alter database datafile resize...." as some object in the end of the file.
    anyway to shrink tablespace/datafiles online?
    Thanks!!

    Oh, sorry I thought they pointed you in the right direction.
    What about using the SHRINK SPACE command? Take a look at it here...
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/schema003.htm#ADMIN10161
    It seems to do what you want.
    You use online segment shrink to reclaim fragmented free space below the high water mark in an Oracle Database segment. The benefits of segment shrink are these:
    Compaction of data leads to better cache utilization, which in turn leads to better online transaction processing (OLTP) performance.
    The compacted data requires fewer blocks to be scanned in full table scans, which in turns leads to better decision support system (DSS) performance.
    Segment shrink is an online, in-place operation. DML operations and queries can be issued during the data movement phase of segment shrink. Concurrent DML operation are blocked for a short time at the end of the shrink operation, when the space is deallocated. Indexes are maintained during the shrink operation and remain usable after the operation is complete. Segment shrink does not require extra disk space to be allocated.
    Segment shrink reclaims unused space both above and below the high water mark. In contrast, space deallocation reclaims unused space only above the high water mark. In shrink operations, by default, the database compacts the segment, adjusts the high water mark, and releases the reclaimed space.
    Segment shrink requires that rows be moved to new locations. Therefore, you must first enable row movement in the object you want to shrink and disable any rowid-based triggers defined on the object. You enable row movement in a table with the ALTER TABLE ... ENABLE ROW MOVEMENT command.

  • 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

  • Shrink comande in oracle

    hi,
    how i will do to 'shrink' tablespace in oracle 9i.2
    Regards.

    the problem i have 9i standard edition and use this server for one master replication.
    The refresh off the remote server take very great time and the command which it launch is select * .
    and i have remark that the select * command and select count(*) take like 10 seconds for 100 rows.
    The problem is the high water mark.
    The first solution is to move the tables to other tablespace and move it again to it's original tablespace.
    But this solution is not beautiful.
    I think it must be command like shrink in mysql or microsoft sqlserver to do job.

  • DB2 tablespace

    Dear All,
    May I know the proper way to increase a tablespace? Should change the tablespace from transaction DB02 from SAP login or I should update in the DB2 control center?
    Currently, my system is generating some abap dumps which is caused by some tablespace is almost full.
    Will also really appreciate it if someone can guide me to update the tablespace.
    Regards,
    John

    If you are out of space in you tablespaces but not out of space in your sapdatas then you can either manually extend the size of the containers or setup Auto-resize.
    There are various ways to setup Auto-resize..  I usually do a list tablespaces and pipe that to a file, then write  an inline ksh to issue the alter TS statement while reading through the file.
    If you are out of space in your sapdata's then you can either increase the lun size, if your san allows this, or add additional sapdata's and containers.
    In adding addtional containers, my preferred method is to add another sapdata and go through rebalancing.  keeping all new containers the same size as the old containers
    Also be aware you can shrink tablespaces that have a large amount of free space and free up space in  your sapdatas as well.  Of course if your HWM is artifically high this requires more work.

  • How to shrink datafiles after droping table

    Hello Gurus,
    I have just dropped a big table but see that the file hasn't change..
    Could you help me to shrink a file too?
    Thanks!
    Agat

    <br>Agat,</br>
    <br>Yesterday it was the same question in this forum : Shrink tablespace ? how can i do that?</br>
    <br>Nicolas.</br>

  • Tablespaces SQL

    Hi,
    I am trying to create an SQL to generate scripts to shrink tablespaces and recliam unused space.
    I am taking into account that the maximum used for tablespaces shouls be 80%.
    Please check if the below script is fine
    select
    files.*, 'alter database datafile '''||files.file_name||''' resize ' ||files.smallest  || 'm;' cmd,
    tss.*
    from
    select
           t.tablespace_name,
           file_name,
           ceil( (nvl(hwm,1)*t .block_size)/1024/1024 ) smallest,
           ceil( blocks* t.block_size/1024/1024) currsize,
           ceil( blocks* t.block_size/1024/1024) -
           ceil( (nvl(hwm,1)* t.block_size)/1024/1024 ) savings
    from dba_data_files a,
         ( select file_id, max(block_id+blocks-1) hwm
             from dba_extents
            group by file_id ) b,
    dba_tablespaces t               
    where
    a.tablespace_name = t.tablespace_name and
    a.file_id = b.file_id(+) and
    ceil( blocks* t.block_size/1024/1024) -
    ceil( (nvl(hwm,1)* t.block_size)/1024/1024 ) > 0
    ) files,
    SELECT  a.tablespace_name,
             round(a.bytes) totalmb,
             round(a.bytes - nvl(d.bytes,0)) ts_usedmb,            
             round(nvl(d.bytes,0)) ts_freemb,
             round (100 * (a.bytes - nvl(d.bytes,0)) / a.bytes,2) ts_percentused,    
             round((a.bytes - nvl(d.bytes,0)) * 10 / 8) ts_sizemdb    
        FROM (       
        SELECT tablespace_name, sum(bytes/ 1024 / 1024) bytes
                FROM dba_data_files a       
                group by tablespace_name               
              UNION         
              SELECT tablespace_name, sum(bytes/ 1024 / 1024) bytes
                FROM dba_temp_files b                    group by tablespace_name                           
                ) a,
             (SELECT  tablespace_name, sum(bytes/ 1024 / 1024) bytes
             FROM dba_free_space
    GROUP BY tablespace_name) d           
       WHERE a.tablespace_name = d.tablespace_name (+)
    ) tss
    where
    files.tablespace_name = tss.tablespace_name
    --and tss.TS_PERCENTUSED < 80.0

    Hi,
    Can you give some likes of your generated scripts for resizing datafiles?
    Sometime, the free space is not at the end of the file. I am not sure your dynamic alter statements will be sucessfull in all cases.
    Dilip Patel.

  • How to find out which objects are at the end of the datafiles

    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.

    >
    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.
    >
    You may want to copy this and add it to your toolkit
    See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
    http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
    And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
    Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/

  • Need to reclaim space from dwh tables.

    We have couple of large tables (> 200G) in one of the DWH schema. I need to reclaim space on the mountpoint.
    I have used ALTER TABLE <> MOVE COMPRESS; command to compress these tables.
    Now in dba_segments it is showing the improvement. 200g table came down to 60G. However I am not able to see any change in datafile and in mountpoint, I beleive due to the HWM.
    I tried shrink for the tables, it did not help.
    Could you please suggest any other approach.

    refer to
    http://jonathanlewis.wordpress.com/2010/01/30/free-space/
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/
    Anand

  • Semantic model size

    Hello.
    I'm working with oracle 11g and Jena Adaptor for Oracle Database 11g Release 2.
    I'm trying a simple test that add triples:
    public void testAddTriples() throws Exception {
         Oracle oracle = new Oracle(jdbcUrl, null, null);
         GraphOracleSem graph = new GraphOracleSem(oracle, MODEL_NAME);
         for (int i=0;i<1000;i++) {
              Node sub = Node.createURI("http://test/s_" + i);
              Node pre = Node.createURI("http://test/p_" + i);
              Node obj = Node.createURI("http://test/o_" + i);
              Triple triple1 = Triple.create(sub, pre, obj);
              graph.add(triple1);
         graph.close();
         oracle.dispose();
    After running the previous test for several times, I have realized that depending on the method used to remove the triples the space of the tablespace is released or not.
    For instance, if I use the method "model.removeAll()" and then check the free space of the tablespace, I can see that the free space is greater than before, but, in the other hand, If I use the method "model.remove(model.listStatements())" the free space doesn't change... so when I run again the test "testAddTriples()" the disk space keep on growing.
    Any idea?
    Thanks in advance.
    Edited by: user9344030 on 15-mar-2010 10:19

    Hi,
    If you mean that your tablespace has grown from adding new triples and you want to reduce the size of the datafiles after removing those triples, then you could shrink the tablespace as discussed here:
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/
    About the second question, the number of rows in the application table grows because duplicates are allowed in the application table. Note that you will not get any duplicates back when you query them using SEM_MATCH of Jena Adapter - this is because of the RDF semantics - however, they are stored in the application table nevertheless. If you want to avoid storing duplicates, you could create a unique index on the application table.
    Cheers,
    Vladimir

  • Gdal compression and pyramids

    Hi!
    I'm having problems importing raster-data using gdal with compression.
    DB-Version: 11.2.0.1.0
    gdal-Version: 1.72
    gdal-Statement: gdal_translate -of georaster \\Path\file.tif geor:user/pw@server,A_TABLE_GK2,GEORASTER -co compress=DEFLATE -co nbits=1 -co "INSERT=VALUES(100,'file.tif','GK2',SDO_GEOR.INIT('RDT_A_TABLE_GK2'))
    The import works fine and the data is loaded into my table. I can validate the file using
    1. sdo_geor.validateblockMBR(georaster),
    2. SDO_GEOR_UTL.calcRasterStorageSize(georaster),
    3. substr(sdo_geor.getPyramidType(georaster),1,10) pyramidType, sdo_geor.getPyramidMaxLevel(georaster) maxLevel
    4. SELECT sdo_geor.getCompressionType(georaster) compType,sdo_geor.calcCompressionRatio(georaster) compRatio
    5. SELECT sdo_geor.getCellDepth(georaster) CellDepth,substr(sdo_geor.getInterleavingType(georaster),1,8) interleavingType,substr(sdo_geor.getBlockingType(georaster),1,8) blocking
    and all results are true (or feasible).
    Now my problem:
    DECLARE
    gr sdo_georaster;
    BEGIN
    SELECT georaster INTO gr
    FROM A_TABLE_GK2 georid = 11 FOR UPDATE;
    sdo_geor.generatePyramid(gr, 'resampling=CUBIC');
    UPDATE A_TABLE_GK2 SET georaster = gr WHERE georid = 11;
    COMMIT;
    END;
    Error report:
    ORA-01403: no data found
    ORA-06512: at line 4
    01403. 00000 - "no data found"
    *Cause:
    *Action:
    The pyramid cannot be calculated. Leaving out the parameter -co compress=DEFLATE allows me to generate pyramids (though this results in an exploding tablespace as 2GB data in file-system rise to about 120 GB in database without compression - and 2GB is only a small amount of the data needed).
    I already recognized gdal needs the Parameter -co compress=DEFLATE in Upper-Case to allow validation of georaster - but this doesn't change my problems calculating pyramids.
    Anybody heaving an idea?
    NilsO

    We definately need colordepth of 1bit as the input-files are b/w. Importing with 8 bit blows up the filesize by 8 (surprise ;-) ) and our customer has a lot of data he can't handle with 8 bit.
    The georid in the import-statement is only a dummy. We're using a trigger to insert the georid (at the moment we're around georid 7000) but all data I gave is taken from the same georaster-object. I already ran a series of tests using nbits, compression, srid-statements in gdal. Importing using srid and nbits works fine with validation and pyramids. Using compression-parameter (with or without srid, nbits) doesn't.
    Current workaround is to import without compression and every 50 files we compress the data and shrink tablespace. Slow performance and I needed to write a tool to create a set of gdal-import statements combined with a function call on oracle using sqlplus. Works for the moment, but no solution for the future....
    C:\Program Files (x86)\gdal172>gdalinfo georaster:user/pw@db,A_TABLE_GK2,
    GEORASTER,GEORID=100 -mdd oracle
    Driver: GeoRaster/Oracle Spatial GeoRaster
    Files: none associated
    Size is 15748, 15748
    Coordinate System is `'
    Metadata (oracle):
    TABLE_NAME=A_TABLE_GK2
    COLUMN_NAME=GEORASTER
    RDT_TABLE_NAME=RDT_A_TABLE_GK2
    RASTER_ID=13209
    METADATA=<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
    <objectInfo>
    <rasterType>20001</rasterType>
    <isBlank>false</isBlank>
    </objectInfo>
    <rasterInfo>
    <cellRepresentation>UNDEFINED</cellRepresentation>
    <cellDepth>1BIT</cellDepth>
    <totalDimensions>2</totalDimensions>
    <dimensionSize type="ROW">
    <size>15748</size>
    </dimensionSize>
    <dimensionSize type="COLUMN">
    <size>15748</size>
    </dimensionSize>
    <ULTCoordinate>
    <row>0</row>
    <column>0</column>
    </ULTCoordinate>
    <blocking>
    <type>REGULAR</type>
    <totalRowBlocks>62</totalRowBlocks>
    <totalColumnBlocks>62</totalColumnBlocks>
    <rowBlockSize>256</rowBlockSize>
    <columnBlockSize>256</columnBlockSize>
    </blocking>
    <interleaving>BIP</interleaving>
    <pyramid>
    <type>NONE</type>
    </pyramid>
    <compression>
    <type>DEFLATE</type>
    </compression>
    </rasterInfo>
    <layerInfo>
    <layerDimension>BAND</layerDimension>
    </layerInfo>
    </georasterMetadata>
    Image Structure Metadata:
    INTERLEAVE=PIXEL
    COMPRESSION=DEFLATE
    NBITS=1
    Corner Coordinates:
    Upper Left ( 0.0, 0.0)
    Lower Left ( 0.0,15748.0)
    Upper Right (15748.0, 0.0)
    Lower Right (15748.0,15748.0)
    Center ( 7874.0, 7874.0)
    Band 1 Block=256x256 Type=Byte, ColorInterp=Gray
    With -checksum it's
    Can't see the beginning anymore on console...
    ERROR 1: ZLib return code (-3)
    ERROR 1: ZLib return code (-3)
    ERROR 1: ZLib return code (-3)
    ERROR 1: ZLib return code (-3)
    More than 1000 errors or warnings have been reported. No more will be reported f
    rom now.
    Checksum=12669
    regards,
    NilsO

  • Drop an Asm Datafile

    Dear all,
    We have allocated lots of datafiles to a tablespace when it was required, now there are good amount of free space available on this tablesapace and we want to re-gain the allocated spaces from this tablspace as we need to allocate these spaces to other tablespaces.
    I wanted to know how to drop the datafile from this tablespace as I dont know which datafile is empty. How can we know which datafile is empty?
    We are on Oracle 11g with ASM file system.
    Please let me know the process in detail.
    Thanks in advance.
    Regards.

    Hi Girish,
    Thanks for putting an effort to reply on my query.
    If I am not mentioning the optional solution (Shrink Tablespace) for this issue, it does not mean that I have not done my part at all.
    I know shrinking the datafile will reduce the size of the datafile but we can say this is the optional solution for this problem.
    I know we can drop a datafile including its contents but my question is: How can we know a datafile contains what table's data?
    If you have answer of this query, will appreciate if you can post your answer.
    Well, my unresolved questions are not 21, its very less, it is just that I have not marked those as answered, I will update all answered questions today :)
    Regards.

  • How to reduce the size of the database

    Hi
    My recent observation on my DB size and the population of it. Apparently the DB is very fragmented and I have actual data upto 800GB but the container size is more 1.1TB.
    Could you kindly recommend me what to do in order to reduce the size of the allocated container space?
    I appriciate value suggestions and URLs.
    thanks
    Raj

    Rangarajan wrote:
    b) re-organise and then shrink tablespaces.
    Means..?In case you are not familiar with the instructions that came with your Oracle database
    http://tahiti.oracle.com/
    Pick your version, e.g.
    http://www.oracle.com/pls/db112/homepage
    Type shrink tablespace in the search box at the top of the page
    http://www.oracle.com/pls/db112/search?remark=quick_search&word=shrink+tablespace
    And pick a link that looks promising and read it, e.g.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10897/storage.htm#ADMQS12071

  • Daily activity help for script... and investgating some issue

    hi
    i am new to apps.i fil i need some script to solve some daily activity issues and solving some issue.
    can anyone help me or list of issue(s).I know it may different from site to site but i want very common list.so that issues could be resolved quickly.
    regards

    hsawwan wrote:
    Hi,
    invalid object lists and number.Query dba_objects for invalid objects and compile it either manually or via adadmin.yes. i know but i need to schedule this with scripts so that it will compile jar files,invld obj etc.
    >
    failing patches.Check the patch log file.
    diagonostics failed patches.Check the patch log file as well as the workers log file.where is the worker logfile?
    >
    backup of archivelog and database.Test the backup periodically.how?
    >
    gathering statistics for apps and dadatabase users.Schedule "Gather Schema Statistics" concurrent program on regular basis.option is dbms_job right?
    >
    specific concurrent manager/log lists for specific requests.Check the CM log file along with the failed request log file.i notice FND<sum number>.log usually created for this but for specific log file is needed to query from db.for this reason i want to use some scripts.
    >
    shrinking apps tablespaces to utilise the spaces and enhancing the performance of apps.Shrinking tablespaces does not enhance performance.
    may not enhance performance but may enhance the disk space.
    See (Note: 122669.1 - How to Perform a Health Check on the Database).
    monitoring alerts.
    monitoring forms and report and generating trace files.You can do from OAM.
    monitoring triggers Write an alert to notify you in case the status of the triggers changed.
    startup total apps and shutdowns total apps (this actually sysadmins of clients want)Usually, we review the startup/shutdown scripts log files.
    total cloning process within a night.You will have to review the log files.
    Thanks,
    Hussein

  • Shrinking a Locally Managed Temporary Tablespace

    So, even thoguh the documentation is pretty clear about how to use this feature, I cannot get it to do what I expect it to do for me.
    And that would be shrinking the tempfile ;)
    Now lets face it, I have a large tempfile and want to resize it without restarting the database:
    C:\Users\Administrator>sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production on Di Nov 20 05:49:59 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
    SQL> select file_name
    , ceil(bytes / 1024 / 1024) "size MB"
    from dba_temp_files
    FILE_NAME size MB
    R:\MXVC01\TEMP01.DBF 31,231
    SQL> select su.username
    , ses.sid
    , ses.serial#
    , su.tablespace
    , ceil((su.blocks * dt.block_size) / 1048576) MB
    from v$sort_usage su
    , dba_tablespaces dt
    , v$session ses
    where su.tablespace = dt.tablespace_name
    and su.session_addr = ses.saddr
    USERNAME SID SERIAL# TABLESPACE MB
    VPXADMIN 15 15 TEMP 14
    VPXADMIN 17 5 TEMP 1,203
    VPXADMIN 17 5 TEMP 1
    VPXADMIN 18 3 TEMP 7
    VPXADMIN 19 3 TEMP 1
    VPXADMIN 144 3 TEMP 1
    VUMADMIN 156 2597 TEMP 1
    7 rows selected.
    Or this one:
    SQL> select tablespace_size/1024/1024 "tablespace_size mb"
    , allocated_space/1024/1024 "allocated_space mb"
    , free_space/1024/1024 "free_space mb"
    from dba_temp_free_space
    tablespace_size mb allocated_space mb free_space mb
    31230,9922 1228,99219 30002
    Documetation from here: http://docs.oracle.com/cd/E11882_01/server.112/e25494/tspaces007.htm#ADMIN12353
    +"Shrinking a Locally Managed Temporary Tablespace+
    +Large sort operations performed by the database may result in a temporary tablespace growing and occupying a considerable amount of disk space. After the sort operation completes, the extra space is not released; it is just marked as free and available for reuse. Therefore, a single large sort operation might result in a large amount of allocated temporary space that remains unused after the sort operation is complete. For this reason, the database enables you to shrink locally managed temporary tablespaces and release unused space.+
    +You use the SHRINK SPACE clause of the ALTER TABLESPACE statement to shrink a temporary tablespace, or the SHRINK TEMPFILE clause of the ALTER TABLESPACE statement to shrink a specific tempfile of a temporary tablespace. Shrinking frees as much space as possible while maintaining the other attributes of the tablespace or tempfile. The optional KEEP clause defines a minimum size for the tablespace or tempfile.+
    +Shrinking is an online operation, which means that user sessions can continue to allocate sort extents if needed, and already-running queries are not affected.+
    +The following example shrinks the locally managed temporary tablespace lmtmp1 to a size of 20M.+
    +ALTER TABLESPACE lmtemp1 SHRINK SPACE KEEP 20M;+
    +The following example shrinks the tempfile lmtemp02.dbf of the locally managed temporary tablespace lmtmp2. Because the KEEP clause is omitted, the database attempts to shrink the tempfile to the minimum possible size.+
    +ALTER TABLESPACE lmtemp2 SHRINK TEMPFILE '/u02/oracle/data/lmtemp02.dbf';"+
    OK, lets do it:
    SQL> alter tablespace temp shrink tempfile 'R:\MXVC01\TEMP01.DBF';
    alter tablespace temp shrink tempfile 'R:\MXVC01\TEMP01.DBF'
    ERROR at line 1:
    ORA-03214: File Size specified is smaller than minimum required
    It seems there is a bug? Should I report it, or is it the expected behaviour?
    Now lets try this one:
    SQL> alter tablespace temp shrink tempfile 'R:\MXVC01\TEMP01.DBF' keep 2048M;
    Tablespace altered.
    SQL> select file_name
    , ceil(bytes / 1024 / 1024) "size MB"
    from dba_temp_files
    FILE_NAME size MB
    R:\MXVC01\TEMP01.DBF 31,231
    So .... this lasts about *10 minutes*, and nothing changes?
    It seems there is a bug? Should I report it, or is it the expected behaviour?
    Could someone enlighten me, what this SHRINK is actually doing?
    Is it worth to report this as bug, if not a software bug it is at least a documentation bug because it doesn't mention under which conditions it is working?
    P.S.: OMG the posting looks terrible, who's the one to blame for this forum software where it is not possible to use fixed size fonts, or format paragraphs as code, or what about the fact that the forum software is using default SQLPlus output as META for some graphical lines?
    Isn't this the forum for Oracle Database users?
    Edited by: Gerrit Haase on 20.11.2012 13:44

    So, you are kidding with me? No? Who are you?
    How can I block users here? Is there a moderator present at this forum?
    Maybe you read my initial post again?
    I didn't look at the wrong place.
    I reported you for general abuse.
    SQL> define
    DEFINE _DATE           = "20.11.12" (CHAR)
    DEFINE CONNECTIDENTIFIER = "MXVC01" (CHAR)
    DEFINE _USER           = "SYS" (CHAR)
    DEFINE _PRIVILEGE      = "AS SYSDBA" (CHAR)
    DEFINE SQLPLUSRELEASE = "1102000200" (CHAR)
    DEFINE _EDITOR         = "Notepad" (CHAR)
    DEFINE OVERSION = "Oracle Database 11g Release 11.2.0.2.0 - 64bit Production" (CHAR)
    DEFINE ORELEASE = "1102000200" (CHAR)
    SQL> SELECT * FROM dba_temp_free_space;
    TABLESPACE_NAME TABLESPACE_SIZE ALLOCATED_SPACE FREE_SPACE
    TEMP 3,2748E+10 1306517504 3,1443E+10
    SQL> select TABLESPACE_SIZE/power(2,20), ALLOCATED_SPACE/power(2,20), FREE_SPACE/power(2,20) from dba_temp_free_space ;
    TABLESPACE_SIZE/POWER(2,20) ALLOCATED_SPACE/POWER(2,20) FREE_SPACE/POWER(2,20)
    31230,9922 1245,99219 29986
    SQL> ALTER TABLESPACE temp SHRINK SPACE;
    Tablespace altered.
    SQL> select TABLESPACE_SIZE/power(2,20), ALLOCATED_SPACE/power(2,20), FREE_SPACE/power(2,20) from dba_temp_free_space ;
    TABLESPACE_SIZE/POWER(2,20) ALLOCATED_SPACE/POWER(2,20) FREE_SPACE/POWER(2,20)
    31230,9922 1244,99219 *29986*
    R:\mxvc01>dir temp
    Volume in drive R is Disk_R
    Volume Serial Number is 248B-61D4
    Directory of R:\mxvc01
    20.11.2012 08:09 32.748.077.056 TEMP01.DBF
    1 File(s) 32.748.077.056 bytes
    0 Dir(s) 8.259.297.280 bytes free
    SQL> alter tablespace temp shrink tempfile 'R:\mxvc01\TEMP01.DBF';
    alter tablespace temp shrink tempfile 'R:\mxvc01\TEMP01.DBF'
    ERROR at line 1:
    ORA-03214: File Size specified is smaller than minimum required
    *It clearly says that there is 29986 MB Space FREE and the above shrink space changes nothing and so does shrink tempfile:*
    SQL> alter tablespace temp shrink tempfile 'R:\mxvc01\TEMP01.DBF';
    alter tablespace temp shrink tempfile 'R:\mxvc01\TEMP01.DBF'
    ERROR at line 1:
    ORA-03214: File Size specified is smaller than minimum required
    SQL> alter tablespace temp shrink tempfile 'R:\mxvc01\TEMP01.DBF' KEEP 20M;
    Tablespace altered.
    R:\mxvc01>dir temp
    Volume in drive R is Disk_R
    Volume Serial Number is 248B-61D4
    Directory of R:\mxvc01
    20.11.2012 08:24 32.748.077.056 TEMP01.DBF
    1 File(s) 32.748.077.056 bytes
    0 Dir(s) 8.259.280.896 bytes free
    *... nothing changes, the tempfile isn't smaller now ...*

Maybe you are looking for

  • How to delete the request in se10

    Hi Experts, How to delete the request in se10 ....plz explain Regards Venkat

  • Pan and zoom

    trying to pan and zoom within still image frame ken burns style. Any suggestions? Thanks

  • Container passwd does not exist

    Hello I have a problem with the Directory Server 5.2 on a Solaris 10 System. I have make following steps: 1. idsconfig started with this options: 1 Domain to serve : mthnet.local 2 Base DN to setup : dc=mthnet,dc=local 3 Profile name to create : defa

  • Question about Java MySQL connection

    Hi guys, greetings to y'all, me name is Ryan, I'm new 'round here. I have some questions, I have some application that I build with Java and using MSSQL Server 2000 as it's database, and now I want to try to use MySQL as it's database. I use MySQL se

  • Can you make a 3d rotating logo with illustrator to put on a website?

    Hello! I need to make a rotating 3d logo for a website. Sort of like flash without flash. I tried gif builder but it didn't offer a rototing image. The logo is prettty much 3d already just need someway of getting it to rotate on a webpage. Any sugges