DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: Data Archiving & Deletion

  1. #1
    Join Date
    Jul 2001
    Posts
    108

    Data Archiving & Deletion

    Hello,

    In our database, we have archived and archived and delete a huge amount of data from several large tables.

    Somehow, this deletion did not generate enough freespace. Based on our calculation this deletion process should generated alteast 10GB of freespace.


    Scale: Day Database
    Date Values Size/kb Free/kb
    ------------------------------------------------------
    09/29/2004 Total 293621,400 74,342,880
    09/28/2004 Total 293621,400 73,377,248

    Is there any better way of finding the exact freespace in the database?

    Thanks,
    Nikee

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Did you "ALTER TABLE MOVE" your tables?
    Jeff Hunter

  3. #3
    Join Date
    Jul 2001
    Posts
    108
    Hello Jeff,

    We have our own front end application.

    While archiving the data, we have dumped the data in a proper order from the database.

    After successful completion of this archiving process, we have deleted the data from the application using the DELETE command.

    Thanks,
    Nikee
    -Nikee

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Just because you have deleted records from your tables does not mean they will shrink. http://download-west.oracle.com/docs...k.htm#CNCPT301
    Jeff Hunter

  5. #5
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    Use this query:
    PHP Code:
       select
        
    select blocks from user_segments 
           where segment_name 
    'T2'ALLOCATED_BLOCKS,
        ( 
    select count(distinct(dbms_rowid.rowid_block_number(rowid))) 
            
    from T2USED_BLOCKS
       FROM DUAL
    ;


    ALLOCATED_BLOCKS USED_BLOCKS
    ---------------- -----------
                 
    384         139 
    OR You can use DBMS_SPACE PKG.

    Tamil

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width