Delete AUD$ table do not free space

Hi,
We have an Oracle 10g database (10.2.0.4) with the Oracle auditing feature on.
Our problem is that I delete on regular basis the AUD$ rows, but the system do not free the space on the tablespace. The system free the space only after a truncate.
The actual situation is:
SQL> select segment_name,bytes/1024/1024 as Mb from dba_segments where bytes/1024/1024 > 1000 and TABLESPACE_NAME='SYSTEM';
SEGMENT_NAME                                                                              MB
AUD$                                                                                             10161
SQL> select count(*) from sys.aud$;
COUNT(*)
+1073+
Someone can help me with this!?
The delete of the table is done with a simple script:
select count(*) from sys.aud$;
delete from sys.aud$ where NTIMESTAMP# < sysdate -(1/24*6);
select count(*) from sys.aud$;
commit;
exit;
Thanks
Nunzio

Nunzio Cafarelli wrote:
EdStevens wrote:
Nunzio Cafarelli wrote:
Hi,
thanks for your answer.
The scrink and the coalesce feature do not works:
SQL> alter table SYS.AUD$ enable row movement;
alter table SYS.AUD$ shrink space;
alter table SYS.AUD$ coalesce;
Table altered.
SQL> SQL> alter table SYS.AUD$ shrink space
ERROR at line 1:
ORA-10635: Invalid segment or tablespace type
SQL> SQL> alter table SYS.AUD$ coalesce
ERROR at line 1:
ORA-01735: invalid ALTER TABLE optionthe only way I have is to move the table in a different tablespace and in case move back.
Do you know if that is a know bug!?No it is not a bug.
Why are you concerned about the space being released? If it were you'd just have to re-aquire it as new rows are added to the table.
As rows are added, when an extent is filled a new extent is allocated. If rows are deleted those extents remain allocated to the table and are re-used as needed. The aud$ table is a perfect example of a table which most definately will need to reuse that space, so it it a total waste of effor to try to reclaim it.Hi, that is the real point, it seems that the table don't use the allocated space.
It constantly grows and reclaim new space. That is the real problem for me.You haven't demonstrated that. You only showed us a one-time snapshot of the space used and the row count.
You need to track this over several days / iterations of deleting rows. Show us that over a period of time the row count is fairly stable and yet the space used continues to increase.
If, today the rowcount is 'x' and the space allocated (measured in blocks or extents) is 'y', and you delete a bunch (or even all) rows, space allocated should remain 'y'. Then tomorrow, you should have near 'x' rows again (assuming a fairly level amount of audited activity). And space allocated should still be 'y' .. maybe allowing for a slight increase in 'x' triggering one more extent. But if you are regularly pruning the row count, the number of extents should stabilize. If not, then you do have an issue, but I haven't yet seen proof of that happening.
>
>>
Can this create problems since AUD$ is a system table!?No, but you don't want a very active table like that in your SYSTEM tablespace. Oracle puts it there by default, but there have been well known procedures on the net for YEARS on how to move it to another TS. Thanks
With 11g, they've even introduced the dbms_audit_management package to help with these tasks.I know, I hope the my customer will authorize the upgrade soon.
Thanks for your suggestion to upgrade sybrand_b, but as you can understand, sometime the upgrade are not possible until the software vendor will authorize that, so, we need to work on version 10.2.0.4 for some other months.
Regards
Nunzio
P.S. I think that there are problems, after the move of the table to a different tablespace, and the move back to SYSTEM, the used space was around 2Gb, but I was not able to resize the datafile. Don't move it back. Get it out of SYSTEM and leave it there.I think that I'll do this, at least to not risk the corruption of the system tablespace.
Thanks again for your answers.
regards
Nunzio

