Unable to reclaim the table space

Hi guys,
Today I have tried to reclaim the unused space in table by the below command. The command executed successfully but the space is not reclaimed, I'm not sure why, can you help me out on this.
SQL> select OWNER,SEGMENT_NAME,TABLESPACE_NAME,bytes/1024/1024/1024 as "SIZE IN GB",PCT_INCREASE,EXTENTS,SEGMENT_TYPE,SEGMENT_SUBTYPE  from dba_segments where SEGMENT_NAME in (------------------------------);
OWNER                          SEGMENT_NAME                   TABLESPACE_NAME                SIZE IN GB PCT_INCREASE    EXTENTS SEGMENT_TYPE       SEGMENT_SU
aaa_aaaaa                      yyyy1                     xxx                       7.13555908                     304 TABLE              ASSM
aaa_aaaaa                      yyyy2                             xxx                           9.01885986                     339 TABLE              ASSM
SQL> alter table aaa_aaaaa.yyyy1 shrink space cascade;
Table altered.
SQL>  select OWNER,SEGMENT_NAME,TABLESPACE_NAME,bytes/1024/1024/1024 as "SIZE IN GB",PCT_INCREASE,EXTENTS,SEGMENT_TYPE,SEGMENT_SUBTYPE  from dba_segments where SEGMENT_NAME in (---------------------------);
OWNER                          SEGMENT_NAME                   TABLESPACE_NAME                SIZE IN GB PCT_INCREASE    EXTENTS SEGMENT_TYPE       SEGMENT_SU
aaa_aaaaa                      yyyy1                          xxx                           7.11260986                     304 TABLE              ASSM
aaa_aaaaa                      yyyy2                        xxx                           9.01885986                     339 TABLE              ASSM
The database is 11g, Aix os, this database is used in replication and holds master tables.
Thanks and Regards
Venkata Sudheer.Y

venkata_sudheer wrote:
Hi,
There are only 8000 rows in the table, but its occupying 7GB of space, its not releasing, not sure why its not releasing. I was asked to check that out, but not sure where to start. Is segment advisor free or do we need to pay the license.
Thanks and Regards
VenkataNumber of rows does not exactly mean that your segment size should be small. The row size can actually be that big.
Here is a script that you can use to get a grip of the HWM of the segment:
First gather stats on it:
exec dbms_stats.gather_table_stats(ownname=>'SCHEMA',tabname=>'TABLE_NAME',method_opt=>'for all columns size auto',estimate_percent=>dbms_stats.auto_sample_size,cascade=>true); and then query:
select owner, table_name, to_char(last_analyzed,'dd/mm/yyyy hh24:mi:ss') last_stats, trunc((num_rows*avg_row_len)/1024/1024,2) real_alloc_mb, trunc((blocks*(select BLOCK_SIZE from dba_tablespaces tbs where t.tablespace_name=tbs.tablespace_name))/1024/1024,2) hwm_size_mb,
       100 -round((trunc((num_rows*avg_row_len)/1024/1024,2)*100)/trunc((blocks*(select BLOCK_SIZE from dba_tablespaces tbs where t.tablespace_name=tbs.tablespace_name))/1024/1024,2),2) RECL_PERCENT, chain_cnt
from dba_tables t
where t.table_name IN ('TABLE_NAME');Lastly,does the table have any LOB columns ?

