Table space not reduce after delete in oracle 10g

Hi..
Based on my system, i have found that my oracle table space did not reduce after the deletion query. Why ?.. Could somebody help me. As your info, I am using oracle 10g.
Thank you,
Baharin

After Delete the table space will not be set free. high water mark will not be reset. to regain the space you need to recognize the objects from which you deleted the data. This can be done in many ways.
1) Move the objects.
Alter table temp move --> optionally tablespace clause can be used. After this you need to rebuild table indexes.
2) With 10g table can be shrinked or reorganize to free the space.
alter table mytable enable row movement;
alter table mytable shrink space;
3) Export/Import
export the objects and drop and recreate with import.

Similar Messages

  • Table space not reduce after delete in oracle 11G

    Hi Team,
    I have a DB 11.1.0.7 on unix.
    I have execute delete tables on tablespace, but this not reduce.
    Thanks

    935299 wrote:
    What segment space management type is defined for the tablespace in question?
    MANUAL
    Then you should check out the documentation some more.
    But even if you shrink the table segement what is that going to do for the data file size?
    I don't undertand you.
    ThanksYour thread is titled "Table space not reduce after delete in oracle 11G" which implies to me that you are interested in reducing the size of a tablespace (which really means reducing the size of the underlying datafile(s)).
    So, if you shrink the size of the sys.aud$ table, will that cause the datafile(s) to become smaller? Will it accomplish your goal? What else, if anything, needs to happen?

  • Percentage of used table space not reduce after deletion

    Hi..
    This is my query to delete data from database:-
    delete from $tb_data where to_char(partition_dt,'MON') = '$mm';
    The $tb_data and $mm is variable and the $tb_data will be read input table name (as example backup_nx160, backup_ngn and etc) and the $mm will be capture the input month.
    My question is why the percentage of used table space is not reduce after delete query was executed. Could somebody help me..
    Please help me..
    Thank you,
    Baharin

    baharin wrote:
    Hi..
    Is it the deleted space will be reused by the system ?Yes.
    .. How could i check the real free tablespace or real usage table space ?If you have gathered statistics on the schema recently, then sum (avg_row_len*num_rows) should give you the exact number of bytes that are being consumed - assuming all tables are in a single tablespace under consideration. You can subtract this value from sum (dba_data_files.bytes) figure for the tablespace, to know exact free space.

  • Table size not reducing after delete

    The table size in dba_segments is not reducing after we delete the data from the table. How can i regain the space after deleting the data from a table.
    Regards,
    Natesh

    I think when you do DELETE it removes the data but
    it's not releasing any used space and it's still
    marked as used space. I think reorganizing would help
    to compress and pack all block and relase any unused
    space in blocks. Why do you think that? Deleting data will create space that can be reused by subsequent insert/ update operations. It is not going to release space back to the tablespace to make it available for inserts into other tables in the tablespace, but that's not generally an issue unless you are permanently decreasing the size of a table, which is pretty rare.
    Would you also please explain about different about
    LOB and LONG ? or point me to any link which explain
    baout it.From the Oracle Concepts manual's section on the LONG data type
    "Note:
    Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB) instead. LONG columns are supported only for backward compatibility.
    Oracle also recommends that you convert existing LONG columns to LOB columns. LOB columns are subject to far fewer restrictions than LONG columns. Further, LOB functionality is enhanced in every release, whereas LONG functionality has been static for several releases."
    LONG was a very badly implemented solution to storing large amounts of data. LOBs are a much, much better designed solution-- you should always be using LOBs.
    Justin

  • Table space not reused after deletion ?

    Hi..
    I am running on oracle 10g. Based on my system, i have created one query to delete old data from the table on daily basis. Below the sample query :-
    delete from SNP_EXP_TXT
    where I_TXT in (select I_TXT_SESS_MESS from SNP_SESSION
    where SESS_END < trunc(SYSDATE - 1));
    I have check on the database and all the old data are deleted from the table. But, I am confused why the table space keep increasing even the old data has been deleted.
    I am assume that the problem because of the table space cannot be reused after the deletion. Could somebody help me how could i verified that and how could i ensure that all the table space can be reused ?
    Thank you,
    Baharin

    Is there only one table, or are there other objects in the tablespace ? Are you sure this is the table that is growing ?
    select segment_name, segment_type, bytes from dba_segments where tablespace = 'XXX';
    It will also depend on how the data is inserted ? If you insert append, then it will grow the table.

  • TABLE SIZE NOT DECREASING AFTER DELETION. BLOCKS NOT BEING RE-USED

    Hi ,
    Problem:
    Table size before deletion: 40GB
    Total rows before deletion: over 200000
    Rows deleted=190000 rows
    Table size after deletion is more (as new data was inserted meanwhile).
    Purpose of table:
    This table is a sort of transaction table.
    Whenever an SR is raised by CSR, data gets inserted into this table and is removed when the status is cleared.
    So there is constant insertion and purging will happen on this table.
    We are using ASSM and tablespace is LOCAL.
    This Table has a LONG column also.
    Is this problem because of LONG column ?
    So here there are 2 problems.
    1) INSERTs are not using the space created by DELETE.
    2) New INSERTs are taking much more space then expected ?
    Let me have your suggestion
    Thanks,

    I think when you do DELETE it removes the data but
    it's not releasing any used space and it's still
    marked as used space. I think reorganizing would help
    to compress and pack all block and relase any unused
    space in blocks. Why do you think that? Deleting data will create space that can be reused by subsequent insert/ update operations. It is not going to release space back to the tablespace to make it available for inserts into other tables in the tablespace, but that's not generally an issue unless you are permanently decreasing the size of a table, which is pretty rare.
    Would you also please explain about different about
    LOB and LONG ? or point me to any link which explain
    baout it.From the Oracle Concepts manual's section on the LONG data type
    "Note:
    Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB) instead. LONG columns are supported only for backward compatibility.
    Oracle also recommends that you convert existing LONG columns to LOB columns. LOB columns are subject to far fewer restrictions than LONG columns. Further, LOB functionality is enhanced in every release, whereas LONG functionality has been static for several releases."
    LONG was a very badly implemented solution to storing large amounts of data. LOBs are a much, much better designed solution-- you should always be using LOBs.
    Justin

  • Disk Space not restored after deleting iphone backup

    Hi,
    Today while restoring my iphone i realised that itunes had made multiple copies of ~3gb of my iphone data. Since my iphone was restored successfully I decided to remove all the backups and make a fresh new backup. After deleting the multiple backups I found that my available disk space had not increased at all. I even went to ~/Library/Application Support/MobileSync/Backup and ther was nothing in there. So I went ahead and made a new backup which consumed additional ~3gb. And just to test if it was only itunes that was doing this I deleted my photos from iphoto ~5gb and even that did not give me back my 5gb. I went to trash and I dont have anything there.
    So, here I am confused as to where my deleted stuff is going to because it does not seem like its getting deleted.
    Anything that i can do get my space back?
    Thanks,
    Yogi

    Local snapshots are hidden copies of files that have been changed or deleted in between Time Machine snapshots. They are stored in free space that would otherwise be unused, and therefore wasted. The space occupied by the snapshots is managed automatically. When free space starts to run low, the snapshots are deleted. The Finder reports the space occupied by local snapshots as "Available," which it is.
    If there are unwanted changes to your files in between Time Machine snapshots — which may be far apart when you're moving around with a portable computer — you may be able to revert the changes from a local snapshot. If you disable local snapshots, you lose that protection, and you gain nothing. There is no offsetting benefit whatsoever; merely added risk.
    Empty storage space is simply wasted. You paid for it to be there, but it's doing you no good at all. Local snapshots put it to use.
    Very rarely, if ever, you might need to delete the local snapshot store in order to add a large amount of data all at once. If that need ever arises, which it probably won't, all you have to do is turn Time Machine OFF in its preference pane, and then turn it back ON immediately.
    You should ignore the bad advice that circulates on this site to disable local snapshots permanently by running a shell command. If you ran such a command, ask for instructions on how to reverse it.

  • Free disk space not changing after deleting (large) photos

    Hi,
    I wasn't sure whether to post this on the iPhoto board or on the MBA one, since it's not clear if it's a system-level issue or not. Anyway, I had about 30GB of free space on my 256GB MBA and the other day I deleted four or five albums of photos from my DSLR that I'd downloaded to my computer, after I made backups of them elsewhere. In total there were about 3,500 photos, roughly 24MB each on average. I made sure that after deleting them, I deleted my iPhoto Trash as well as the system Trash. Neverless, my level of free space hardly budged and if anything, it decreased slightly. I've read several threads saying to wait a while as sometimes the system takes a delay to adjust - that's fine.
    It's now almost five days later and the situation remains the same, if not worse. I ran DaisyDisk and aside from the usual large folders (my movies in iTunes etc, none of which had been added to since I deleted all those photos), the only one I couldn't recognise was this folder iLifeAssetManagement (9GB). I know that there are a few threads about this one, and most people seem to suggest you can clear this if you're happy to lose the content in your Photo Stream. The thing is, I've looked through some of the images in this folder and I'm quite positive that a number of them are from the DSLR albums (there are CR2 files, which I believe is Canon's exclusive RAW format). Some of the others are definitely from my iCloud Photo stream. I'm more than glad to lose all the DSLR ones, though I'd like to keep the iCloud ones and I don't really want to have to sort through 5,000-odd files. I'm positive that this folder is related to why I never gained that free space.
    Has anybody else had issues like this and any suggestions for clearing this folder of all the files I already meant to delete, whilst keeping the others? Or have you had issues relating to this? Any help much appreciated.
    Thanks.

    If you've installed third-party software called "Disk Drill," I suggest you remove it according to the developer'sinstructions. If you prefer to keep the software, refer to the developer for support. Otherwise, see below.
    You may notice a difference in available space statistics between Disk Utility, Finder, and Get Info inspectors. This is expected and can be safely ignored. The Finder displays the available space on the disk without accounting for the local snapshots, because local snapshots will surrender their disk space if needed.
    About Time Machine's "local snapshots" on portable Macs

  • Disk image space not regained after deleting...

    Using my Powerbook I created backups and a 300gb disk image as a pseudo partition on a 1TB Time Capsule. This was prior to owning my MBP. I then used the same Time Capsule to make backups for my new MBP. I went back to my Powerbook to try to regain that 300gb's by deleting the disk image. I stuck it in the trash and deleted... But no space was regained and now the disk image is obviously gone. I'm afraid, as I think more carefully about it, that I needed to erase the disk image, once mounted, in Disk Utility (which is where the disk image was created in the first place). I'm also afraid that I'm now going to have to reformat the entire drive, erasing all back ups from both the PB and MBP, to regain the space? If anyone knows anything about this or has any advice it would be greatly appreciated.
    Thanks for your time!
    Andrew

    Thank you, Bob.
    Ok, here's where I'm at...
    I ran a Drive Genius 2 scan on the TC with my MBP and cancelled it after about 5 percent was completed. It was going to take all day and I didn't think it was going to do anything. To my surprise when I went back to my desktop and got info on the TC it showed over 500gb available, whereas before it showed 116gb available... so somehow I regained more than just my 300gb disk image worth of space back. Weird. (Although, I now understand how those figures can sometimes be misleading.) This rough figure would tell me that the MBP is also recognizing the Powerbook back ups as well even though they are not visible in Finder.
    Next, I connected with my PB and Finder showed only 116gb available... which wasn't too surprising. I then ran the same procedure with Drive Genius, this time only to about .65 percent complete and when I went to get info it showed that I had 805gb available. HA! So I guess it is not recognizing the MBP backups but that's no big deal. I won't be making anymore back ups with the PB anyway.
    Well, thanks for your help, Bob. I always learn something when I come to Discussions!
    Andrew

  • Email Usage not reducing after deletion

    Hello. I am having space issues on my iPhone 4s. I have 3 POP email accounts set up and had several gb showing up under Settings, General, Usage Mail.
    I 1st deleted all the emails from each Inbox and also went into each email account and selected all the emails in the Trash and deleted them and no change in the emails Usage.
    Only after I deleted each email account off the phone and re-installed it, did I get me space back. It has been a week now and I am back up to 322mb (see attached) even after I have been clearing out all emails at the end of each day.
    Does anyone know how to clear off email space or is there some app to purge the Mail on the iPhone 4s?

    Hi Sandip,
    If you get an error:
    This is due to program error, Sap has released a Note with the correction program.
    Please refer below note, this will be solved after using correction program.
    1300969 - QA11: Error message WR 001 when posting to sample
    Amol.

  • I create trigger but not display massage after insert in oracle 10g

    I create trigger but not display massage after insert in oracle 10g
    **CREATE OR REPLACE TRIGGER TableName**
    **AFTER INSERT OR DELETE OR UPDATE ON test**
    **BEGIN**
    **if inserting then**
    **dbms_output.put('Message');**
    **end if;**
    **END;**

    What user interface are you using?
    If the tool doesn't support the SQL*Plus syntax (set serveroutput on), it probably has an option somewhere to enable DBMS Output. Not even knowing what tool you're using, it's impossible for us to guess where that option might be configured.
    As others have suggested, using DBMS Output to test code is less than ideal because you're dependent on the application you're using to display it to you and not every application can or will do that. If you want to use DBMS_Output, you may need to switch to a different GUI (SQL Developer or SQL*Plus are both free utilities from Oracle). Otherwise, you'd probably be better off having the trigger do something that you can subsequently query (i.e. write a row to a log table).
    Justin

  • PO Release Strategy not changed after deletion of few line items with less

    Subject : PO Release Strategy not changed after deletion of few line items with less Total PO
    Dear Friends
    We have issue with PO Release strategy. We have created the PO. with release strategy  with multiple approvers.  After approval of first approval manager , one of the PO line item got deleted and Total PO value is reduced . The new PO value should have changed the PO release strategy. But it is not changed. Old release strategy only showing in the PO which is wrong. 
    Details of the PO
    PO no 4500000123 with 5 line items Total PO value : 100,000 USD Release strategy : AB
    PO line item 5 deleted. Now total PO value changed to 50,000 USD and the PO release strategy should have been changed to AA but not changed. Still showing PO release strategy AB only.
    Are there any OSS notes available to correct his bug.
    Please let me know if you need more details
    Thanks in Advance
    Thanks
    MVS

    Hi,
    release indicators  change it to 4.It may works. Please explore to all 6 indicators..........
    i.e,
    1-cannot be changed
    2-changable,no new determination of strategy
    3-changable,new release in case of strategy
    4-changable,new release in case of strategy or value change
    5-changable,new release if new strategy/outputted
    6-changable,new release if new strategy or value changed/ outputted......
    And check   Characteristic description and value in Classification  of Release strategies ........
    I hope this will help you. Thanking you.
    Regards,
    Venkat.

  • I sure hope iPad 2's prices are not reduced after I just bought a new one YESTERDAY.

    I sure hope iPad 2's prices are not reduced after I just bought a new one YESTERDAY prior to this new March 7th announcement!!! I saw that Best Buy reuced the price of their basic iPad (same one I bought) from $499 to $449.
    Not going to be very happy.
    Mattsells

    Skydiver119 wrote:
    Did you buy it at Best Buy? if so talk to them. THey may honor the price reduction. Bascially they are trying to reduce their inventory of 2's in anticipation of the 3 being announced next week or so.
    Indeed.  Best Buy just extended its return policy to 30 days.
    http://forums.macrumors.com/showthread.php?t=1331338

  • Note 830576 - Parameter recommendations for Oracle 10g

    hi all DBA experts.
    I am not good familiar with Oracle database while i read a Note 830576 - Parameter recommendations for Oracle 10g. in which SAP General Recommendation:
    You should delete obsolete initialization parameters from the profile.
    To determine which obsolete parameters are currently set, proceed as follows:
    SQL> SELECT NAME FROM V$OBSOLETE_PARAMETER WHERE ISSPECIFIED = 'TRUE';
    when i execute above command then result is no rows selected
    while there are many parameters in above SAP Note which are already obsolete and not set in initSID.ora file.
    for exp.  the parameter OPTIMIZER_INDEX_COST_ADJ  is showing
    #### OPTIMIZER MODE
    #optimizer_index_cost_adj = 10
    as you know that this parameter is very important regarding System Performance.
    now please guide me . I have to set these parameter or no need while there is not showing any parameters against obsolete command.
    waiting you valuable reply.
    Regards,

    hi both,
    thanks for knowledge sharing with me other SDN users,
    Dear Orkun,
    Ok. At this stage, I can recommend you that apply what they have suggested,
    in the message. So, you already did a part of it by configuring
    Oracle parameters, already.
    SAP support sent me this file (PRD_Parameters)
    *** INFORMATION  1 ***
    *** INFORMATION  2 ***
    *** INFORMATION  3 ***
    *** INFORMATION  4 ***
    *** INFORMATION  5 ***
    *** INFORMATION  6 ***
    *** INFORMATION  7 ***
    *** INFORMATION  8 ***
    *** INFORMATION  9 ***
    *** INFORMATION 10 ***
    *** INFORMATION 11 ***
    _b_tree_bitmap_plans
    _fix_control (4728348)
    event (10753)
    event (38087)
    event (10183)
    optimizer_index_cost_adj
    star_transformation_enabled
    event (10027)
    event (10028)
    event (10411)
    event (10629)
    event (14532)
    _fix_control (5705630)
    _fix_control (5765456)
    _optimizer_mjc_enabled
    _sort_elimination_cost_ratio
    event (10091)
    event (10142)
    event (38068)
    event (38085)
    event (44951)
    parallel_execution_message_size
    parallel_threads_per_cpu
    query_rewrite_enabled
    log_archive_dest_1
    log_archive_format
    max_dump_file_size
    optimizer_features_enable
    log_archive_dest
    _push_join_union_view
    _cursor_features_enabled
    _first_spare_parameter
    event (10049)
    db_writer_processes
    parallel_max_servers
    db_cache_size
    pga_aggregate_target
    processes
    sessions
    dml_locks
    job_queue_processes
    log_checkpoint_interval
    remote_login_passwordfile
    sga_max_size
    shared_pool_reserved_size
    sort_area_retained_size
    sort_area_size
    statistics_level
    workarea_size_policy
    they only highlighted these following parameters from above
    **** INFORMATION  8 ***     DB Patchset: 10.2.0.4.0
    **** INFORMATION  9 ***     DB Mergefix: 0 (released before 2008-07-11)
    FYI... recently, i applied the Oracle Patches 10.2.0.4 in this sequence
    MS Windows x86-64 (64-bit)
    Patchset_10204_MSWIN-x86-64aa.bin
    Patchset_10204_MSWIN-x86-64ab.bin
    Patchset_10204_MSWIN-x86-64ac.bin
    OPatch
    OPatch_10205_Generic_v0.zip
    Generic (32-bit / 64-bit)
    p8350262_10204_Generic.zip
    p7592030_10204_WIN_GENERIC.zip
    p9254968_10204_WIN_GENERIC.zip
    10204_Patch44_MSWIN-x86-64.zip
    p9584028_102040_Generic.zip
    p9843740_10204_Generic.zip
    and please tell me , still i have to apply highlighted parameters or now no need.
    Regards,

  • SAP Note 830576 - Parameter recommendations for Oracle 10g

    As per SAP Note 830576 - Parameter recommendations for Oracle 10g, I have tried to change the value for
    parameter "db_file_multiblock_read_count".
    In sql prompt it shows:
    SQL> show parameter DB_FILE_MULTIBLOCK_READ_COUNT
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     128
    and in brtools it shows:
    58 - db_file_multiblock_read_count      both     no      *       yes   128
    But  I got the following error, when i tried to set it null
    1 * Parameter description (desc) ..... [db block to be read each IO]
    2 * Parameter type (type) ............ [integer]
    3 * Current parameter value (parval) . [128]
    4 * Value in spfile (spfval) ......... []
    5 # New parameter value (value) ...... [null]
    6 - Scope for new value (scope) ...... [both]
    7 # Database instance (instance) ..... []
    8 ~ Comment on update (comment) ...... []
    9 - SQL command (command) ............ [alter system reset db_file_multiblock_read_count scope = spfile sid = '*'; alter system reset db_file_multiblock_read_count scope = memory sid = 'MBD']
    BR0662I Enter your choice:
    c
    BR0280I BRSPACE time stamp: 2008-08-14 18.19.22
    BR0663I Your choice: 'c'
    BR0259I Program execution will be continued...
    BR0280I BRSPACE time stamp: 2008-08-14 18.19.23
    BR0301E SQL error -32010 at location BrSqlExecute-1, SQL statement:
    '/* BRSPACE / alter system reset db_file_multiblock_read_count scope = spfile sid = '''
    ORA-32010: cannot find entry to delete in SPFILE
    BR1017E Execution of SQL statement 'alter system reset db_file_multiblock_read_count scope = spfile sid = '*'; alter system reset db_file_multiblock_read_count scope = memory sid = 'MBD'' failed
    BR0669I Cannot continue due to previous warnings or errors - you can go back to repeat the last action
    BR0280I BRSPACE time stamp: 2008-08-14 18.19.23
    BR0671I Enter 'b[ack]' to go back, 's[top]' to abort:
    Kinldy let me know, what could me wrong.

    Hi Markus,
    As per your suggestion we have downloaded the files from UCLIB_3-20000978.SAR. But now getting the error as
    sapccmsr -DCCMS -j2ee pf=profile value
    INFO: use SAPLOCALHOST hostname
    INFO: CCMS agent sapccmsr working directory is /usr/sap/ccms/XX1_00/sapccmsr
    INFO: CCMS agent sapccmsr config file is /usr/sap/ccms/XX1_00/sapccmsr/csmconf
    INFO: Central Monitoring System is [XX1]. (found in config file)
    INFO: additional Central Monitoring System is [AS2]. (found in config file)
    ERROR: Cannot open Monitoring Segment 0 rtc = 245
    Last reported error: [249]  CCMS monitoring segment has wrong EYE CATCH. It seems to be created as non-unicode segment.
    This program runs as unicode. Please use non-unicode version
    Please suggest
    Thanks,
    Anu

Maybe you are looking for

  • Since upgrading to Mountain Lion I cannot connect to my wireless router

    Since upgrading to Mountain Lion I cannot connect to my wireless router. I have 2 wireless networks in my home. One is the primary whuch all of my devices connect to. The other is for backup only. I cannot connect to the primary with my iMac but have

  • Windows don't close after using flash

    When viewing certain flash videos I am unable to close down firefox or any of its windows. When trying to save an image and pressing the save button it doesn't save it or close the browse window that is open. Same when trying to clear the cache the w

  • File Transfer SAP to MQ series

    Hi experts, We are having a SAP program which creates a file abc.txt. We want to push this file from SAP to a destination which is an MQ series directly. Please lets know the steps for this. Please provide any documents if any. Regards Vimal

  • YouTube just stopped working.

    YouTube just stopped working.  Has blank screen and can't access anything. Everything else is working fine. Any suggestions?

  • What's your favorite?

    What's your favorite Screen Capture program and why? I'm looking around and need some opinions.