Similar Messages

  • Deleting from USB does not free up space

    I have a USB flash memory drive and when I delete files from it for some reason the space that the file used is not freed up. For example if I delete a file that is 6MB it will still say that 6MB is in use even though I have deleted it. I exchanged the drive for a different one but I am having the same problem with the new one. Any suggestions (other than going in to disk utility every time to erase the whole thing)?
    Thanks in advance!

    Thanks. I got this far, too. I emptied the trash and the 'get info' for a SanDisk USB flash drive shows that it is empty (249.7 MB available). When I tried to load 103 photos all at once I get the "not enough space" message. When I load the files in increments of 5-10 files it works up to a point and then I get the "not enough free space" message, when I try to load one more file. This is after I've loaded about 103 MB onto the drive. Yet, when I 'get info' on the flash drive it shows plenty of space still available.
    I have even checked the USB flash drive on a windows machine as well and it also indicates the same amount of free space.
    Any suggestions?

  • Deleting files does not free space

    Hi!
    I'm confused as to how to free more space on my MBP. It keeps saying that I only have 7 GB  free space (I think there should be plenty more...) and often enough says that the start disk is full and needs more space.
    I have deleted quite a few films and photos, emptied the bin and restarted the computer.. only to discover that I still only have 7GB free. What am I doing wrong?
    The computer is slow, programs keep freezing, the colourfull circle appears and Safari keeps crashing. (I have no idea if these things are related though) Please could you help me? I know it is a stupid newbie question, but I would very much appreciate some help! I tried to find solutions on different forums but have not really understood the answers people with the same problem have been getting.
    Please help?

    Thank you shldr2thewheel and AnaMusic.
    A follow-up question: I ran OmniSweeper and do not understand the answer I got.
    What on earth is that?? What ever it is it takes enormous space but I dont dare to touch it as I really dont know what it is or does. Can I just delete it?
    The second largest post according to the Sweeper is "Caches". Is that just deleteable? Nothing important?
    Thanks a lot!

  • Cannot delete R&R backups, not enough space

    I have R&R V3.01.1037.00 installled on my son's laptop.  It has some old R&R backups which I want to delete.  I've run R&R from the Programs list and found the Advanced tab which allows me to delete backups ... however when I try and delete one it says (after confirmation prompt and "Please wait while the backups are deleted"):
    "Rescue and Recovery does not have enough disk space to perform the requested operation"
    and then doesn't do anything.  I've tried turning the Recycle Bin properties to "Do not move files to the Recycle Bin" in case this was the problem but that didn't help.
    Backup file is 15 GB (!), free space on disk is 5 GB.
    Solved!
    Go to Solution.

    leamphil, welcome to the forum,
    deleting the last backup that was made on it's own and then the others has worked for other members.
    Hope this helps
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • Deleteing files doesnt increase the free space on my harddisc

    My hard disc has only 766 MB free space. When I´m deleteing files I don´t get more free space.
    I have deleted over 1 GB today by putting files into the trash can and then empyting it, but it is still only the 766 MBs of free space.
    Help?

    I dont understand the word "sparse". What is this file? Can i delete it?
    This file contains your encrypted home folder. As long as you have FileVault turned on, don't delete it.
    I have FileVault enabled but when I try to disable it it says that there is not enough free disk space.
    Try the suggestions on this page.
    (16342)

  • Deleted files wont give me free space

    i created two projects on my laptop, then exported them back to dv and dragged the projects into my trash bin. I then emptied my trash, awaiting the free space i had missed so greatly( the projects took up about 20 GB each), but after the files were deleted, which took about a second. i did not get the free space back, does anyone know what happened or could someone point me to another forum where this questin could be answered.

    i created two projects on my laptop, then exported
    them back to dv and dragged the projects into my
    trash bin. I then emptied my trash, awaiting the
    free space i had missed so greatly( the projects took
    up about 20 GB each), but after the files were
    deleted, which took about a second. i did not get the
    free space back, does anyone know what happened or
    could someone point me to another forum where this
    questin could be answered.
    Type Media in finder you may find those deleted files still have a connection there. Careful you don't delete the wrong ones because they're gone. anoka114

  • After move mailbox to another mailbox database the mailbox database has not free space

    Hi,
    If any one can help me about that question I appreciate:
    - I have an Exchange Server 2010 mailbox database with 300 users.
    - I moved the mailboxe to a new mailbox database.
    - I have checked that the empty mailbox database did not release the free space from mailboxes moved
    The question is: should I wait for the retention time be finished and the the maintence job be done?
    Thanks a lot.
    Luiz

    Hi
    Even when the retention time expires the edb file will not reduce in size automatically.  You will need to run an offline defrag at that point ... which is actually not recommended.
    It would be better to move all the mailboxes to a new database and delete the old one.
    Steve

  • Deleting an HD partition of free space?

    So I tried to partition my hard drive, turning it into two partitions, of which one is free space only. It didn't quite work out as I wanted it to and now I can't seem to revert it, since the "-"-button is greyed out. Can anybody help me?

    You cannot remove something that is not there! Can you tell what didn't work out as you wanted.
    You can Resize your Macintosh HD. select it and by clicking the bottom left option, drag it down

  • Why do my external hard drives not free space when I delete things?

    I have a Macbook Pro running Lion 10.7. I have a problem where my external hard drives tend not to free up space when I delete items from them. I have been resorting to regularly reformatting my drives for the pen drives, but now it is happening with my large backup drives. It happens for both OS-journaled and FAT-32 formatted disks. Any answers?
    Update: I checked the hidden folders, and they comprise:
    .feventsd
    .Spotlight-V100
    .Trashes
    There are no sizes given for the hidden folders and it says I don't have persmission to see the contents of the trash.
    Cheers,
    Heather

    When you move items to the trash, no space is freed since you're simply moving a file into a different folder (the .Trashes folder). When you empty the trash, the space will be freed. You must empty the trash while the external drive is connected for it to take effect.
    Matt

  • Deleted 75GB of files though it did not free space on drive?

    I deleted over 75GB of files from my Macbook Pro (my iPhoto database) and when I Get Info on the hard drive it does not show that it freed up space, this is after I emptied the trash. Any ideas why?
    Thanks.

    iPhoto has it's own trash. You need to empty that. Right-click on the Trash "album" and select Empty Trash.
    Or, select the Trash, and then click the Empty Trash button in the top-right of the window.

  • Dropping UNDO did not free space at OS level

    Hi,
    As my UNDO tablespace grew very large, i had to drop it by creating a second UNDO tablespace and switching the database to use it. After i successfully dropped the first UNDO, the file systems, which hosted the datafiles of the first UNDO still shows that they are 100% full. I have checked the alert log and everthing looks perfectly fine with the following message
    drop tablespace undotbs1 including contents and datafiles
    delted file '/u04/oradata/sunshine/undotbs1.dbf'
    deleted file '/u06/oradata/sunshine/undotbs1_1.dbf'
    Completed: drop tablespace undotbs1 including contents and datafiles
    Even the two datafiles 'undotbs1.dbf' and 'undotbs1_1.dbf' were deleted with the "drop tablespace ........" command itself.
    Is it required to bounce the database for the changes to be reflected at the OS level?
    Any insight?
    THanks,
    Harris.

    Hi,
    My Oracle version is 9.2.0.5 and i am running on Solaris 9. I have created a new UNDO tablespace UNDOTBS2 and dropped the old UNDO tablespace UNDOTBS1. After i issued the "drop tablespace UNDOTBS1 including contents and datafiles" it deleted the physical datafiles at the OS level too. I do not see any datafiles of the first dropped undo tablespace UNDOTBS1 in the directories specified i.e.,
    '/u04/oradata/sunshine/undotbs1.dbf'
    '/u06/oradata/sunshine/undotbs1_1.dbf'
    So, the tablespace along with datafiles has been dropped (at the OS level too) with the "drop tablespace........" command itself. But, the file system still does not show the freed up space. I have altered the system to use the second undo tablespace UNDOTBS2 before dropping the first.
    The second undo UNDOTBS2 has auto extend off, so there is no issue of this increasing to this much of size. The first undo tablespace that i dropped was around 15G of size and it has autoextend ON.
    Any suggestions?
    Thanks,
    Harris.

  • Failed to create zip file - did not free space

    Hi,I tried to zip the inside of my camera folder and naturally did not have enough space.1. Creation of the zip file failed.2. Shows me that there is no more room left on device, i.e. the space was not freed.3. Can not locate the zip file it tried to create (it did not appear in the same folder as "camera" and can't find it anywhere else either). Can anyone help, please, can't copy files anywhere because no space left and don't want to delete anything. Thanks in advance,Dario

    In regards to your original problem, but I can see two solutions without Link. 1, get an SD card and transfer some content over. The phone has finite space and this is the only way you can access storage from a computer without Link, so it is then only way to back up files (did I mention that is important yet?). 2, download Ghost Commander from the app world. It is a vastly more powerful file browser that can allow you to see your device storage particulars. I have none idea where a temporary ZIP file is located however, so this is not choice #1.

  • My iPhoto Library was deleted from my computer, not enough space for a time machine back up?

    My entire iPhoto Library is gone, inaccessible, doesn't show up in finder. I tried to restore my last Time Machine back up but it says that I don't have enough space on my startup disk. In order to create space I deleted everything nonessential and moved all of my essential folders such as documents, photos, videos, everything, etc. to my external drive, then deleted them from my hard drive. I emptied the trash to make sure that everything was wiped. I tried to do the Time Machine back up of my iPhoto Library again and is still says I don't have enough space. I looked at my storage under About this Mac, and it says that 120.35 GB of my current computer storage are photos, however, I don't have ANY photos on my hard drive at all. I don't know what to do because I can't delete applications and there is literally nothing else I can delete from my computer, so I don't understand how 135 GBs of storage is being used up.
    Any ideas? Could there be somewhere my photos are hiding? I just don't understand how this makes any sense, or why my library got deleted in the first place for that matter.

    Search for your photos in Spotlight.

  • Deleted Data, no increase in free space......

    We have deleted in excess of 1.2M rows of data from 3 tables within the database, but have seen no real increase in the amount of freespace in the datafiles, what else do i need to do or missing,,,,
    TY, newbie, WAR.

    Hi,
    Oracle datafiles cannot release the extents acquired automatically when data is deleted. Any new data added is always appended by acquiring new extents. Truncation is the only way of reducing the datafile size.However, if all data cannot be deleted, then truncation cannot be used. An idea would be to delete the reqd number of records, then use export utility to take a dump of the remaining data, then truncate the table, and then import the data back into the table. (during import, you should specify the option 'Ignore error due to object existence...' etc as 'yes', so that the data will be appended to the empty table.)
    Regards
    Sanchayan
    null

  • HT3529 how do i delete old message conversations to free space

    I'm running out of space on my iphone 4 and, according to settings/general/usage, my old text messages take up 4+ GB of space. How can I set it up to only save texts for the last, say, six months?

    Basically, all you need to do is swipe the conversation to the right - left and press the red delete square. Unfortunately this will delete even the most recent text with this person, but that is all that apple offers built in the operating system. Additionally, you can press the edit button in the top left corner and press the minus next to the contacts to delete the conversation.
    Swiping to the Right
    Pressing Edit

Maybe you are looking for

  • AirPort Network Setup Help

         I'm pretty good with hardward, but admittedly, I'm kind of a n00b when it comes to wireless networks.  So I purchased an AirPort Extreme Base Station in 2010 and set it up to run my wireless network as well as a 5GHz version of the network as we

  • How can I fax directly from my MacBook Pro?

    I am interested in faxing documents directly from my MacBook Pro. How do I do that?

  • My mac mini shuts down 15 minutes into watching Netflix. Why?

    After watching Netflix for 15 minutes, my Mac mini shuts off. I've tried to reboot it, log back on, but again the computer shuts off completely after another minute. I bought the Mac mini in 2008. Any idea what could be causing this problem, or how t

  • Alternate Group in BOM

    Hi experts, I'm having the problem with Alternate group in BOM. I'm maintaining the the raw materials in BOM i.e A1,A2,A3,A4 like that number of materials is there. I'm grouping the materials with alternate group A1: Alt Grp-01, Priority-1, Strategy-

  • Co-Ordinate precision and performance

    I have data with a geometric tolerance of 0.05 The precision of the co-ordinates can be up to 3 decimal places in the SDO_GEOMETRY object. (0.001) However when we query the data through MapXtreme web application the query window passed in to the seco