Similar Messages

  • Unable to extend the table space

    Hi Experts
    When i am extending the table space i am getting this error
    BR1059E Not enough free space in /oracle/SHD/sapdata3/sr3700_20 for maximum size
    of file /oracle/SHD/sapdata3/sr3700_20/sr3700.data20, missing at least 491.556
    MB
    but when i checked the space, space is available
    /dev/vg01/lvol16   41943040 34863437 6637129   84% /oracle/SHD/sapdata4
    /dev/vg01/lvol15   41943040 37013805 4621160   89% /oracle/SHD/sapdata3
    /dev/vg01/lvol14   41943040 31803117 9506180   77% /oracle/SHD/sapdata2
    /dev/vg01/lvol13   31457280 28486427 2785176   91% /oracle/SHD/sapdata1
    i am unable to extend the table space. Please help me
    Thanks & Regards
    Venkat

    Hi Venkat,
    Please try to disable the autoextend, in the brspace screen first you make off for autoextend  then you try to extend the space.
    Definetly it will work. I have faced same problem earlier.
    Please let me know still if you have any problem for extending.
    Thanks
    Kishore

  • How do I reclaim the unused space after a huge data delete- very urgent

    Hello all,
    How do I reclaim the unused space after a huge data delete?
    alter table "ODB"."BLOB_TABLE" shrink space; This couldn't execute with ora 10662 error. Could you please help

    'Shrink space' has requirements:
    shrink_clause
    The shrink clause lets you manually shrink space in a table, index-organized table or its overflow segment, index, partition, subpartition, LOB segment, materialized view, or materialized view log. This clause is valid only for segments in tablespaces with automatic segment management. By default, Oracle Database compacts the segment, adjusts the high water mark, and releases the recuperated space immediately.
    Compacting the segment requires row movement. Therefore, you must enable row movement for the object you want to shrink before specifying this clause. Further, if your application has any rowid-based triggers, you should disable them before issuing this clause.
    Werner

  • Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added

    Hi there,
    I recently had the following situation, where I changed the source of my CSV file in Power Query.
    Once I had reloaded the file, it would then not load into Power Pivot. So I disabled the loading from Power Query into Power Pivot. I then enabled the loading to the Data Model. Which then successfully loaded the data into Power Pivot.
    But once I went into Power Pivot, had a look, then saved the Excel file. Once saved I closed the Excel file. I then opened the Excel file again and all the sheets that interact with the Power Pivot data work fine.
    But if I go and open Power Pivot I get the following error: Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added.
    This is what I get from the Call Stack
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(DataModelingColumn column, SynonymCollection synonyms)
       at Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
       at Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
       at Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
       at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)
    I would assume that the issue is with the synonyms and for some reason, when I disabled the loading of my data into the Power Pivot Model, it did not remove the associations to the actual table and synonyms.
    If I renamed the table in Power Pivot it all works fine. So that was my work around. Fortunately I did have a copy of the Excel workbook before I made this change. So I could then go and add back in all the relevant data to my table.
    Has anyone had this before and know how to fix it?
    http://www.bidn.com/blogs/guavaq

    Hi there
    I can share the work book, if possible to send me an email address. As the workbook size is about 9Mb.
    Thanks
    Gilbert
    http://www.bidn.com/blogs/guavaq

  • Getting an "unable to Load the tables in the power pivot window" error

    Hello,
    I have 2 worksheets in a excel file and would like to load both into a power pivot table. When I click the 'create linked table' in the pwer pivot ribbon, The powerpivot window open and looks like its about to load the data but then I get
    a popup dialogue box with the following error:
    Unable to load the tables in the powerpivot window 
    ============================
    Error Message:
    ============================
    The given key was not present in the dictionary.
    ============================
    Call Stack:
    ============================
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at Microsoft.AnalysisServices.Modeler.SheetTabs.PopulateSheetList(String selKey)
       at Microsoft.AnalysisServices.Modeler.SheetTabs.SetSelectedSheet(String key)
       at Microsoft.AnalysisServices.Modeler.ClientWindow.RefreshClientWindow(String tableName)
    ============================
    When I try again, there is a meesage saying the table is already linked but I dont see any data.
    has Anyone seen this error before and know what to do?
    Thanks,
    Nathan

    Hi
    I get first the same error as above but after I look into the details I see the following error message:
    in translation the error message is: There is already a item with the same key added.
    I can open the power pivot window in diagram view. And after I refresh the data in one of the tables I can open it in the table view. I have already searched for "!" signs in the calculations and searched for calculations with same name but that
    is not the problem.
    Also I can't open the synonym window. I think this has something to do with it because I've made changes in the synonyms.
    ============================
    Foutbericht:
    ============================
    Er is al een item met dezelfde sleutel toegevoegd.
    ============================
    Aanroepstack:
    ============================
       bij System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       bij Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(Tuple`2 measure, SynonymCollection synonyms)
       bij Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
       bij Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
       bij Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
       bij Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)
    ============================
    Thanks,
    Leo

  • Unable to join the tables CDHDR, CDPOS

    Hello,
    I want to create a Query connecting tables CDHDR & CDPOS to extract cost center details which are changed. To be precise, when cost center details are changed using transactions KS02 & KS03, I want to extract those details and run the report. I am unable to join the tables using SAP Queries SQ01, SQ02, SQ03.
    Kindly suggest me regarding the same.
    Thanks in advance.
    Regards
    Sravan Mulumudi.

    Hi Jeve,
    I was testing the report S_ALR_87012308, but this displays changes done to G/L accounts. I have tried every possibility. Could you please explain further ?
    Regards
    Sravan.

  • How to increase the table space for a particular table?

    Hi Friends,
    I want to know how to increase the table space for a particular table and how to check the table space size of a particular table. Please can any one send the SQL Script. I am very much poor in DBA Part.
    Thanking You ..
    Kiran

    Kiran - you should post this question on the SQL/Database forums - this is a Forms specific forum...
    Regards
    Grant Ronald
    Forms PRoduct Management

  • How do i increase the table space in BI...

    How do i increase the table space in BI. Its giving me short dumps when i am logging into the system. So, i need to increase the Table space. Can you all please tell me the steps for increasing it.
    Thank You.

    hi irfan,
               I too faced the similar problem error showing was table space problem its some database issue sue to this issue i was not able to run any loads or do any operations on by BI side then my on site team contacted the oracle guys to solve this.......
    ravi

  • Unable to retrieve the table list

    Hi all,
    I have created external data source for SQL server 2008,It is tested and created successfully.
    Now when I use this external data source in my data object ,it doesn't list tha table names..
    Please help,where I am missing??
    I have used the following driver n connection string :
    Driver Name : com.microsoft.sqlserver.jdbc.SQLServerDriver
    Connection String : jdbc:sqlserver://Localhost:1433;DatabaseName=SQLDB

    Hi Experts,
    You told its resolved.how?
    I am having the same issue i am unable to retrive the tables.
    "Database:MS SQL Server
    Driver :weblogic.jdbcx.sqlserver.SQLServerDataSource.
    Connection String:jdbc:weblogic:sqlserver://localhost:1433;databaseName=BAM"
    Please help if you have resolved this issue.Any helpful links plz forward [email protected]
    Thanks

  • After i empty trash (the secure empty doesn't work either), the system does not reclaim the free space.

    After i empty trash (the secure empty doesn't work either), the system does not reclaim the free space.
    I need to run the erase free space option from the disk utility every time...which is really annoying and time consuming.
    Any ideas how to solve this?
    Thanks in advance =)

    There is a thing in iPhoto whereby the first time you delete a photo it asks if you want to delete or just remove from the album, something like that.  Unfortunately it is one of these things with a "don't ask me again" checkbox.  Now, "deleting" photos only removes them from the album they are in.  To actually trash them I must then go to "all photos" and find them, to send them to the trash.   To help find them, what I do is rename them zzz or something, so sorting them will get them to the bottom of my collection.  Just maybe your photos are still lurking around?

  • Unable to descripe the table and unable to drop the table

    Hi,
    I have a temp table that we use like staging table to import the data in to the main table through some scheduled procedures.And that will dropped every day and will be created through the script.
    Some how while I am trying to drop the table manually got hanged, There after I could not find that table in dba_objects, dba_tables or any where.
    But Now I am unable to create that table manually(Keep on running the create command with out giving any error), Even I am not getting any error (keep on running )if I give drop/desc of table.
    Can you please any one help on this ? Is it some where got stored the table in DB or do we any option to repair the table ?
    SQL> select OWNER,OBJECT_NAME,OBJECT_TYPE,STATUS from dba_objects where OBJECT_NAME like 'TEMP%';
    no rows selected
    SQL> desc temp
    Thank in advance.

    Hi,
    if this table drops then it moved DBA_RECYCLEBIN table. and also original name of its changed automatically by oracle.
    For example :
    SQL> create table tst (col varchar2(10), row_chng_dt date);
    Table created.
    SQL> insert into tst values ('Version1', sysdate);
    1 row created.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    If the RECYCLEBIN initialization parameter is set to ON (the default in 10g), then dropping this table will place it in the recyclebin:
    SQL> drop table tst;
    Table dropped.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE  UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE YES YES 2013-10-08:16:10:12
    All that happened to the table when we dropped it was that it got renamed. The table data is still there and can be queried just like a normal table:
    SQL> alter session set nls_date_format='HH24:MI:SS' ;
    Session altered.
    SQL> select * from "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    COL        ROW_CHNG
    Version1   16:10:03
    Since the table data is still there, it's very easy to "undrop" the table. This operation is known as a "flashback drop". The command is FLASHBACK TABLE... TO BEFORE DROP, and it simply renames the BIN$... table to its original name:
    SQL> flashback table tst to before drop;
    Flashback complete.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    SQL> select * from recyclebin ;
    no rows selected
    It's important to know that after you've dropped a table, it has only been renamed; the table segments are still sitting there in your tablespace, unchanged, taking up space. This space still counts against your user tablespace quotas, as well as filling up the tablespace. It will not be reclaimed until you get the table out of the recyclebin. You can remove an object from the recyclebin by restoring it, or by purging it from the recyclebin.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE                      UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE                     YES YES 2006-09-01:16:10:12
    SQL> purge table "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    Table purged.
    SQL> select * from recyclebin ;
    no rows selected
    Thank you
    And check this link:
    http://www.orafaq.com/node/968
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/tables011.htm
    Thank you

  • Bootcamp will no longer boot after deleting partition #3 of my new Mac Mini.  What happened?  Was it the way I tried to reclaim the HDD space for Mac?

    Here's my dilemma.  I have a new Mac Mini - a week old.  I installed Windows 7 on it using Mac's Bootcamp assistant.  I then set up and configured my Windows 7 world and everything worked fine.  No issues logging in between Lion or Win7 via the restart/option key procedure.  Well, yesterday I split my Mac HD partition one more time to create a third partition (was created as an "extra", e.g. possible future partition for another operating system).  After creating it, I then decided that I didn't really need it.  So I deleted it in Disk Utility and attempted to drag the Mac HD partition line downward so as to "fill in the gap" and reclaim the lost hardrive space.  It seemed as if I could reclaim about 1 gig or so, but I figured...oh well. 
    Well, the Mac HD partition seems to work just fine, but now I've noticed that I can't get into the Bootcamp partition anymore.  It wont boot.  If I try to verify the partition [doesn't even give me "repair" as an option), then it fails and gives me the following error message: "verify volume failed.  invalid request."  When I go to the Startup Disk option in my System Preferences section, it displays the bootcamp partition as a folder and not as a drive anymore.
    I'm assuming that I messed up some permissions or lost some vital links during my attempted resizing/reclaiming of harddrive space.  How do I fix this without having to reload either all of my Mac info or all or my Win7 info?  I'd hate to consider the last two days of my life loading this crap up a complete loss. 
    Thanks in advance!

    Thanks for checking in, BDAQua.
    Problem solved.
    In the docs that came with my Powerlogix accelerator card, I found this sentence buried:
    "If you reset the PRAM, the NVRAM code for OS9 compatibility is cleared, so you will have to boot from the Firmawre Update CD and perform this process again in order to boot in OS9."
    The "process" it's referring to is the process of setting up the NVRAM for booting into OS9 from the CD.
    Fortunately, I was able to find the disk, and it worked as expected. I can now, once again boot into OS9.
    Conclusion: My (unadvised) attempt to load Leopard on this old machine apparently reset the PRAM on the accelerator card and cleared the NVRAM code for OS9 boot. Although I did attempt to reset the NVRAM via Open Firmware, it did not reset it on the accelerator card.
    So, thank you BDAQua, for your "Ah yes" . . . that's all I needed to steer me in the right direction.
    Gratefully,
    tupester

  • Error while adding space to the table space

    HI Gurus
    Can you please put some light on the error which i encountered while adding space to a tablespace
    ALTER TABLESPACE "GISR_NDEX" ADD DATAFILE '+DATA2' SIZE 2G;
    ALTER TABLESPACE "GISR_INDEX" ADD DATAFILE '+DATA2' SIZE 2G
    ERROR at line 1:
    ORA-01119: error in creating database file '+DATA2'
    ORA-17502: ksfdcre:4 Failed to create file +DATA2
    ORA-15041: diskgroup space exhausted
    Any suggestion is highly apprciated .
    Thanks

    Hello;
    The "diskgroup space exhausted" is key.
    Try creating smaller files or adding disk space.
    ASM Disk Group Unbalanced :
    http://surachartopun.com/2010/03/ora-15041-asm-disk-group-unbalanced.html
    Best Regards
    mseberg

  • SQL1139n The total size of the table space is too big.

    Hi
    Our R3 QA system runs on Solaris 10, using DB6 822.
    We have now run into a problem, where we cannot extend a table. It is 66GB in size. Because the page file size is 8 kb, the limit is apparently 64 GB (we got it to 66GB).
    It seems we will have to increase the page file size to get past the problem, say 16k or 32k. The question is how?
    So far we have a framework in mind:
    Create new table
    Copy old table into new table
    Drop old table
    Recreate old table with bigger page file size
    Copy new table into old table (now this new /old is getting confusing..)
    Bob's you aunty, or something of that effect...
    Is the thinking correct? If it is I will need much more detail, as I am not too familiar with DB2.
    Thanks in advance!

    hi derik,
    the db6-specific limits for max tablespace/table size are
    64/128/256/512GB for 4/8/16/32KB pagesize.
    for problems like "tablespace/table reaches its pagesize dependent max. size",
    we (DB6 porting team of SAP) have developed a special tool/ABAP report called 'DB6CONV'.
    DB6CONV takes care of everything concerning a table conversion.
    it is in depth described in OSS note 362325. the report itself it delivered by means of a transport, which is attached to note 362325 and/or can be downloaded via sapmats.
    in your case you have to
    a) get the latest DB6CONV transport and import it into your system
    b) create a new tablespace with a pagesize >8k
    c) assign a new data class for this tbsp in tables TADB6 (for data tbsp) and/or IADB6 (for index/tbsp)
    d) run DB6CONV from transaction SE38 as described in note 362325
    to convert(transfer) the table that is at/near the size limit
    by specifying either target tablespaces or target data class
    e) DB6CONV will duplicate the table first into the new tablespace, then copy the data into the newly created table. this can be done either 'offline' (fastes way, but table is not accessible during the conversion) or 'online' (slow, but table is accessible the whole time - despite a short time period when the switch from original to target table is performed)
    please make yourself familiar with the tool and the documentation.
    and feel free to ask if you need more information or have additional questions/remarks.
    regards, frank

  • Unable to use the table selection in the Pages Inspector on blank wordprocessing page.  What am I doing wrong?

    I was trying to draw a tables with 11 rows and 3 rows as a starts to try to make address labels.  Downloading an Avery template didn't work.  I opened the Inspector on a word processing blank page but none of the selections worked.  "Body rows" and "body columns"  were inoperable.  Do I have a flaw in the Pages program that came with the iWorks?

    Hi 'plexed,
    Use the yellow Table button in the tools to insert a table. With any cell in the inserted table selected, the Table Inspector an all its controls become active.
    Regards,
    Barry

Maybe you are looking for

  • Building a BI based dashboard in Visual Composer

    Dear, We are using the Visual Composer to build a KPI dashboard based on BW KPI's from multiple queries (NO SEM in the background !) What we need is to place the keyfigures in the rows and the keyfigure value in the colums. In the colums we further a

  • Does iOS 8 support Numbers,Pages, Keynote for i OS 7 devices ?

    Hi, I am using iPhone 4. I am using iOS 7.0.2. I was able to use Numbers, Pages, Keynotes since I bought my iPhone 4. I am using Windows OS 7. When I login into www.icloud.com , I enter my Apple ID and Password. From there I was able to use Numbers,

  • Problem: Oracle auditing and Coldfusion pages.

    Oracle 10g has robust auditing functionality.  If you want to see who is inserting records into account.staff, you issue this command. audit insert on account.staff by access; It's done.   All inserts into the table are tracked by Oracle automaticall

  • Javax.servlet.jsp.JspException: Error: IOException while writing to client!

    Hi I have deployed a WAR file successfully on standalone( win os) / 10AS server Rel2 ( Linux ) But some times I get this Error ONLY on 10AS server Rele 2 "javax.servlet.jsp.JspException: Error: IOException while writing to client!" Plz can some body

  • How to make people hate HP? (A learning from HP Care)

    I was very happy when I bought a brand new HP PAVILION dv2601tx Special Edition in Dec 2007. Till one year there was no issue in my lap except high temperature that was not major one, but just before completion of one year problem started and I bough