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

Thread: what is the best way.....

  1. #1
    Join Date
    Jun 2001
    Posts
    150
    Hi
    We have few tables which have millions of records in it. we want to archive the data in antoher table (partial data) so that we can archive it acassionally. we are thinking of having a copy of table and copy all the old data in it and then delete that data from the live table .live table will have only like one month of data and all the previous data will go on archive table. we need to do the archiving of data on daily basis to archive table and deleteing it from the live tables. what is the best way to do that.
    one is running pl/sql script which will insert into archive tables and delete it from the live table
    or do incremental export of data.(i never used it before)
    or is there any other way of doing that.

    Let me know what you think
    thanks
    UKDBA

  2. #2
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    well you dont need two tables, I guess you can partition the table and export the partitions

  3. #3
    Join Date
    Aug 2001
    Location
    chennai,bangalore
    Posts
    840

    schedule job

    Use job packages to run it at a specific time.

    cheese
    anandkl
    anandkl

  4. #4
    Join Date
    Jun 2001
    Posts
    150
    is there any option in 7344.

  5. #5
    Join Date
    Aug 2001
    Posts
    184
    upgrade an option?
    OCP DBA 8i
    ocpwannabe@yahoo.com
    -----------------------------
    When in doubt, pick 'C'.

  6. #6
    Join Date
    Mar 2001
    Posts
    41
    One of the best and fastest way in doing it is to partition your table by date. Then create another partition table with the same structure as the live table this will be the table that will hold the archive data. Then create another table (not partition) also with same structure this will serve as a temp table.

    Do the ff steps..

    1. exchange partition of the live table with the temp table
    2. exchange temp table with the partition of the archive table.

    this procedure is much much faster than exporting or inserting data.




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